0

I am trying to mask clouds using the python API in Google Earth Engine, but the masked values are exporting as zeros instead of NAs. I am basically following the code here Apply cloud mask to Landsat Imagery in Google Earth Engine Python API

I have run the code in the GEE browser, and that actually exports the mask values as NAs, but not sure how to get the python API to do so.

1 Answer 1

1

Quite some time has passed from your question so you may have solved already.
In any case, I've used the ee.Image.unmask method to replace the value of masked pixels in Sentinel 2 imagery. I typically go for values like -9999 rather than NAs, but I guess the method would do also in that case.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.