drstemplates.h(3) | NCEPLIBS-g2c | drstemplates.h(3) |
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
Author
Date
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 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.
Tue May 3 2022 | Version 1.6.4 |