Unidata / UDUNITS-2

API and utility for arithmetic manipulation of units of physical quantities
http://www.unidata.ucar.edu/software/udunits
Other
62 stars 36 forks source link

Representing measurement conditions #61

Closed duncanwp closed 6 years ago

duncanwp commented 6 years ago

When considering many atmospheric measurements it is important to know if it was made in 'ambient conditions' or 'standard temperature and pressure' conditions.

I've seen many ways these might be represented in the units of a measurement, for example: 'per std cc' or 'cm-3 at stp'. This information is included in a few CF standard names (e.g. 'number_concentration_of_aerosol_particles_at_stp_in_air'), but it's more general than that.

It would be great to be able to represent this consistently in the units, even if it's just in the form of a flag to indicate if the measurement represents ambient conditions or not.

semmerson commented 6 years ago

I'm afraid the proper place in which to qualify a physical quantity is not in its unit but, rather, in the physical quantity itself. See section 7.4 of https://www.nist.gov/pml/nist-guide-si-chapter-7-rules-and-style-conventions-expressing-values-quantities. Modifying the UDUNITS package to accommodate this would complicate it enormously and (as the reference indicates) not adhere to best practice.