rhoneyager / libicedb

A toolbox for snow particle modeling!
https://rhoneyager.github.io/libicedb
Other
0 stars 1 forks source link

Scattering element ordinal number #7

Closed DaveOri closed 6 years ago

DaveOri commented 6 years ago

Scattering element number is always zero. Shouldn't it be a progressive number?

rhoneyager commented 6 years ago

Right now, the code doesn't write the scattering element numbers when the numbers are trivial (1, 2, 3, 4, ...). Ordinarily, I would just consider it to be optional (and space-wasting) data. However, the scattering element number variable is also a dimension.

HDF5's Dimension Scale API suggests defining the variable but never writing data to it. The HDF5 developers have discussed adding support for sequential "fill values".

I'll fix it.