read_map

pysm.read_map(path, nside, unit=None, field=0, map_dist=None)[source] [edit on github]

Wrapper of healpy.read_map for PySM data. This function also extracts the units from the fits HDU and applies them to the data array to form an astropy.units.Quantity object. This function requires that the fits file contains a TUNIT key for each populated field.

Parameters:
path : object pathlib.Path, or str

Path of HEALPix map to be read.

nside : int

Resolution at which to return map. Map is read in at whatever resolution it is stored, and healpy.ud_grade is applied.

Returns:
map : ndarray

Numpy array containing HEALPix map in RING ordering.