Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: Firefly
-
Labels:
-
Story Points:14
-
Epic Link:
-
Sprint:SUIT Sprint 2018-11, SUIT Sprint 2018-12
-
Team:Science User Interface
Description
Recognize ObsCore, Recognize UCD, do normal catalog overlay.
The ticket is just 1.1 of DM-15783 but lays the foundation for more. Using upload, when a table is sent to the client. If it is a VO like table, determine if it is ObsCore or if there is ra/dec information based on UCD and do the normal catalog overlay.
The source of the table does not have to be a VO table we just want to be able to recognize VO type meta-data.
For the minimal goal Trey has articulated, a VO-ish way to express the logic is:
Look at the UCDs for the table columns. Limit the scope of consideration to ones with UCDs beginning with "pos.eq.". If columns with UCDs including "pos.eq.ra" and "pos.eq.dec" are present, determine how many such pairs are present. Associate pairs by comparing their column names. If there is only one, use it for catalog overlays on images. If there are multiple pairs, look for one where the UCDs include "meta.main" (e.g., "pos.eq.ra;meta.main") and use that. If there is no "meta.main" pair (or if multiple pairs include "meta.main") use the leftmost such pair in the table.
Optionally (as a later upgrade which should be a separate ticket), in the layer dialog, if there are multiple "pos.eq.ra/dec" column pairs, allow users to select a non-default pair of columns to be used for the overlay for a catalog.