NCEPLIBS-ip
4.3.0
|
Users derived type grid descriptor objects to abstract away the raw GRIB1 and GRIB2 grid definitions. More...
Data Types | |
type | grib1_descriptor |
Descriptor representing a grib1 grib descriptor section (GDS) with an integer array. More... | |
type | grib2_descriptor |
Grib-2 descriptor containing a grib2 GDT represented by an integer array. More... | |
interface | init_descriptor |
type | ip_grid_descriptor |
Abstract descriptor object which represents a grib1 or grib2 descriptor. More... | |
interface | operator(==) |
Functions/Subroutines | |
type(grib1_descriptor) function, public | init_grib1_descriptor (gds) |
Initialize grib-1 descriptor from integer grid definition section (GDS). More... | |
type(grib2_descriptor) function, public | init_grib2_descriptor (gdt_num, gdt_len, gdt_tmpl) |
Initialize grib-2 descriptor from integer grid definition template (GDT). More... | |
logical function | is_same_grid (grid1, grid2) |
Test whether two grid descriptors are the same. More... | |
logical function | is_same_grid_grib1 (self, grid_desc) |
Test whether two grib1_descriptors are the same. More... | |
logical function | is_same_grid_grib2 (self, grid_desc) |
Test whether two grib2_descriptors are the same. More... | |
Users derived type grid descriptor objects to abstract away the raw GRIB1 and GRIB2 grid definitions.
An abstract ip_grid_descriptor class is subclassed by the GRIB1 and GRIB2 descriptor types which contain the raw integer grib arrays. A comparison operator to test whether two grid descriptors are the same is also included.
type(grib1_descriptor) function, public ip_grid_descriptor_mod::init_grib1_descriptor | ( | integer, dimension(:), intent(in) | gds | ) |
Initialize grib-1 descriptor from integer grid definition section (GDS).
[in] | gds | Grib-1 grid definition section. |
Definition at line 74 of file ip_grid_descriptor_mod.F90.
type(grib2_descriptor) function, public ip_grid_descriptor_mod::init_grib2_descriptor | ( | integer, intent(in) | gdt_num, |
integer, intent(in) | gdt_len, | ||
integer, dimension(:), intent(in) | gdt_tmpl | ||
) |
Initialize grib-2 descriptor from integer grid definition template (GDT).
[in] | gdt_num | Grib-2 grid number. |
[in] | gdt_len | Lenght of the grid definition template. |
[in] | gdt_tmpl | Grib-2 grid definition template. |
Definition at line 93 of file ip_grid_descriptor_mod.F90.
|
private |
Test whether two grid descriptors are the same.
[in] | grid1 | An ip_grid_descriptor. |
[in] | grid2 | Another ip_grid_descriptor. |
Definition at line 115 of file ip_grid_descriptor_mod.F90.
Referenced by ip_grid_descriptor_mod::operator(==)::is_same_grid(), and ip_grid_mod::operator(==)::is_same_grid().
|
private |
Test whether two grib1_descriptors are the same.
[in] | self | The grib1_descriptor which this routine was called on. |
[in] | grid_desc | A grib1_descriptor to compare. |
Definition at line 145 of file ip_grid_descriptor_mod.F90.
|
private |
Test whether two grib2_descriptors are the same.
[in] | self | The grib2_descriptor which this routine was called on. |
[in] | grid_desc | grib2_descriptor to compare. |
Definition at line 164 of file ip_grid_descriptor_mod.F90.