The module is used throughout the package to share constant parameters.
The standard default parameters lie below. They can be overwritten by the user in the User config file userconfigfile.
Directory of epygram package install
User customization directory
User config (overwrites standard config)
epygram Colormaps
gravity constant
Cp dry air
Specific gas constant, dry air
Specific gas constant, water vapor
Ptop: pressure @ summit of atmosphere. For vertical coordinates conversions.
Epsilon
Maximum number of truncations handled (setup spectral transforms)
Plots sizes (in inches)
Interactive graphical backend. If False, X11 is the graphical device. Non-interactive backends such as ‘Agg’ can be used, especially without export DISPLAY
Default output for apptools
List of implemented/activated formats for the formats_factory, the list is ordered by specificity for those of the same family (e.g. FA before LFI, DDHLFA before LFA...) Removing one of these (in userconfig file) may allow an incomplete install of epygram, disabling one format.
FA default compression parameters
Default reference pressure coefficient for converting hybrid A coefficients in FA
geoid of FA files in pyproj syntax
FA field dictionaries
FA (write) date & time precision: use FANDAR (minute) or FANDAX (second, cy40t1 onwards)
To avoid re-computing lons/lats of Gauss Grids from FA each time needed: makes ARPEGE profiles and section extraction times acceptable (< 1min).
LFA maximum number of fields
LFA maximum length of strings (as in most LFA useage)
GeoPoints write precision for lon/lat
GeoPoints write precision for other floats
GeoPoints write width of columns
GRIB default edition (1 or 2)
GRIB_default tablesVersion
GRIB default sample (possibility to use others)
GRIB default production parameters – write mode
GRIB default ordering of data
GRIB default packing – write mode. recommended packing types for GRIB2: (by increasing packing efficiency // decreasing speed performance) - grid_jpeg (15% // 100%) - grid_second_order (19% // 42%) - grid_simple (38% // 22%) - grid_ieee (100% // 12%)
GRIB samples from epygram
satellites local GRIB2 encoding
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s
(key, value) pairs
d = {} for k, v in iterable:
d[k] = v
LFI field dictionaries
geoid of LFI files in pyproj syntax
netCDF default behaviour
Use home-made projection formulas (epygram.myproj) vs of pyproj.
arpifs geoid for epygram.myproj
A classical default geoid for pyproj
Protect unhappy writes: ask before opening a new file on an existing path
Threshold on field absolute values to mask meaningless field values
To hide footprints warnings...
To raise an error if the memory needed for Legendre transforms exceeds this percentage of the available memory.
Use footprints.proxy builder to generate a field. Defaults to False for performance reasons, but less flexible.
Vector graphical symbol
Default quality for figures
ordering of spectral coefficients, with regards to arpifs spaces: ‘model’ or ‘FA’. => ‘model’: read/write by wfacilo/wfaieno,
‘FA’: read/write by wfacile/wfaienc
In userconfig, this should be a list of dict containing two keys: the module name and the source absolute path; e.g. {‘name’:’mymodule’, ‘abspath’:’/home/.../mymodule.py’}.
The import is done in epygram __init__.py.
In userconfig, this should be a dict whose keys are the colormap name and values the source absolute path of the colormap definition; e.g. {‘aspect’, ‘/home/mary/.epygram/aspect.cmap’}.
colormaps gathers epygram and user colormaps