|
NCEPLIBS-g2
3.4.5
|
This routine converts 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) |
| This routine converts grid information from a GRIB2 Grid Description Section as well as its Grid Definition Template to GRIB1 GDS info. More... | |
This routine converts grid information from a GRIB2 grid to GRIB1 GDS info.
Definition in file gdt2gds.f.
| 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 | ||
| ) |
This routine converts 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.
PROGRAM HISTORY LOG:
| [in] | igds | Contains information read from the appropriate GRIB Grid Definition Section 3 for the field being returned. Must be dimensioned >= 5.
|
| [in] | igdstmpl | Grid Definition Template values for GDT 3.igds(5) |
| [in] | idefnum | The number of entries in array ideflist. i.e. number of rows (or columns) for which optional grid points are defined. |
| [in] | ideflist | Optional integer array containing the number of grid points contained in each row (or column). |
| [out] | kgds | GRIB1 GDS as described in w3fi63 format. |
| [out] | igrid | NCEP predefined GRIB1 grid number set to 255, if not NCEP grid. |
| [out] | iret | Error return value:
|