aodn / python-aodntools

Repository for templates and code relating to generating standard NetCDF files for the Australia Ocean Data Network
GNU Lesser General Public License v3.0
10 stars 3 forks source link

Variables in product file have NaN instead of fill value #118

Closed mhidas closed 2 years ago

mhidas commented 4 years ago

In the velocity hourly files we have, e.g.

        float UCUR(OBSERVATION) ;
                UCUR:_FillValue = 99999.f ;

However, ncdump shows that the variable can have NaNf values. These should be replaced with the specified fill value.

mhidas commented 4 years ago

I've just noticed this in the velocity hourly product, as at commit 0e067eb5477c028c8cbc94d5e37e5b9367ab3dea. Haven't checked if this is also an issue in the other products.

mhidas commented 4 years ago

Also occurs in the aggregated_timeseries product, e.g. the file generated by the unit test.

mhidas commented 4 years ago

This also leads to some global attributes being NaN, e.g.

        :geospatial_vertical_max = NaNf ;
        :geospatial_vertical_min = NaNf ;