Sentinel-2 Mask via Scene Classification Layer #533
Unanswered
DanSchoppe
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Custom Algorithm work in on going over #542 if you are interested :-) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
TLDR: Can I mask Sentinel-2 data (raster tiles & statistics) based on Sentinel-2 SCL data?
Hello! I'm accessing Sentinel-2 data via TiTiler and STAC records, both for raster tiles and statistics. I'm hoping to leverage Sentinel-2's scene classification layer data to omit pixels matching certain classifications (eg. clouds), both to make pixels transparent in raster tiles and to exclude pixels in statistics calculations.
Is there a way to include this "NODATA" / null sentiment in an expression? For example, a Sentinel-2 NDVI expression that excludes
CLOUD_HIGH_PROBABILITY
andCLOUD_MEDIUM_PROBABILITY
might be something along the lines of (warning: does not work,NaN
is not valid in this context):I've tinkered with
NumExpr
to no avail. /discussions/487 looks like a promising path forward (where
clause returns NODATA value like -10000 in one of the conditions) but it sounds like this strategy might not actually be a great option:@vincentsarago you teased some upcoming changes regarding
post_process
anduser_input
— are those useful for this type of situation?Thanks as always for the great tooling and all that you do!
Dan
Beta Was this translation helpful? Give feedback.
All reactions