modelutilExample: Atmospheric Constants
AtmConst class provides a comprehensive (someday)
and consistent definition of important atmospheric constants.
Constants are defined both
as class attributes and also as instance attributes
whose initial values are set by the class attribute version.
enables one to make local changes to local instances of the
AtmConst class without having the changes propagate
to all subsequent references. At the same time, you can change the
value in all subsequent references, if you wish, by altering and
using the class attribute definition.
AtmConst class is found in the
atmconst module in the package.
Here is an example of accessing the gas constant for dry air,
both as a class attribute and an instance attribute:
>>> from modelutil.atmconst import AtmConst
>>> const = AtmConst()
The pydoc documentation for the
AtmConst class provides details as to what
constants are defined and their units, and also gives more
information about the difference in using the class and