-
Notifications
You must be signed in to change notification settings - Fork 114
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Units and scales (and currency) in Table Schema #216
Comments
Pint is a great Python library for units. http://pint.readthedocs.org/ |
Thinking about this through the lens of a Fiscal Data Package profile, a Related: |
@danfowler JTS already supports currency as a format on number: |
@pwalsh i know - though I'm wondering if that was a good idea vs proper units. Note also we did not support "factor" ;-) |
OK, I think we should introduce @danfowler could you take a quick look at QUDT and the units spec and see if you can identify any differences. |
@rgrp I can take a look. |
I would suggest handling currency separate from units of measure, but in the same overall framework along with controlled vocabularies and coordinate reference systems. These are all 'reference systems'. The special thing about currency is that conversion factors are time-dependent, and the changes are large. This does not apply to typical uom. There is also some time-dependency in both spatial and temporal coordinate systems due to (a) moving spatial datum dues to plate tectonics - yes this does matter in applications like precision agriculture; (b) leap seconds, though in both cases most users would not notice. |
@rgrp @danfowler any progress here? @dr-shorthair great points. I'm wondering, though, if the conversion aspects you highlight are relevant for the spec itself (rather than relevant for potential applications of the spec). |
Great discussion! Just wanted to chime in that I think this would be helpful for CSV columns as well :) |
@rgrp do you want to move forward on this? |
Would that look something like the following? "schema": {
"fields": [
{
"name": "Year",
"description": "Year",
"type": "date"
},
{
"name": "Total",
"description": "Total carbon emissions from fossil fuel consumption and cement production (million metric tons of C)",
"type": "number",
"unit": "Mt",
"unitSystem": "SI"
}
] […] |
@rgieseke yes - that is correct. Your |
@pwalsh next steps here would be:
|
@rgrp Yes, sorry I mis-remembered |
@rgieseke |
We are planning to use table schema for describing the inner structure our resources. But we definitely need to store the unit of measurement. Thus, we would very much welcome if the table schema spec would support it and we wouldn't have to work with custom addons. |
@muehlenpfordt et al at Open Power System Data seem to have produced Data Packages with a |
I also went with I think the main use case is to easily read in a data set and apply a unit transformation, e.g. for comparison with another dataset. |
We have a use case for this in biotracks, see CellMigStandOrg/biotracks#9 |
I have a question. Will there be any specified way of converting measurements from one unit to another? Say celsius to kelvin or fahrenheit. Or is this outside the scope of the spec? |
@Kenji-K this would be outside of the spec - it would be something a tool would implement (but the spec could form the basis for that tool's API) |
|
Hey, is there still interest in this feature ? |
Yes, also interested, to use it for Camtrap DP. Although one can of course expand the Frictionless Table Schema as they want (e.g. adding a |
@yohanboniface yes a lot of interest. First start would be a detailed pattern. Note @Stephen-Gates had a go at that in #607 - we are really open to getting a pattern and then turning that into part of the spec. |
Working with scientific data, we are very interested in having units implemented in the schema. For the string notation of the units, we use that from astropy. This allows simple conversion of units. This allows simple conversion of tabular quantity data into other units. I hope these aspects provide some useful information to improve the specs or even for the validation of scientific data in general. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
STATUS:
Excellent discussion with @dr-shorthair today led me to consider importance of units and scales (and currency) in JSON Table Schema.
Suggest we could specific at
MAY
level:References
The text was updated successfully, but these errors were encountered: