Gap-filled NDVI timeseries to xarray #51
-
Hi,
However, I keep getting nan values for data variables. Any thoughts on how I can fix that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi @singhamninder, glad you're finding wxee useful! Are you sure the NaN pixels you're getting aren't masked in Earth Engine? If you haven't already, I would try checking those images without Also, if you want to post your entire code (and make the assets public) I can take a closer look. EDIT: Adding the answer from below to the top:
|
Beta Was this translation helpful? Give feedback.
Hi @singhamninder, glad you're finding wxee useful!
Are you sure the NaN pixels you're getting aren't masked in Earth Engine?
to_xarray
assigns NaNs to masked pixels, so maybe something is going wrong with the gap filling and those pixels have no data.If you haven't already, I would try checking those images without
wxee
, either by looking at them with geemap or downloading them manually withee.batch.Export.image.toDrive
. If those pixels do have valid data and it gets lost byto_xarray
, I'll definitely look into that!Also, if you want to post your entire code (and make the assets public) I can take a closer look.
EDIT: Adding the answer from below to the top: