NCEPLIBS-g2  3.4.7
getdim.f File Reference

This subroutine returns the info of GRIB2 Grid Definition Section 3 format. More...

Go to the source code of this file.

Functions/Subroutines

subroutine getdim (csec3, lcsec3, width, height, iscan)
 This subroutine returns the dimensions and scanning mode of a grid definition packed in GRIB2 Grid Definition Section 3 format. More...
 

Detailed Description

This subroutine returns the info of GRIB2 Grid Definition Section 3 format.

Author
Stephen Gilbert
Date
2002-12-11

Definition in file getdim.f.

Function/Subroutine Documentation

◆ getdim()

subroutine getdim ( character(len=1), dimension(*), intent(in)  csec3,
integer, intent(in)  lcsec3,
integer, intent(out)  width,
integer, intent(out)  height,
integer, intent(out)  iscan 
)

This subroutine returns the dimensions and scanning mode of a grid definition packed in GRIB2 Grid Definition Section 3 format.

Parameters
[in]csec3Character array that contains the packed GRIB2 GDS.
[in]lcsec3Length (in octets) of section 3.
[out]widthx (or i) dimension of the grid.
[out]heighty (or j) dimension of the grid.
[out]iscanScanning mode (see Code Table 3.4).
Note
Returns width and height set to zero, if grid template not recognized.
Author
Stephen Gilbert
Date
2002-12-11

Definition at line 21 of file getdim.f.

References gf_unpack3().

Referenced by addfield().