g2_create.c(3) | Library Functions Manual | g2_create.c(3) |
g2_create.c - Initialize a new GRIB2 message and pack GRIB2 sections 0 (Indicator Section) and 1 (Identification Section).
#include 'grib2_int.h'
#include <stdio.h>
#define LENSEC0 16
Length of GRIB Section 0. #define MAPSEC1LEN 13
Length of Map Section 1.
g2int g2_create (unsigned char *cgrib, g2int
*listsec0, g2int *listsec1)
Initialize a new GRIB2 message and pack GRIB2 Section 0 (Indicator Section)
and Section 1 (Identification Section).
Initialize a new GRIB2 message and pack GRIB2 sections 0 (Indicator Section) and 1 (Identification Section).
Author
Date
Definition in file g2_create.c.
Length of GRIB Section 0.
Definition at line 11 of file g2_create.c.
Length of Map Section 1.
Definition at line 10 of file g2_create.c.
Initialize a new GRIB2 message and pack GRIB2 Section 0 (Indicator Section) and Section 1 (Identification Section). This routine is used with routines g2_addlocal(), g2_addgrid(), g2_addfield(), and g2_gribend() to create a complete GRIB2 message. g2_create() must be called first to initialize a new GRIB2 message. A call to g2_gribend() is required to complete GRIB2 message after all fields have been added.
Parameters
listsec1 Contains information needed for GRIB Identification Section 1. Must be dimensioned >= 13.
Returns
This routine is intended for use with routines g2_addlocal(), g2_addgrid(), g2_addfield(), and g2_gribend() to create a complete GRIB2 message.
Author
Date
Definition at line 68 of file g2_create.c.
References G2_CREATE_GRIB_VERSION, LENSEC0, MAPSEC1LEN, and sbit().
Generated automatically by Doxygen for NCEPLIBS-g2c from the source code.
Version 2.1.0 | NCEPLIBS-g2c |