aitoff (class) ∞
-
class
aitoff
(log, mapPath, outputFolder, settings=False, meta={}, plotName='skymap.png', patches=None, patchesColor='#859900', patchesLabel=None)[source] ∞ Bases:
object
Convert Healpix Map to Aitoff projection with options to include galactic plane and sun position
- Key Arguments:
log
– loggermapPath
– path to the multiorder FITS fileoutputFolder
– path to output the results tosettings
– the settings dictionarymeta
– extra meta data to present on plots. Default: {}plotName
– the filename of the plotpatches
– a patch collect to add to the plotpatchesColor
– colour of the patches. Default ‘#859900’patchesLabel
– label for patches in the legend. Default None
Usage:
To setup your logger and settings, please use the
fundamentals
package (see tutorial here).To print the healpix map as an aitoff projection, use the following:
from gocart.convert import aitoff converter = aitoff( log=log, mapPath="path/to/bayestar.multiorder.fits", settings=settings ) converter.convert()
Methods
convert
([contours, galacticPlane, sunmoon, …])convert the healpix map to an aitoff plot
-
convert
(contours=True, galacticPlane=True, sunmoon=True, sunmoonContour=True)[source] ∞ convert the healpix map to an aitoff plot
- Key Arguments:
contours
– plot 50 and 90% contours. Default TruegalacticPlane
– plot galactic plane contours. Default Truesunmoon
– plot sun and moon. Default TruesunmoonContour
– show contours within 33 deg of sun and 20 deg from moon
- Return:
plotPath
– path to the printed plot