in r104 I added a simple function for using masked arrays with maps, to mask
out unobserved pixels.
create a masked array for map, useful for summing, averaging and making
histograms (using .compressed())
example:
import healpy as H
m = H.read_map('m.fits')
mma = H.ma(m)
mma.mean() # avoids the -1.6e30 values
hist(mma.compresses()) # removes unobserved pixels
I think in the long term healpy should use masked arrays by default, filling
with UNSEEN only when required by c++ code.
Original issue reported on code.google.com by andrea.z...@gmail.com on 22 Jun 2010 at 8:18
Original issue reported on code.google.com by
andrea.z...@gmail.com
on 22 Jun 2010 at 8:18