|
NCEPLIBS-g2
3.4.5
|
This subroutines finalizes a GRIB message after all grids and fields have been added. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | gribend (cgrib, lcgrib, lengrib, ierr) |
| This subroutine finalizes a GRIB message after all grids and fields have been added. More... | |
This subroutines finalizes a GRIB message after all grids and fields have been added.
Definition in file gribend.f.
| subroutine gribend | ( | character(len=1), dimension(lcgrib), intent(inout) | cgrib, |
| integer, intent(in) | lcgrib, | ||
| integer, intent(out) | lengrib, | ||
| integer, intent(out) | ierr | ||
| ) |
This subroutine finalizes a GRIB message after all grids and fields have been added.
It adds the End Section ( "7777" ) to the end of the GRIB message and calculates the length and stores it in the appropriate place in Section 0. This routine is used with routines gribcreate(), addlocal(), addgrid(), and addfield() to create a complete GRIB2 message. Subroutine gribcreate() must be called first to initialize a new GRIB2 message.
| [in,out] | cgrib | Character array to contain the GRIB2 message. |
| [in] | lcgrib | Maximum Length (in bytes) of array cgrib. |
| [out] | lengrib | Length of the final GRIB2 message in octets (bytes). |
| [out] | ierr | Error return code.
|