healpy.fitsfunc.write_map

healpy.fitsfunc.write_map(filename, m, nest=False, dtype=<class 'Mock'>, fits_IDL=True, coord=None, column_names=None)

Writes an healpix map into an healpix file.

Parameters :

filename : str

the fits file name

m : array or sequence of 3 arrays

the map to write. Possibly a sequence of 3 maps of same size. They will be considered as I, Q, U maps. Supports masked maps, see the ma function.

nest : bool, optional

If False, ordering scheme is NESTED, otherwise, it is RING. Default: RING.

fits_IDL : bool, optional

If True, reshapes columns in rows of 1024, otherwise all the data will go in one column. Default: True

coord : str

The coordinate system, typically ‘E’ for Ecliptic, ‘G’ for Galactic or ‘C’ for Celestial (equatorial)

column_names : str or list

Column name or list of column names, if None we use: I_STOKES for 1 component, I/Q/U_STOKES for 3 components, II, IQ, IU, QQ, QU, UU for 6 components, COLUMN_0, COLUMN_1... otherwise

Project Versions

Previous topic

healpy.fitsfunc.read_map

Next topic

healpy.fitsfunc.read_alm

This Page