Coverage for python/lsst/skymap/healpixSkyMap.py : 90%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# # LSST Data Management System # Copyright 2008, 2009, 2010, 2012 LSST Corporation. # # This product includes software developed by the # LSST Project (http://www.lsst.org/). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the LSST License Statement and # the GNU General Public License along with this program. If not, # see <http://www.lsstcorp.org/LegalNotices/>. #
# We want to register the HealpixSkyMap, but want "healpy" to be an # optional dependency. However, the HealpixSkyMap requires the use # of healpy. Therefore, we'll only raise an exception on the healpy # import when it comes time to using it. except Exception as e: class DummyHealpy: """An object which blows up when we try to read it"""
def __getattr__(self, name, e=e): raise RuntimeError("Was unable to import healpy: %s" % e) healpy = DummyHealpy()
"""Convert healpy's ang to an lsst.afw.geom.SpherePoint
The ang is provided as a single object, thetaphi, so the output of healpy functions can be directed to this function without additional translation. """
"""Convert an lsst.afw.geom.SpherePoint to a healpy ang (theta, phi)
The Healpix convention is that 0 <= theta <= pi, 0 <= phi < 2pi. """
"""Tract for the HealpixSkyMap"""
"""Set vertices from nside, ident, nest""" vertexList, tractOverlap, wcs)
"""Configuration for the HealpixSkyMap"""
"""HEALPix-based sky map pixelization.
We put a Tract at the position of each HEALPixel. """
"""Constructor
@param[in] config: an instance of self.ConfigClass; if None the default config is used @param[in] version: software version of this class, to retain compatibility with old instances """
"""Find the tract whose inner region includes the coord."""
"""Get the TractInfo for a particular index""" self.config.patchBorder, center, self.config.tractOverlap*afwGeom.degrees, wcs)
"""Add subclass-specific state or configuration options to the SHA1.""" |