Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema description should include units. #119

Closed
ijiraq opened this issue Sep 22, 2019 · 7 comments
Closed

Schema description should include units. #119

ijiraq opened this issue Sep 22, 2019 · 7 comments

Comments

@ijiraq
Copy link

ijiraq commented Sep 22, 2019

The schema descriptions that appear in the TAP services should tell the user what UNITs quantities in the table are expressed in. e.g. Plane.energy_bounds_lower is described as:
'lower bound on energy axis (barycentric wavelength)' which is helpful, but without knowing what units those are (nm?) the user is left to guess.

One might thing that just declaring the entire table as following some convention (cgi? mks?) would be sufficient) but reminding the user with good column descriptions would be more friendly.

@pdowler
Copy link
Member

pdowler commented Nov 28, 2019

The tap_schema.columns table has a column named unit that conveys the units for all columns where that is applicable.

We don't include units in the description because redundancy is the first step to inconsistency :-)

@ijiraq
Copy link
Author

ijiraq commented Nov 29, 2019 via email

@pdowler
Copy link
Member

pdowler commented Jan 9, 2020

On the above cadc-tap output, the "Type" column there is useless to normal users as it is not a type in the normal sense. That is the VO-DML ID so a reference to a specific field in the data model. The schema + table + column name has the same info as the model ID with a syntactic mapping to make valid database names.

It would be much better to tell users the datatype,arraysize,xtype from the tap_schema -- those 3 together are the VOTable and TAP "datatype".

@pdowler
Copy link
Member

pdowler commented Jan 9, 2020

As for targetPosition_cval1 that is the name of the field in the Point class so the correct column name. It is cval (coordinate value) and not crval (coordinate reference value).

The units are specified in a "profile" and not in the model directly. We currently have the http://www.opencadc.org/caom2/interoperable-profile.html

The TAP service uses the interoperable profile and the units are available in the "unit" column of the tap_schema, so the above table info output should include that column along with the more useful datatype info.

@ijiraq
Copy link
Author

ijiraq commented Jan 13, 2020

@andamian : Do we have agreement then that we modify the information that cadc-tap provides along the lines that @pdowler suggests? Sounds right to me.

@pdowler : Separate question about the 'cval1' and 'cval2' colums. Are they well described (ie, what coordinate system them reference) in those other information provided in the tap_schema?

@andamian
Copy link
Contributor

@ijiraq - easy-peasy - or it seems like. This can be closed as #130 is tracking it now.

@ijiraq
Copy link
Author

ijiraq commented Jan 14, 2020

I think we don't close this until opencadc/cadctools#130 has been resolved. This issue contains the information about what is being asked for.

Still waiting to learn if the cval1/2 description is useful in tap_schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants