NCEPLIBS-ip
4.3.0
|
Abstract grid that holds fields and methods common to all grids. More...
Private Member Functions | |
procedure | field_pos |
Field position for a given grid point. More... | |
procedure(gdswzd_interface), deferred | gdswzd |
Coordinate transformations for the grid. More... | |
generic | init => init_grib1, init_grib2 |
Init subprogram. More... | |
procedure(init_grib1_interface), deferred | init_grib1 |
Initializer for grib1 input descriptor. More... | |
procedure(init_grib2_interface), deferred | init_grib2 |
Initializer for grib2 input descriptor. More... | |
Private Attributes | |
class(ip_grid_descriptor), allocatable | descriptor |
Descriptor. More... | |
real | eccen_squared |
Eccentricity of the Earth squared (e^2). More... | |
integer | im |
Number of x points. More... | |
integer | iwrap |
x wraparound increment (0 if no wraparound). More... | |
integer | jm |
Number of y points. More... | |
integer | jwrap1 |
y wraparound lower pivot point (0 if no wraparound). More... | |
integer | jwrap2 |
y wraparound upper pivot point (0 if no wraparound). More... | |
integer | kscan |
Mass/wind flag for staggered diagonal (0 if mass; 1 if wind). More... | |
integer | nm |
Total number of points. More... | |
integer | nscan |
integer | nscan_field_pos |
nscan for field_pos routine. More... | |
real | rerth |
Radius of the Earth. More... | |
Abstract grid that holds fields and methods common to all grids.
ip_grid is meant to be subclassed when implementing a new grid.
There are three methods that must be implemented:
The init methods are responsible for setting up the grid using GRIB1/GRIB2 descriptors.
gdswzd() performs transformations to and from Earth coordinates and grid coordinates.
A good reference for all the map projection equations used by NCEPLIBS-ip can be found here: https://doi.org/10.3133/pp1395.
Definition at line 52 of file ip_grid_mod.F90.
|
private |
Field position for a given grid point.
Definition at line 82 of file ip_grid_mod.F90.
|
private |
|
private |
|
private |
|
private |
|
private |
Descriptor.
Definition at line 53 of file ip_grid_mod.F90.
|
private |
Eccentricity of the Earth squared (e^2).
Definition at line 72 of file ip_grid_mod.F90.
|
private |
Number of x points.
Definition at line 55 of file ip_grid_mod.F90.
|
private |
x wraparound increment (0 if no wraparound).
Definition at line 68 of file ip_grid_mod.F90.
|
private |
Number of y points.
Definition at line 56 of file ip_grid_mod.F90.
|
private |
y wraparound lower pivot point (0 if no wraparound).
Definition at line 69 of file ip_grid_mod.F90.
|
private |
y wraparound upper pivot point (0 if no wraparound).
Definition at line 70 of file ip_grid_mod.F90.
|
private |
Mass/wind flag for staggered diagonal (0 if mass; 1 if wind).
Definition at line 64 of file ip_grid_mod.F90.
|
private |
Total number of points.
Definition at line 57 of file ip_grid_mod.F90.
|
private |
Scanning | mode.
|
Definition at line 63 of file ip_grid_mod.F90.
|
private |
nscan for field_pos routine.
Can be different than nscan due to differences in grib/grib2.
Definition at line 66 of file ip_grid_mod.F90.
|
private |
Radius of the Earth.
Definition at line 71 of file ip_grid_mod.F90.