pytroll / trollimage

Imaging package for pytroll
http://trollimage.readthedocs.org/
GNU General Public License v3.0
9 stars 17 forks source link

Histogram that ignores black/white #1

Closed howff closed 8 years ago

howff commented 8 years ago

Is it possible to modify the histogram function so that it ignores black and white (or more generally some particular range or set of ranges). The use case is geostationary satellite images of the earth where the view into space around the earth is either black or white and makes up a substantial percent of the pixels which should not be included in the binning. Thanks

mraspaud commented 8 years ago

The way we usually do it is to use masked arrays for the data, with space pixels masked. That way the histogram function should work as expected.