-
Notifications
You must be signed in to change notification settings - Fork 7
Units issue #81
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
Comments
Here is an Autoplot ticket that has links to several lists: https://sourceforge.net/p/autoplot/feature-requests/249/ |
I can't find the source documents right now, but from the project specific CDF validation criteria files used by skteditor, there was a "Magnetospheric Multiscale (MMS) Mission CDF File Format Guide" and an "MMS Units Of Measure" document. From these documents (Draft Version 1.7, 11/10/2014 and 1/27/2015 respectively), come the following validation criteria (regex pattern):
And from the Panel on Radiation Belt Environment Modeling (PRBEM) CDF validation specification:
|
Another link: |
Proposal: Add optional If https://www.unidata.ucar.edu/software/udunits/udunits-current/udunits/udunits2-prefixes.xml (k, M, G, etc) https://www.unidata.ucar.edu/software/udunits/udunits-current/udunits/udunits2-base.xml (m, kg, s, A, etc.) https://www.unidata.ucar.edu/software/udunits/udunits-current/udunits/udunits2-derived.xml (rad, sr, Pa, etc.) https://www.unidata.ucar.edu/software/udunits/udunits-current/udunits/udunits2-accepted.xml (eV, Hz, etc.) To this list of allowed symbols, I suppose we would need to add This does not cover the more complex case of PRBEM, which mandates that certain types of measurements must use a given unit. |
Summary of discussion on telecon: The use case is a data provider wishes to communicate to the client that the units used in the metadata follow a certain convention. The HAPI spec should support this, but we should keep the default behavior that the unit strings do not need to follow a convention. The reason is that updating metadata would take a lot of work, be error-prone, and the resulting unit strings may not be what the user of a given data product is used to. In addition, it is expected that HAPI metadata will have a SPASE_ID pointer for additional information in a SPASE record. SPASE does not constrain units, and we would not want to have a case where the units in HAPI metadata for a parameter differ from that listed in the SPASE record. The "units" issue is really three issues.
I suggest that we start with 1. and 2. (and call the convention If a data provider wants to define a convention other than |
Given two quantities, the units string for each, and the units schema for these, I should be able to calculate the product of the two quantities, with meaningful and efficient units. By meaningful I mean a human can understand them, and by efficient I mean that the system knows that cm / (1/cm) -> cm^2. Also it should have the knowledge that (1/cm) * ( cm**-1 ) -> cm^-2. |
@jbfaden not sure what your point is relative to the thread ... is it that with 1. and 2. a client has enough information to compute meaningful and efficient units? If yes, then yes, that is the motivation of 1. and 2. |
I just noticed that we never really stated a motivation for all this. |
I see. I'll add it as a motivation to the one mentioned in the telecon notes above. |
In the 2019-10-07 telecon, we agreed to add
The
The spec should reference where to find out about these (link or enough to search with). The spec should describe how to form a units string to emphasize some level of versioning, but not necessarily the whole version identifier. Using It's better if the referenced units flavor has a validating mechanism. All of the above items have software that can validate the units strings. For items 1 and 2, they each have independent validators. 3 and 5 are validated by the SKTEditor. For 4, the QSAS tools checks units. |
Lots of discussion about wether to use an enumeration for the allowed schema names. For now, we will only allow these 5, and if we get requests for more, we will add them and consider changing away from a restricted list. The validator could be augmented to look into the specific units and use the machine-accessible units spec to actually check that the data reports units correctly. Could be a separate (community based) service to do units validation. |
Does anyone know where to find the official documents for Cluster unit and also PRBEM units? I'm going to include a table in the HAPI spec with current links and also info about the origin of each convention. For Cluster, this page: Perhaps we should reference QUnit instead of Cluster specifically? For the PRBEM, so far I've only found the COSPAR home page: |
I have V1.2 (date of 2012 on my computer's file system) of "Panel on Radiation Belt Environment Modeling (PRBEM) Standard file format guidelines" but it has no URL to the "published" document. https://craterre.onera.fr/prbem/Standard_File_Format.pdf is V1.1. |
Waiting to see if MMS units has online info. PRBEN does not. We will drop from the enum any option that does not have good online support. |
This link talking about MMS units was recently made public: https://lasp.colorado.edu/galaxy/display/mms/Units+of+Measure |
Cluster Exchange Format (CEF) units are described succinctly in this file: https://caa.esac.esa.int/documents/DS-QMW-TN-0010.pdf which is referenced on this page: The relevant info from that document is this: Non-dimensional qualifiers, which do not appear in the SI units list, are to be enclosed in braces |
Provide suggested convention for units. Note that in some cases units used are derived from historical data and can't be changed.
The text was updated successfully, but these errors were encountered: