TransWikia.com

Apply cloud mask to Landsat Imagery in Google Earth Engine Python API and output NAs instead of zeros

Geographic Information Systems Asked on May 25, 2021

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.

One Answer

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.

Answered by IvanP on May 25, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP