ascii (class) ∞
-
class
ascii(log, mapPath, nside=64, settings=False)[source] ∞ Bases:
objectTake a healpix map and convert to an ascii map with one row per ~deg2
- Key Arguments:
log– loggermapPath– path the the healpix map or an astropy skymap tablenside– size of healpix pixels to resolve the sky tosettings– the settings dictionary
Usage:
To setup your logger and settings, please use the
fundamentalspackage (see tutorial here).To convert a healpix map to ascii, run:
from gocart.convert import ascii c = ascii( log=log, mapPath="/path/to/bayestar.multiorder.fits", nside=64, settings=settings ) asciiContent = c.convert(outputFilepath="/path/to/skymap.csv")
Methods
convert([outputFilepath])Convert the healpix map to ascii format and optionally save the ascii map to file