From 00e903803aa20664f28ad67987dd7532a3b4c758 Mon Sep 17 00:00:00 2001 From: Luke Date: Tue, 21 May 2024 12:11:45 +0200 Subject: [PATCH] Fix cloud masking for COPERNICUS/S2_SR_HARMONIZED --- ee_extra/QA/clouds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ee_extra/QA/clouds.py b/ee_extra/QA/clouds.py index bba0836..cf6f432 100644 --- a/ee_extra/QA/clouds.py +++ b/ee_extra/QA/clouds.py @@ -331,7 +331,7 @@ def VNP13A1(args): if isinstance(x, ee.image.Image): masked = lookup[platformDict["platform"]](x) elif isinstance(x, ee.imagecollection.ImageCollection): - if platformDict["platform"] == "COPERNICUS/S2_SR": + if platformDict["platform"].startswith("COPERNICUS/S2_SR"): masked = lookup[platformDict["platform"]](x) else: masked = x.map(lookup[platformDict["platform"]])