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

Avogadro's number [mol-1]

BOLTZ

Boltzmann's constant [J/K]

G

Acceleration due to gravity [m s-2]

R_EARTH_m

"Equal area" radius of the Earth [km] and [m] "Gives the correct total surface area when modeled as a sphere

MW_AIR_g

Typical molar mass of air [g mol-1]

MW_AIR_kg

Typical molar mass of air [kg mol-1]

MW_H2O_kg

Molar mass of water [kg mol-1]

RD

Gas constant in dry air [J/K/kg]

RSTARG

Molar gas constant [J/K/mol]

RV

Gas constant for water vapor [J/K/kg]

SKIP_THESE_VARS

netCDF variables that we should skip reading (these are from cubed-sphere data sets)

TABLE_WIDTH

Width for emissions & mass tables

COL_WIDTH

Column width for emissions & mass tables

ENCODING

Default encoding for file I/O

GLOBAL_LL_EXTENT

Default global lat/lon extent

NO_STRETCH_SG_STRETCH_FACTOR

Default cubed-sphere tretched-grid stretch factor (i.e. no stretching).

NO_STRETCH_SG_TARGET_LON

Default cubed-sphere stretched-grid target longitude (i.e. no stretching).

NO_STRETCH_SG_TARGET_LAT

Default cubed-sphere stretched-grid target latitude (i.e. no stretching).

NO_STRETCH_SG_PARAMS

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)