|
NCEPLIBS-g2
3.4.8
|
Find information about a GRIB field from the index. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | getgb2s (CBUF, NLEN, NNUM, J, JDISC, JIDS, JPDTN, JPDT, JGDTN, JGDT, K, GFLD, LPOS, IRET) |
| Find information about a GRIB field from the index and fill a grib_mod::gribfield. More... | |
Find information about a GRIB field from the index.
file and fill a grib_mod::gribfield.
Definition in file getgb2s.F90.
| subroutine getgb2s | ( | character(len = 1), dimension(nlen), intent(in) | CBUF, |
| integer, intent(in) | NLEN, | ||
| integer, intent(in) | NNUM, | ||
| integer, intent(in) | J, | ||
| integer, intent(in) | JDISC, | ||
| integer, dimension(*) | JIDS, | ||
| integer, intent(in) | JPDTN, | ||
| integer, dimension(*) | JPDT, | ||
| integer, intent(in) | JGDTN, | ||
| integer, dimension(*) | JGDT, | ||
| integer, intent(out) | K, | ||
| type(gribfield), intent(out) | GFLD, | ||
| integer, intent(out) | LPOS, | ||
| integer, intent(out) | IRET | ||
| ) |
Find information about a GRIB field from the index and fill a grib_mod::gribfield.
For a description of the index record see getg2i().
Users of this routine will need to include the line "use grib_mod" in their calling routine.
The unpacked bitmap and bitmap data field are the only components of the grib_mod::gribfield type not set by this routine.
| [in] | cbuf | Buffer (of size nlen bytes) containing index data. |
| [in] | nlen | Total length of all index records. |
| [in] | nnum | Number of index records. |
| [in] | j | Number of fields to skip (0 to search from beginning). |
| [in] | jdisc | GRIB2 discipline number of requested field. See GRIB2 - TABLE 0.0 - DISCIPLINE. Use -1 to accept any discipline. |
| [in] | jids | Array of values in the identification section. (Set to -9999 for wildcard.)
|
| [in] | jpdtn | Product Definition Template (PDT) number (n) (if = -1, don't bother matching PDT - accept any). |
| [in] | jpdt | Array of values defining the Product Definition Template of the field for which to search (=-9999 for wildcard). |
| [in] | jgdtn | Grid Definition Template (GDT) number (if = -1, don't bother matching GDT - accept any). |
| [in] | jgdt | array of values defining the Grid Definition Template of the field for which to search (=-9999 for wildcard). |
| [out] | k | Field number unpacked. |
| [out] | gfld | Derived type grib_mod::gribfield. |
| [out] | lpos | Starting position of the found index record within the complete index buffer, CBUF. = 0, if request not found. |
| [out] | iret | integer return code:
|
Definition at line 78 of file getgb2s.F90.
References g2_gbytec(), gf_unpack1(), gf_unpack3(), gf_unpack4(), and gf_unpack5().