Difference between non-existent and non-available observations #15
luukvdmeer
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently the pixel value nan (nodata) is used for three different cases:
DataArray
needs to be rectangular. When your spatial extent spans multiple orbits, some timestamps will have observations in areas where other timestamps don't, and vice versa. To make the whole array rectangular xarray creates pixels at the "missing observations" and fills them with nan. But of course these are not really observations.The semantique package treats all nan values as if they don't exist. Hence, when applying the percentage reducer, it considers the "whole" to be the count of all non-nan pixels. When applying the first reducer, it returns the first non-nan pixel value. When evaluating the or operator, it returns nan when X = nan and Y = True (i.e. it preserves nan values in the input). The assign verb assigns new values only to non-nan pixels, the smooth verb only smoothes non-nan pixels.
We now use the same value for three cases with different semantics. We might need to consider using different values (but which??).
Beta Was this translation helpful? Give feedback.
All reactions