NCEPLIBS-g2c
1.7.0
|
Finalize a GRIB2 message after all grids and fields have been added. More...
Go to the source code of this file.
Functions | |
g2int | g2_gribend (unsigned char *cgrib) |
This routine finalizes a GRIB2 message after all grids and fields have been added. More... | |
Finalize a GRIB2 message after all grids and fields have been added.
Definition in file g2_gribend.c.
g2int g2_gribend | ( | unsigned char * | cgrib | ) |
This routine finalizes a GRIB2 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 g2_create(), g2_addlocal(), g2_addgrid(), and g2_addfield() to create a complete GRIB2 message.
cgrib | Char array containing all the data sections added be previous calls to g2_create(), g2_addlocal(), g2_addgrid(), and g2_addfield(). After function is called, contains the finalized GRIB2 message. |
Definition at line 37 of file g2_gribend.c.
References G2_ADD_MSG_COMPLETE, G2_ADD_MSG_INIT, G2_BAD_SEC, G2_BAD_SEC_COUNTS, g2c_check_msg(), G2C_MSG_COMPLETE, G2C_NOT_GRIB, gbit(), and sbit().