Coverage for python/lsst/sims/survey/fields/field.py : 97%

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
"""Gather survey field information.
Attributes ---------- fid : int An identifier for the field. ra : float The right-ascension (degrees) of the field. dec : float The declination (degrees) of the field. gl : float The galactic longitude (degrees) of the field. gb : float The galactic latitude (degrees) of the field. el : float The ecliptic longitude (degrees) of the field. eb : float The ecliptic latitude (degrees) of the field. fov : float The field-of-view (degrees) of the field. """
"""Initialize class.
Parameters ---------- fid : int An indentifier for the field. ra : float The right-ascension (degrees) for the field. dec : float The declination (degrees) for the field. gl : float The galactic longitude (degrees) for the field. gb : float The galactic latitude (degrees) for the field. el : float The ecliptic longitude (degrees) for the field. eb : float The ecliptic latitude (degrees) for the field. fov : float The field-of-view (degrees) for the field. """
"""The instance string representation.
Returns ------- str """ return "Id: {}, RA: {}, Dec:{}, GL: {}, "\ "GB: {}, EL: {}, EB: {}, FOV: {}".format(self.fid, self.ra, self.dec, self.gl, self.gb, self.el, self.eb, self.fov)
def ra_rad(self): """float : The right-ascension (radians) of the field. """
def dec_rad(self): """float : The declination (radians) of the field. """
def gl_rad(self): """float : The galactic longitude (radians) of the field. """
def gb_rad(self): """float : The galactic latitude (radians) of the field. """
def el_rad(self): """float : The ecliptic longitude (radians) of the field. """
def eb_rad(self): """float : The ecliptic latitude (radians) of the field. """
def fov_rad(self): """float : The field-of-view (radians) of the field. """
def from_db_row(cls, row): """Create instance from a database table row.
Parameters ---------- row : list The database row information to create the instance from.
Returns ------- :class:`.Field` The instance containing the database row information. """ row[1]) |