Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop _FillValue from NetCDF product #6

Open
forman opened this issue Sep 19, 2017 · 0 comments
Open

Drop _FillValue from NetCDF product #6

forman opened this issue Sep 19, 2017 · 0 comments

Comments

@forman
Copy link
Member

forman commented Sep 19, 2017

In the LC NetCDF product 1.6.1, the attribute _FillValue=0 is used on the lccs_class variable. We currently have an unsolved issue in xarray which causes a conversion of any variable with a _FillValue into a float64. The reason is that so NaN can be used instead of _FillValue and various numpyand scipy functions become applicable that can filter out NaNs (e.g. nanmean).

According to a clarification on _FillValue, missing_value, valid_xxx, the use of valid_min=1 and valid_max=220 is sufficient and therefore the _FillValue could be simply dropped as 0 is not the only missing data / no data in the possible uint8 range.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant