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 – logger

  • mapPath – path to the multiorder FITS file

  • outputFolder – path to output the results to

  • settings – the settings dictionary

  • meta – extra meta data to present on plots. Default: {}

  • plotName – the filename of the plot

  • patches – a patch collect to add to the plot

  • patchesColor – 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 True

  • galacticPlane – plot galactic plane contours. Default True

  • sunmoon – plot sun and moon. Default True

  • sunmoonContour – show contours within 33 deg of sun and 20 deg from moon

Return:
  • plotPath – path to the printed plot