|
NCEPLIBS-g2
3.4.7
|
This subroutine returns the contents of Section 2 from a GRIB2 message. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | getlocal (cgrib, lcgrib, localnum, csec2, lcsec2, ierr) |
| This subroutine returns the contents of Section 2 from a GRIB2 message. More... | |
This subroutine returns the contents of Section 2 from a GRIB2 message.
Definition in file getlocal.F90.
| subroutine getlocal | ( | character(len = 1), dimension(lcgrib), intent(in) | cgrib, |
| integer, intent(in) | lcgrib, | ||
| integer, intent(in) | localnum, | ||
| character(len = 1), dimension(*), intent(out) | csec2, | ||
| integer, intent(out) | lcsec2, | ||
| integer, intent(out) | ierr | ||
| ) |
This subroutine returns the contents of Section 2 from a GRIB2 message.
Since there can be multiple occurrences of Section 2 within a GRIB message, the calling routine indicates which occurrence is being requested with the localnum argument.
| [in] | cgrib | Character array that contains the GRIB2 message. |
| [in] | lcgrib | Length (in bytes) of GRIB message array cgrib. |
| [in] | localnum | The nth occurrence of Section 2 requested. |
| [out] | csec2 | Character array containing information read from Section 2. The dimension of this array can be obtained in advance from argument maxlocal, which is returned from subroutine gb_info(). |
| [out] | lcsec2 | Number of bytes of character array csec2 read from Section 2. |
| [out] | ierr | Error return code.
|
Definition at line 34 of file getlocal.F90.
References g2_gbytec().