NCEPLIBS-g2 4.0.0
Loading...
Searching...
No Matches
gribmod.F90 File Reference

This Fortran module contains the declaration of derived type gribfield. More...

Go to the source code of this file.

Data Types

type  grib_mod::gribfield
 

Modules

module  grib_mod
 This Fortran module contains the declaration of derived type gribfield.
 

Variables

character(len=12) grib_mod::g2_version = "g2lib-4.0.0"
 Library version.
 

Detailed Description

This Fortran module contains the declaration of derived type gribfield.

Author
Stephen Gilbert
Date
2002-01-23

Definition in file gribmod.F90.


Data Type Documentation

◆ grib_mod::gribfield

type grib_mod::gribfield

Definition at line 14 of file gribmod.F90.

Data Fields
logical *1, dimension(:), pointer bmap => null() Logical*1 array containing decoded bitmap, if ibmap equals 0 or 254 - otherwise null.

This element is actually a pointer to an array that holds the data.

real, dimension(:), pointer coord_list => null() Real array containing floating point values intended to document the vertical discretisation associated to model data on hybrid coordinate vertical levels (part of Section 3 - the Grid Definition Section).

This element is actually a pointer to an array that holds the data.

integer discipline Message Discipline (see [Code Table 0.0] (https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table0-0.shtml)).
logical expanded Logical value indicating whether the data field was expanded to the grid in the case where a bit-map is present.

If true, the data points in fld match the grid points and zeros were inserted at grid points where data was bit-mapped out. If false, the data values in fld were not expanded to the grid and are just a consecutive array of data points corresponding to each value of "1" in bmap.

real, dimension(:), pointer fld => null() Array of ndpts unpacked data points.

This element is actually a pointer to an array that holds the data.

integer griddef Source of grid definition (see [Code Table 3.0] (https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table3-0.shtml))
integer ibmap Bitmap indicator (see [Code Table 6.0] (https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table6-0.shtml)).
  • 0 bitmap applies and is included in Section 6.
  • 1-253 Predefined bitmap applies.
  • 254 Previously defined bitmap applies to this field.
  • 255 Bit map does not apply to this product.
integer idrtlen Number of elements in the Data Representation Template array specified by idrtnum.
integer, dimension(:), pointer idrtmpl => null() Contains the data values for the Data Representation Template specified by idrtnum.

This element is actually a pointer to an array that holds the data.

integer idrtnum Data Representation Template Number ([Code Table 5.0] (https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table5-0.shtml)).
integer, dimension(:), pointer idsect => null() Contains the entries in the Identification Section (Section 1).
integer idsectlen Number of elements in idsect (always 13).
integer ifldnum Field number within GRIB message.
integer igdtlen Number of elements in the Grid Defintion Template specified by igdtnum.
integer, dimension(:), pointer igdtmpl => null() Contains the data values for the Grid Definition Template specified by igdtnum.

This element is actually a pointer to an array that holds the data.

integer igdtnum Grid Definition Template Number ([Code Table 3.1] (https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table3-1.shtml)).
integer interp_opt Interpretation of list of numbers at end of section 3 - the Grid Definiton Section.

(See [Code Table 3.11] (https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table3-11.shtml)).

integer ipdtlen Number of elements in the Product Defintion Template specified by ipdtnum.
integer, dimension(:), pointer ipdtmpl => null() Contains the data values for the Product Definition Template specified by ipdtnum.

This element is actually a pointer to an array that holds the data.

integer ipdtnum Product Definition Template Number ([Code Table 4.0] (https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table4-0.shtml)).
integer, dimension(:), pointer list_opt => null() (Used if numoct_opt .ne.

0.) This array contains the number of grid points contained in each row (or column) (part of Section 3), This element is actually a pointer to an array that holds the data. This pointer is null if numoct_opt equals 0.

character(len=1), dimension(:), pointer local => null() Pointer to character array containing contents of Local Section 2, if included.
integer locallen Length of array local.
integer ndpts Number of data points unpacked and returned.

Note that this number may be different from the value of ngrdpts if a logical bitmap is in use with grid points that are being masked out.

integer ngrdpts Number of grid points in the defined grid.

Note that the number of actual data values returned from getgb2() (in ndpts) may be less than this value if a logical bitmap is in use with grid points that are being masked out.

integer num_coord Number of values in array coord_list.

This is part of Section 3 - the Grid Definition Section.

integer num_opt (Used if numoct_opt .ne.

0.) The number of entries in array ideflist. i.e. number of rows (or columns) for which optional grid points are defined. This value is set to zero, if umoct_opt = 0.

integer numoct_opt Number of octets needed for each additional grid points definition.

Used to define number of points in each row (or column) for non-regular grids. Equal to 0, if using regular grid.

logical unpacked Logical value indicating whether the bitmap and data values were unpacked.

If false, bmap and fld pointers are null.

integer version GRIB edition number (currently 2).