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

Hash (#) as a dimensionless unit #60

Open kaedonkers opened 6 years ago

kaedonkers commented 6 years ago

It would be useful to support units of the form # s-1 where # is a dimensionless number. This can be present in some data sources e.g. aircraft readings. We are looking to implement this in the Python package cf_units (see https://github.com/SciTools/cf_units/issues/88 & https://github.com/SciTools/cf_units/pull/90). Is there any scope for supporting this?

cc @pelson @duncanwp

semmerson commented 6 years ago

I'm not sure I understand. Are you requesting that the UDUNITS package parse the string "# s-1"? If so, what is the equivalent string that the package already understands?

pelson commented 5 years ago

The use case that was presented in this case was to represent "number" or "count", so the equivalent unit would be 1 s-1, or just s-1.

semmerson commented 5 years ago

Seems like a good idea.