developmentseed / developmentseed/landsat-util

Extract customized mask from QA band

Open
#182 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
698
Forks
144
PR merge metrics
No merged PRs in 30d

Description

I developed a python lib [pymasker](https://github.com/haoliangyu/pymasker) to extract customized mask from Landsat 8 QA band, like

``` python
from pymasker import landsatmasker
from pymasker import confidence

# load the QA band directly
masker = landsatmasker('LC80170302014272LGN00_BQA.TIF')

# load a numpy array that contains band data
masker = 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')
```

I wrote a detail guide in [my blog](http://haoliangyu.github.io/2015/01/19/Making-masks-with-Landsat-8-Quality-Assessment-band-using-Python/).

How do you think adding similar functionality to landsat-util?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.