You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test if the maskEdges function # This function masks all bands to the same extent as the 20 m and 60 m band def maskEdges(s2_img): return s2_img.updateMask( s2_img.select('B8A').mask().updateMask(s2_img.select('B9').mask()))
is necessary, when this function # This function buffers (inward) the tile geometry by 500m # necessary because the CloudScore+ dataset has edge effects def clip_outermost_rows(image): img_geometry = image.geometry() # Get the geometry of each image buffered_geometry = img_geometry.buffer(-500) # Buffer the geometry inward by 500 meters return image.clip(buffered_geometry) # Clip the image to the outer bounds
clips of the edges of the tiles.
The text was updated successfully, but these errors were encountered:
Test if the maskEdges function
# This function masks all bands to the same extent as the 20 m and 60 m band
def maskEdges(s2_img):
return s2_img.updateMask(
s2_img.select('B8A').mask().updateMask(s2_img.select('B9').mask()))
is necessary, when this function
# This function buffers (inward) the tile geometry by 500m
# necessary because the CloudScore+ dataset has edge effects
def clip_outermost_rows(image):
img_geometry = image.geometry() # Get the geometry of each image
buffered_geometry = img_geometry.buffer(-500) # Buffer the geometry inward by 500 meters
return image.clip(buffered_geometry) # Clip the image to the outer bounds
clips of the edges of the tiles.
The text was updated successfully, but these errors were encountered: