Provided by: libg2c-dev_1.6.4-3_amd64
NAME
drstemplates.h - This C struct contains info on all the available GRIB2 Data Representation Templates used in Section 5 (DRS).
SYNOPSIS
#include 'grib2.h' Data Structures struct drstemplate Stuct for GRIB2 Data Representation Section (DRS) template. Macros #define MAXDRSMAPLEN 200 maximum template map length #define MAXDRSTEMP 9 maximum number of templates Variables const struct drstemplate templatesdrs [MAXDRSTEMP] Stuct holding data for GRIB2 Data Representation Section (DRS) template.
Detailed Description
This C struct contains info on all the available GRIB2 Data Representation Templates used in Section 5 (DRS). The information decribing each template is stored in the drstemplate structure defined below. Each Template has three parts: The number of entries in the template (mapdrslen); A map of the template (mapdrs), which contains the number of octets in which to pack each of the template values; and a logical value (needext) that indicates whether the Template needs to be extended. In some cases the number of entries in a template can vary depending upon values specified in the 'static' part of the template. (See Template 5.1 as an example.) Note Array mapdrs contains the number of octets in which the corresponding template values will be stored. A negative value in mapdrs is used to indicate that the corresponding template entry can contain negative values. This information is used later when packing (or unpacking) the template data values. Negative data values in GRIB are stored with the left most bit set to one, and a negative number of octets value in mapdrs indicates that this possibility should be considered. The number of octets used to store the data value in this case would be the absolute value of the negative value in mapdrs. Author Stephen Gilbeert Date 2002-10-26 Definition in file drstemplates.h.
Data Type Documentation
struct drstemplate
Stuct for GRIB2 Data Representation Section (DRS) template. Definition at line 39 of file drstemplates.h. Data Fields: g2int mapdrs[MAXDRSMAPLEN] A map of the template. g2int mapdrslen Length of map of the template. g2int needext Whether the Template needs to be extended. g2int template_num The number of entries in the template.
Macro Definition Documentation
#define MAXDRSMAPLEN 200 maximum template map length Definition at line 34 of file drstemplates.h. #define MAXDRSTEMP 9 maximum number of templates Definition at line 33 of file drstemplates.h.
Variable Documentation
const struct drstemplate templatesdrs[MAXDRSTEMP] Initial value: = { { 0, 5, 0, {4,-2,-2,1,1} }, { 2, 16, 0, {4,-2,-2,1,1,1,1,4,4,4,1,1,4,1,4,1} }, { 3, 18, 0, {4,-2,-2,1,1,1,1,4,4,4,1,1,4,1,4,1,1,1} }, { 50, 5, 0, {4,-2,-2,1,4} }, { 51, 10, 0, {4,-2,-2,1,-4,2,2,2,4,1} }, { 40, 7, 0, {4,-2,-2,1,1,1,1} }, { 41, 5, 0, {4,-2,-2,1,1} }, { 40000, 7, 0, {4,-2,-2,1,1,1,1} }, { 40010, 5, 0, {4,-2,-2,1,1} } } Stuct holding data for GRIB2 Data Representation Section (DRS) template. Definition at line 1 of file drstemplates.h. Referenced by getdrsindex(), and getdrstemplate().
Author
Generated automatically by Doxygen for NCEPLIBS-g2c from the source code.