healpix2cart (class) ∞
-
class
healpix2cart
(log, mapPath, settings=False)[source] ∞ Bases:
object
Take a healpix map and convert to a rectilinear projection.
- Key Arguments:
log
– loggersettings
– the settings dictionarymapPath
– path the the healpix map
Usage:
To setup your logger and settings, please use the
fundamentals
package (see tutorial here).To initiate a healpix2cart object, use the following:
from gocart.convert import healpix2cart converter = healpix2cart( log=log, mapPath=pathToOutputDir + "/bayestar.multiorder.fits", settings=settings ) wcs, mapDF, header = converter.convert()
Methods
convert
()convert the healpix map to a cartesian WCS and image
-
convert
()[source] ∞ convert the healpix map to a cartesian WCS and image
- Return:
wcs
– an astropy wcs objectmapDF
– the map converted cartesian format and recorded in a pandas dataframe.header
– the map header
Usage:
from gocart.convert import healpix2cart converter = healpix2cart( log=log, mapPath=pathToOutputDir + "/bayestar.multiorder.fits", settings=settings ) wcs, mapDF, header = converter.convert()