gammapy/ringtophat — Issue #6: Support "masks", a.k.a. "exclusion regions"?
Author: cdeil
Created: 2012-02-24 15:01:04+00:00
State: open

Sometimes parts of the image should be ignored, e.g. because there is missing or invalid data.
One way to signal these "exclusion regions" to the convolution method is to give an extra mask image [1],
another method is to use magic values.

Using NaN is especially popular for float images, see e.g. [2].

Let's see if we need this or if it is enough that the user simply multiplies her image with an exclusion mask (zeroing out the parts she doesn't want) before handing it to ringtophat.

[1] http://docs.scipy.org/doc/numpy/reference/routines.ma.html
[2] https://github.com/astropy/astropy/pull/155