NCEPLIBS-g2  3.5.0
gdt2gds.F90 File Reference

Convert grid information from a GRIB2 grid to GRIB1 GDS info. More...

Go to the source code of this file.

Functions/Subroutines

subroutine gdt2gds (igds, igdstmpl, idefnum, ideflist, kgds, igrid, iret)
 Convert grid information from a GRIB2 Grid Description Section as well as its Grid Definition Template to GRIB1 GDS info. More...
 

Detailed Description

Convert grid information from a GRIB2 grid to GRIB1 GDS info.

Author
Stephen Gilbert
Date
2003-06-17

Definition in file gdt2gds.F90.

Function/Subroutine Documentation

◆ gdt2gds()

subroutine gdt2gds ( integer, dimension(*), intent(in)  igds,
integer, dimension(*), intent(in)  igdstmpl,
integer, intent(in)  idefnum,
integer, dimension(*), intent(in)  ideflist,
integer, dimension(*), intent(out)  kgds,
integer, intent(out)  igrid,
integer, intent(out)  iret 
)

Convert grid information from a GRIB2 Grid Description Section as well as its Grid Definition Template to GRIB1 GDS info.

In addition, a check is made to determine if the grid is a NCEP predefined grid.

Parameters
[in]igdsContains information read from the appropriate GRIB Grid Definition Section 3 for the field being returned. Must be dimensioned >= 5.
[in]igdstmplGrid Definition Template values.
[in]idefnumThe number of entries in array ideflist. i.e. number of rows (or columns) for which optional grid points are defined.
[in]ideflistOptional integer array containing the number of grid points contained in each row (or column).
[out]kgdsGRIB1 GDS as described in NCEPLIBS-w3emc w3fi63() function.
[out]igridNCEP predefined GRIB1 grid number. Set to 255, if not an NCEP grid.
[out]iretError return value:
  • 0 No error.
  • 1 Unrecognized GRIB2 GDT number.
Author
Stephen Gilbert
Date
2003-06-17

Definition at line 44 of file gdt2gds.F90.