pmelchior / des-exp-checker

Crowdsourced image quality control for the Dark Energy Survey
MIT License
9 stars 2 forks source link

CCD Numbering on Full FoV #50

Closed kadrlica closed 10 years ago

kadrlica commented 10 years ago

It is sometimes difficult to figure out which CCD you are looking at on the FoV png. It would be nice to be able to either highlight the CCD of interest or show a map of the CCD numbering next to the FoV png. For example, showing an image like the one attached next to the FoV png would probably suffice (however, this mapping appears to be rotated relative to the FoV png). decam_layout_new

pmelchior commented 10 years ago

I like the idea, and I could layer a transparent PNG on top of the FoV image. However, the FoV image does not conform with the shown layout (check location of chip 61, for instance).

kadrlica commented 10 years ago

Yep, it looks like the DESDM png orientation has changed between SVA1 and Y1N (something to keep in mind for the future). Here is the layout for SVA1 decam_layout These images come from SVA1 - https://cosmology.illinois.edu/~mjohns44/SingleEpoch/pngs/20130805173410_20121102/20130805173410_20121102.html Y1N - https://desar2.cosmology.illinois.edu/DESFiles/desardata/QA/se_pngs/Y1N/20140312094642_20130815/20140312094642_20130815.html

kadrlica commented 10 years ago

We could make separate layout pngs highlighting each CCD and display the one that corresponds the CCD currently being viewed side-by-side with the FoV image.

pmelchior commented 10 years ago

I much prefer a solution in which either have one image (which is static) or use a more interactive way of showing which CCD is where. This goes along the lines of a html image map (http://www.w3schools.com/tags/tag_map.asp), or some similar in-code description of the CCD layout. It would then also allow to click on another CCD and load it in the viewer.

kadrlica commented 10 years ago

That would be cool.

pmelchior commented 10 years ago

That doesn't just happen, though... Someone will have to invest time if we want this.

kadrlica commented 10 years ago

I wrote a little bit of standalone code that generates an image map for the FoV pngs: http://home.fnal.gov/~kadrlica/image_map/mosaic.html

The code for generating this page can be found here: http://home.fnal.gov/~kadrlica/image_map/mkmosiac.py

Currently the link to each CCD is hard coded as an absolute url to the exposure checker website; however, this should be easy to fix. I assume that the png image size will also need to be tweaked since it is scaled in the FoV display.

Take a look and let me know what you think.

pmelchior commented 10 years ago

That's nice. Would you change the width of the image to 530 px (height 454 px) so that the coordinates fit to the image size shown on the website. And the alt tag should be a title tag.

If these changes are in place, it should be easy to incorporate.

kadrlica commented 10 years ago

Ok, should be done. It would also be nice to highlight the CCD currently being viewed (for example, the link highlighting that comes from clicking), but maybe the mouse-over titles are enough.

pmelchior commented 10 years ago

I've added this to the viewer, and it works, but there is no way I can highlight the current ccd with this setup because the area element does not allow any styling. I took your code and modified it into one that uses div instead of area. That does the trick.

kadrlica commented 10 years ago

Looks awesome.