legacysurvey / imagine

The code that runs http://legacysurvey.org/viewer -- map-like viewer for astronomical images, especially the Dark Energy Camera Legacy Survey
BSD 3-Clause "New" or "Revised" License
27 stars 11 forks source link

accept sexagesimal coordinates #41

Open moustakas opened 5 years ago

moustakas commented 5 years ago

Feature request from Eisenstein:

It would be nice if one could type sexagesimal RA/Dec into the viewer (upper-
right corner). At present, typing HH:MM:SS or DD:MM:SS silently truncates 
the minutes and interprets HH as degrees. Encountered this when presented 
with coordinates from a paper in sexagesimal; trying to copy & paste instead 
of converting myself. 
djschlegel commented 5 years ago

This already is supported by putting the sexigesimal coordinates into the "Jump to Object" box in the lower-left corner. So is any other capability needed?

(What's in the upper-right corner? Or did the initial request mean to state upper-left?)

deisenstein commented 5 years ago

Sorry, I did mean upper-left.

I do think it would be useful/better for the RA/Dec box to parse more formats. For example, it also resets the zoom level, if one has been panning around the previous object. And it's the place that's labeled as RA & Dec; I hadn't appreciated that "Object" would accept coordinates as opposed to names.

I see that the Object field accepts sexagesimal separated by colons, but not 2h30m30s+1d20m20s format that some engines allow. I'm ok with that; just noting it.