Skip to content

Commit

Permalink
Merge pull request #1623 from openforis/hotfix/preloaded-sentinel-2
Browse files Browse the repository at this point in the history
Coerce type for cloud coverage for sentinel-2 composition
  • Loading branch information
a-luz authored May 4, 2023
2 parents f9c6354 + 32b4117 commit e51cbd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/py/gee/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def scaleAndCloudScore(img):

sentinel2 = ee.ImageCollection('COPERNICUS/S2')
f2017s2 = sentinel2.filterDate(startDate, endDate).filterMetadata(
'CLOUDY_PIXEL_PERCENTAGE', 'less_than', metadataCloudCoverMax)
'CLOUDY_PIXEL_PERCENTAGE', 'less_than', int(metadataCloudCoverMax))
m2017s2 = f2017s2.map(scaleAndCloudScore)
m2017s3 = m2017s2.qualityMosaic('cloudscore')
return imageToMapId(m2017s3, visParams)
Expand Down

0 comments on commit e51cbd1

Please sign in to comment.