Source code for lsst.sims.maf.maps.galCoordsMap

from lsst.sims.utils import _galacticFromEquatorial
from lsst.sims.maf.maps import BaseMap

__all__ = ['GalCoordsMap']

[docs]class GalCoordsMap(BaseMap): def __init__(self): self.keynames = ['gall', 'galb']
[docs] def run(self, slicePoints): gall, galb = _galacticFromEquatorial(slicePoints['ra'],slicePoints['dec']) slicePoints['gall'] = gall slicePoints['galb'] = galb return slicePoints