NCEPLIBS-g2c
1.7.0
|
Functions for GRIB2 Data Representation Templates (DRT) for the Data Representation Setcion. More...
Go to the source code of this file.
Macros | |
#define | MAXDRSMAPLEN 200 |
maximum template map length More... | |
#define | MAXDRSTEMP 9 |
maximum number of templates More... | |
Functions | |
gtemplate * | extdrstemplate (g2int number, g2int *list) |
This subroutine generates the remaining octet map for a given Data Representation Template, if required. More... | |
static g2int | getdrsindex (g2int number) |
This function returns the index of specified Data Representation Template. More... | |
gtemplate * | getdrstemplate (g2int number) |
This subroutine returns DRS template information for a specified Data Representation Template. More... | |
Variables | |
static const struct drstemplate | templatesdrs [MAXDRSTEMP] |
Stuct holding data for GRIB2 Data Representation Section (DRS) template. More... | |
Functions for GRIB2 Data Representation Templates (DRT) for the Data Representation Setcion.
Each Template has three parts:
Date | Programmer | Comments |
---|---|---|
2001-06-28 | Gilbert | Initial |
2009-01-14 | Vuong | Changed structure name template to gtemplate |
Definition in file drstemplates.c.
#define MAXDRSMAPLEN 200 |
maximum template map length
Definition at line 39 of file drstemplates.c.
#define MAXDRSTEMP 9 |
maximum number of templates
Definition at line 38 of file drstemplates.c.
This subroutine generates the remaining octet map for a given Data Representation Template, if required.
Some Templates can vary depending on data values given in an earlier part of the Template, and it is necessary to know some of the earlier entry values to generate the full octet map of the Template.
number | The number of the Data Representation Template that is being requested. |
list | The list of values for each entry in the the Data Representation Template. |
Definition at line 212 of file drstemplates.c.
References getdrsindex(), and getdrstemplate().
Referenced by g2_unpack5().
This function returns the index of specified Data Representation Template.
number | The number of the Data Representation Template that is being requested. |
Definition at line 134 of file drstemplates.c.
References MAXDRSTEMP, and templatesdrs.
Referenced by extdrstemplate(), and getdrstemplate().
This subroutine returns DRS template information for a specified Data Representation Template.
The number of entries in the template is returned along with a map of the number of octets occupied by each entry. Also, a flag is returned to indicate whether the template would need to be extended.
number | The number of the Data Representation Template that is being requested. |
Definition at line 166 of file drstemplates.c.
References getdrsindex(), and templatesdrs.
Referenced by extdrstemplate(), g2_addfield(), and g2_unpack5().
|
static |
Stuct holding data for GRIB2 Data Representation Section (DRS) template.
Definition at line 56 of file drstemplates.c.
Referenced by getdrsindex(), and getdrstemplate().