gcpy.constants
Contains definitions of physical and chemical constants, as well as other needed global variables.
Notes
Physical constant definitions are taken from NIST, 2014.
Module Attributes
Avogadro's number [mol-1] |
|
Boltzmann's constant [J/K] |
|
Acceleration due to gravity [m s-2] |
|
"Equal area" radius of the Earth [km] and [m] "Gives the correct total surface area when modeled as a sphere |
|
Typical molar mass of air [g mol-1] |
|
Typical molar mass of air [kg mol-1] |
|
Molar mass of water [kg mol-1] |
|
Gas constant in dry air [J/K/kg] |
|
Molar gas constant [J/K/mol] |
|
Gas constant for water vapor [J/K/kg] |
|
netCDF variables that we should skip reading (these are from cubed-sphere data sets) |
|
Width for emissions & mass tables |
|
Column width for emissions & mass tables |
|
Default encoding for file I/O |
|
Default global lat/lon extent |
|
Default cubed-sphere tretched-grid stretch factor (i.e. no stretching). |
|
Default cubed-sphere stretched-grid target longitude (i.e. no stretching). |
|
Default cubed-sphere stretched-grid target latitude (i.e. no stretching). |
|
Default stretched-grid parameters list (stretch factor, target lon, target lat) |
- gcpy.constants.AVOGADRO = 6.022140857e+23
Avogadro’s number [mol-1]
- gcpy.constants.BOLTZ = 1.38064852e-23
Boltzmann’s constant [J/K]
- gcpy.constants.G = 9.80665
Acceleration due to gravity [m s-2]
- gcpy.constants.R_EARTH_m = 6371007.2
“Equal area” radius of the Earth [km] and [m] “Gives the correct total surface area when modeled as a sphere
- gcpy.constants.MW_AIR_g = 28.9644
Typical molar mass of air [g mol-1]
- gcpy.constants.MW_AIR_kg = 0.0289644
Typical molar mass of air [kg mol-1]
- gcpy.constants.MW_H2O_kg = 0.018016
Molar mass of water [kg mol-1]
- gcpy.constants.RD = 287.0
Gas constant in dry air [J/K/kg]
- gcpy.constants.RSTARG = 8.3144598
Molar gas constant [J/K/mol]
- gcpy.constants.RV = 461.0
Gas constant for water vapor [J/K/kg]
- gcpy.constants.SKIP_THESE_VARS = ['anchor', 'ncontact', 'orientation', 'contacts', 'cubed_sphere']
netCDF variables that we should skip reading (these are from cubed-sphere data sets)
- gcpy.constants.TABLE_WIDTH = 105
Width for emissions & mass tables
- gcpy.constants.COL_WIDTH = 20
Column width for emissions & mass tables
- gcpy.constants.ENCODING = 'UTF-8'
Default encoding for file I/O
- gcpy.constants.GLOBAL_LL_EXTENT = [-180, 180, -90, 90]
Default global lat/lon extent
- gcpy.constants.NO_STRETCH_SG_STRETCH_FACTOR = 1
Default cubed-sphere tretched-grid stretch factor (i.e. no stretching)
- gcpy.constants.NO_STRETCH_SG_TARGET_LON = 170
Default cubed-sphere stretched-grid target longitude (i.e. no stretching)
- gcpy.constants.NO_STRETCH_SG_TARGET_LAT = -90
Default cubed-sphere stretched-grid target latitude (i.e. no stretching)
- gcpy.constants.NO_STRETCH_SG_PARAMS = [1, 170, -90]
Default stretched-grid parameters list (stretch factor, target lon, target lat)