NOAA-ORR-ERD / gridded

A single API for accessing / working with gridded model results on multiple grid types
https://noaa-orr-erd.github.io/gridded/index.html
The Unlicense
64 stars 14 forks source link

Arrays with NaN should act as masked #44

Open ChrisBarker-NOAA opened 5 years ago

ChrisBarker-NOAA commented 5 years ago

Some netcdf files use NaN for missing value, but without the "proper" Missing_VAlue or Fill_VAlue set.

so netCDF4 gives you an array with NaNs that is not masked.

We should deal with that "sanely".

Probably: Variables will treat NaN as 0.0

Here: mareaabril.nc.zip

Is an example -- in this case, replacing the NaNs with zero would work well.