Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is mask_Edges function redundant if clip_outermost_rows function is applied? #70

Open
Tschoun opened this issue Mar 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Tschoun
Copy link
Collaborator

Tschoun commented Mar 27, 2024

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.

@Tschoun Tschoun added the enhancement New feature or request label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant