ngff icon indicating copy to clipboard operation
ngff copied to clipboard

deca SI prefix is missing from the list of units.

Open mkitti opened this issue 5 months ago • 3 comments

Units for "space" axes: angstrom, attometer, centimeter, decimeter, exameter, femtometer, foot, gigameter, hectometer, inch, kilometer, megameter, meter, micrometer, mile, millimeter, nanometer, parsec, petameter, picometer, terameter, yard, yoctometer, yottameter, zeptometer, zettameter

Units for "time" axes: attosecond, centisecond, day, decisecond, exasecond, femtosecond, gigasecond, hectosecond, hour, kilosecond, megasecond, microsecond, millisecond, minute, nanosecond, petasecond, picosecond, second, terasecond, yoctosecond, yottasecond, zeptosecond, zettasecond

The "deca" prefix is missing in this list of units. A "decameter" is 10 meters. A "decasecond" is 10 seconds.

1e-24  yoctosecond
1e-21  zeptosecond
1e-18 attosecond
1e-15  femtosecond
1e-12  picosecond
1e-09  nanosecond
1e-06  microsecond
1e-03  millisecond
1e-02  centisecond
1e-01  decisecond
1e+00  second
1e+01  decasecond
1e+02  hectosecond
1e+03  kilosecond
1e+06  megasecond
1e+09  gigasecond
1e+12  terasecond
1e+15  petasecond
1e+18  exasecond
1e+21  zettasecond
1e+24  yottasecond

mkitti avatar Aug 13 '25 22:08 mkitti

OME-Zarr delegates this decision to UDUNITS-2, which does not include deca*. For the sake of simplicity/ standardisation, it would be nice to avoid taking ownership of any more lists.

If anything, I'd prefer to push towards having fewer units, not more - we have coordinate transformations for scaling values up and down. But implementations which use floats of limited precision would probably struggle at the yocto/ yotta end of the scale.

clbarnes avatar Aug 29 '25 08:08 clbarnes

OME-Zarr delegates this decision to UDUNITS-2, which does not include deca*. For the sake of simplicity/ standardisation, it would be nice to avoid taking ownership of any more lists

UDUNITS-2 spells it as "deka". That is included in the link you provided.

https://cfconventions.org/Data/cf-conventions/cf-conventions-1.7/build/ch03.html

Screenshot_20250829_103048_Chrome.jpg

mkitti avatar Aug 29 '25 14:08 mkitti

on that topic, for me it would be more intuitive if units are sorted on the spec by their factor instead of alphabetically

lubianat avatar Dec 05 '25 12:12 lubianat