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
I developed a python lib pymasker to extract customized mask from Landsat 8 QA band, like
frompymaskerimportlandsatmaskerfrompymaskerimportconfidence# load the QA band directlymasker=landsatmasker('LC80170302014272LGN00_BQA.TIF')
# load a numpy array that contains band datamasker=landsatmasker(bandarray)
# Get mask with cloud pixels (high confidence) and cirrus pixels (high confidence).mask=masker.getmultimask(cloud=confidence.high, cirrus=confidence.high)
# Save the result if you want.masker.savetif(mask, 'result.tif')
@haoliangyu nice. We are working on a new processing library for the next version of Landsat-util. This is something that could potentially be added there.
I developed a python lib pymasker to extract customized mask from Landsat 8 QA band, like
I wrote a detail guide in my blog.
How do you think adding similar functionality to landsat-util?
The text was updated successfully, but these errors were encountered: