Hi @davemlz, I came across a minor issue when cloud masking Sentinel-2 imagery: If you pass an invalid method to ee.Image.maskClouds or ee.ImageCollection.maskClouds (like accidentally using method=prob instead of method=cloud_prob) it throws an unhelpful error that's tough to debug. If it could raise an exception that warns you about the bad method and/or gives you a list of valid methods that would be awesome :)
There's also a line in the docstring that mentions using the method prob instead of cloud_prob that's a little confusing.
Recreating
Run:
# Use any invalid "method" with Sentinel-2
ee.Image("COPERNICUS/S2_SR/20170328T083601_20170328T084228_T35RNK").maskClouds(method="prob")
Hi @davemlz, I came across a minor issue when cloud masking Sentinel-2 imagery: If you pass an invalid
method
toee.Image.maskClouds
oree.ImageCollection.maskClouds
(like accidentally usingmethod=prob
instead ofmethod=cloud_prob
) it throws an unhelpful error that's tough to debug. If it could raise an exception that warns you about the bad method and/or gives you a list of valid methods that would be awesome :)There's also a line in the docstring that mentions using the method
prob
instead ofcloud_prob
that's a little confusing.Recreating
Run:
Raises: