pyrsig.grids package¶
Module contents¶
- def_grid_kwdict
Keys are names of known grids. Values are dictionary of keywords for IOAPI grid defintion and RSIG regridding options:
- IOAPI parameters:
- GDNAMstr
Name of the grid (e.g., ‘12US1’)
- GDTYPint
IOAPI numbered grid type (e.g., 2: lambert conformal; 6: polar stereographic)
- NCOLSint
number of columns (e.g., 459)
- NROWSint
number of rows (e.g., 299)
- XORIGfloat
The projected x-coordinate of the bottom left corner of the bottom-most left-most cell in meters (e.g., -2556000.0)
- YORIGfloat
The projected y-coordinate of the bottom left corner of the bottom-most left-most cell in meters (e.g., -1728000.0)
- XCELLfloat
Width of grid cell in meters (e.g., 12000.)
- YCELLfloat
Height of grid cell in meters (e.g., 12000.)
- P_ALPfloat
First of three parameters whose meaning depends on GDTYP - GDTYP=2: the first true standard latitude (e.g., 33) - GDTYP=6: either 1 for north pole or -1 for south pole.
- P_BETfloat
Second of three parameters whose meaning depends on GDTYP - GDTYP=2: the second true standard latitude (e.g., 45) - GDTYP=6: the secant latitude (i.e., of true scale)
- P_GAMfloat
Thrid of three parameters whose meaning depends on GDTYP - GDTYP=2: the central meridian (e.g., -97) - GDTYP=6: the central meridian (e.g., -98)
- XCENTfloat
The longitude for the center (0,0) of the projected system. (.e.g, -97.0)
- YCENTfloat
The latitude for the center (0,0) of the projected system. (.e.g, 40..0)
- VGTYPint
Vertical grid coordinate where 7 terrain following fractional pressure (s=(p-ptop)/(psurf - ptop)) or -9999 is the new WRF hybrid vertical coordinate that transitions to constant pressure at s=0.2
- VGTOPfloat
Top of the vertical domain in Pascals (e.g., 5000.)
- NLAYSint
Number of vertical layers (e.g., 35)
- RSIG regridding options:
- earth_radiusfloat
- gfloat
Gravitational acceleration in m/s**2 (e.g., 9.81)
- Rfloat
Ideal gas constant in J/kg/K (e.g., 287.04)
- Afloat
Atmospheric lapse rate in K (e.g., 50.)
- T0float
Reference temperature in Kelvin (e.g., 290.)
- P0float
Reference pressure in Pascals (e.g., 1000e2)
- REGRID_AGGREGATEstr
Options: ‘None’, ‘daily’, ‘all’
- REGRIDstr
Options: ‘weighted’ or ‘mean’ weighted uses fractional area weights mean is the simple average of pixels with centroids in the grid
A=50., T0=290, P0=1000e2, REGRID_AGGREGATE=’None’, REGRID=’weighted’