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

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.
 

Detailed Description

Subroutines for converting GRIB2 info to string output.

Author
Stephen Gilbert
Date
2010-09-08

Definition in file prgrib2.F90.

Function/Subroutine Documentation

◆ frmt()

subroutine frmt ( character(len = 10), intent(out)  cval,
integer, intent(in)  ival,
integer, intent(in)  iscal 
)

Format the level description.

Parameters
[in]cvalchar array that gets the level description.
[in]ivalvalue to be used in level description.
[out]iscalscaling factor (if any) for ival.
Author
Vuong
Date
2010-09-08

Definition at line 257 of file prgrib2.F90.

Referenced by prlevel().

◆ 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.

Parameters
[in]ipdtnProduct Definition Template Number ([Code Table 4.0] (https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table4-0.shtml)).
[in]ipdtmplArray of data values for the Product Definition Template specified by ipdtn.
[out]labbrevCharacter array which gets the string describing the level. Must be of length 40.
Author
Stephen Gilbert
Date
2010-09-08

Definition at line 23 of file prgrib2.F90.

References frmt().

Referenced by degrib2().

◆ prvtime()

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.

Parameters
[in]ipdtnProduct Definition Template Number ([Code Table 4.0] (https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table4-0.shtml)).
[in]ipdtmplArray of data values for the Product Definition Template specified by ipdtn.
[in]listsec1Contains information read from GRIB Identification Section 1. Must be dimensioned >= 13.
[out]tabbrevCharacter array that will get the date and time string. Must be of length 100.
Author
Stephen Gilbert
Date
2010-09-08

Definition at line 296 of file prgrib2.F90.

Referenced by degrib2().