Skip to content

Commit

Permalink
Merge 73c485c into b9f6ad0
Browse files Browse the repository at this point in the history
  • Loading branch information
keflavich committed Jul 30, 2019
2 parents b9f6ad0 + 73c485c commit e4908aa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/masks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,11 @@ as well as a cutout with the data multiplied by the mask::
>>> weighted_data = mask.multiply(hdu.data)
>>> pf.close()

Note that ``weighted_data`` will have zeros where the mask is zero; it therefore
should not be used to compute statistics. See `Masked Statistics` below.

We can take a look at the results to make sure the source overlaps
with the aperture::
with the aperture:

.. doctest-skip::

Expand Down Expand Up @@ -241,6 +244,9 @@ at the extent of the mask in the image:

pf.close()

Masked Statistics
`````````````````

Finally, we can use the mask and data values to compute weighted
statistics::

Expand Down

0 comments on commit e4908aa

Please sign in to comment.