NCEPLIBS-g2 4.0.0
|
Subroutines for converting GRIB2 info to string output. More...
Go to the source code of this file.
Functions/Subroutines | |
subroutine | frmt (cval, ival, iscal) |
Format the level description. | |
subroutine | prlevel (ipdtn, ipdtmpl, labbrev) |
Print level information to a character array, given the GRIB2 Product Definition Template information. | |
subroutine | prvtime (ipdtn, ipdtmpl, listsec1, tabbrev) |
Convert date and time from GRIB2 info to string output. | |
Subroutines for converting GRIB2 info to string output.
Definition in file prgrib2.F90.
subroutine frmt | ( | character(len = 10), intent(out) | cval, |
integer, intent(in) | ival, | ||
integer, intent(in) | iscal | ||
) |
Format the level description.
[in] | cval | char array that gets the level description. |
[in] | ival | value to be used in level description. |
[out] | iscal | scaling factor (if any) for ival. |
Definition at line 257 of file prgrib2.F90.
Referenced by prlevel().
subroutine prlevel | ( | integer, intent(in) | ipdtn, |
integer, dimension(*), intent(in) | ipdtmpl, | ||
character(len = 40), intent(out) | labbrev | ||
) |
Print level information to a character array, given the GRIB2 Product Definition Template information.
This subroutine finds the "Type of first fixed surface" (see [Code table 4.5](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_temp4-0.shtml)) using the product definition template value. The location in the template array varies depending on the template number.
[in] | ipdtn | Product Definition Template Number ([Code Table 4.0] (https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table4-0.shtml)). |
[in] | ipdtmpl | Array of data values for the Product Definition Template specified by ipdtn. |
[out] | labbrev | Character array which gets the string describing the level. Must be of length 40. |
Definition at line 23 of file prgrib2.F90.
References frmt().
Referenced by degrib2().
subroutine prvtime | ( | integer, intent(in) | ipdtn, |
integer, dimension(*), intent(in) | ipdtmpl, | ||
integer, dimension(*), intent(in) | listsec1, | ||
character(len = 110), intent(out) | tabbrev | ||
) |
Convert date and time from GRIB2 info to string output.
[in] | ipdtn | Product Definition Template Number ([Code Table 4.0] (https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table4-0.shtml)). |
[in] | ipdtmpl | Array of data values for the Product Definition Template specified by ipdtn. |
[in] | listsec1 | Contains information read from GRIB Identification Section 1. Must be dimensioned >= 13. |
[out] | tabbrev | Character array that will get the date and time string. Must be of length 100. |
Definition at line 296 of file prgrib2.F90.
Referenced by degrib2().