coscon.fits_helper module

class coscon.fits_helper.BaseFitsHelper(path: Path, memmap: bool = True, name: str = '')[source]

Bases: object

A class for general fits files

property info: DataFrame[source]
property infos: List[DataFrame][source]
memmap: bool = True
name: str = ''
path: Path
class coscon.fits_helper.CMBFitsHelper(path: Path, memmap: bool = True, name: str = '')[source]

Bases: BaseFitsHelper

Specialized in fits container typically used in CMB analysis

property maps: ndarray[source]

Return a 2D healpix map array. where the first dimension is the i-th map

property n_maps: int[source]

Return total number of maps assuming it is a CMB fits

property names: List[str][source]

Get names of maps

property to_maps: Maps

package data in a Maps object

coscon.fits_helper.fits_info_cli()[source]