grale.constants

This module defines several constants that can be used to express necessary quantities in.

Throughout the program, basic SI units are assumed, but with the constants defined in this module it is easy to convert certain quantities to these units. These constants are:

  • MASS_SUN

  • DIST_PC

  • DIST_KPC

  • DIST_MPC

  • DIST_GPC

  • SPEED_C

  • CONST_G

  • ANGLE_DEGREE

  • ANGLE_ARCMIN

  • ANGLE_ARCSEC

  • ANGLE_MILLIARCSEC

  • ANGLE_MICROARCSEC

grale.constants.ANGLE_ARCMIN = 0.0002908882086657216

Angle one arcminute, expressed in radians.

grale.constants.ANGLE_ARCSEC = 4.84813681109536e-06

Angle one arcsecond, expressed in radians.

grale.constants.ANGLE_DEGREE = 0.017453292519943295

Angle of one degree, expressed in radians.

grale.constants.ANGLE_MICROARCSEC = 4.848136811095361e-12

Angle one microarcsecond, expressed in radians.

grale.constants.ANGLE_MILLIARCSEC = 4.84813681109536e-09

Angle one milliarcsecond, expressed in radians.

grale.constants.CONST_G = 6.673e-11

The gravitational constant, expressed in units of 1 m^3/(kg s).

grale.constants.DIST_GPC = 3.0856775714409183e+25

Distance of one gigaparsec expressed in units of 1 m.

grale.constants.DIST_KPC = 3.0856775714409185e+19

Distance of one kiloparsec expressed in units of 1 m.

grale.constants.DIST_MPC = 3.0856775714409185e+22

Distance of one megaparsec expressed in units of 1 m.

grale.constants.DIST_PC = 3.0856775714409184e+16

Distance of one parsec expressed in units of 1 m.

grale.constants.MASS_SUN = 1.98855e+30

Solar mass expressed in units of 1 kg.

grale.constants.SPEED_C = 299792458.0

The speed of light, expressed in units of 1 m/s.