mangadap.util.constants module¶
Defines a catch-all class for useful constants. These are meant to be values that are not available elsewhere, such as astropy.constants.
- License:
- Copyright (c) 2015, SDSS-IV/MaNGA Pipeline Group
- Licensed under BSD 3-clause license - see LICENSE.rst
- Source location:
- $MANGADAP_DIR/python/mangadap/util/constants.py
- Imports and python version compliance:
from __future__ import division from __future__ import print_function from __future__ import absolute_import from __future__ import unicode_literals import sys if sys.version > '3': long = int import numpy
- Revision history:
- 28 May 2015: Original implementation by K. Westfall (KBW)01 Jun 2017: (KBW) Changed attributes to class globals
-
class
mangadap.util.constants.
DAPConstants
[source]¶ Bases:
object
Defines the following set of constants:
-
sig2fwhm
¶ Conversion factor from the standard deviation, \(\sigma\), of a Gaussian to its full-width at half maximum (FWHM).
Type: float
-
rad2arcs
¶ Conversion factor from radians to to arcseconds
Type: float
-
sidereal_year
¶ Length of a sidereal year (1.0000385 Gregorian years) in seconds.
Type: float
-
rad2arcs
= 206264.80624709636
-
sidereal_year
= 31558175.779
-
sig2fwhm
= 2.3548200450309493
-