Provided by: libg2c-dev_1.6.4-3_amd64
NAME
drstemplates.c
SYNOPSIS
#include <stdlib.h> #include 'grib2.h' #include 'drstemplates.h' Functions gtemplate * extdrstemplate (g2int number, g2int *list) This subroutine generates the remaining octet map for a given Data Representation Template, if required. g2int getdrsindex (g2int number) This function returns the index of specified Data Representation Template 5.NN (NN=number) in array templates. gtemplate * getdrstemplate (g2int number) This subroutine returns DRS template information for a specified Data Representation Template 5.NN.
Detailed Description
Author Stephen Gilbert Date 2001-06-28 Definition in file drstemplates.c.
Function Documentation
gtemplate* extdrstemplate (g2int number, g2int * list) 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. PROGRAM HISTORY LOG: • 2000-05-11 Gilbert • 2009-01-14 Vuong Changed structure name template to gtemplate Parameters number NN, indicating the number of the Data Representation Template 5.NN that is being requested. list The list of values for each entry in the the Data Representation Template 5.NN. Returns Pointer to the returned template struct. Returns NULL pointer, if template not found. Author Stephen Gilbert Date 2000-05-11 Definition at line 104 of file drstemplates.c. References getdrsindex(), and getdrstemplate(). Referenced by g2_unpack5(). g2int getdrsindex (g2int number) This function returns the index of specified Data Representation Template 5.NN (NN=number) in array templates. PROGRAM HISTORY LOG: • 2001-06-28 Gilbert • 2009-01-14 Vuong Changed structure name template to gtemplate Parameters number NN, indicating the number of the Data Representation Template 5.NN that is being requested. Returns Index of DRT 5.NN in array gtemplates, if gtemplate exists. -1, otherwise. Author Stephen Gilbert Date 2001-06-28 Definition at line 24 of file drstemplates.c. References MAXDRSTEMP, and templatesdrs. Referenced by extdrstemplate(), and getdrstemplate(). gtemplate* getdrstemplate (g2int number) This subroutine returns DRS template information for a specified Data Representation Template 5.NN. 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. PROGRAM HISTORY LOG: • 2000-05-11 Gilbert • 2009-01-14 Vuong Changed structure name template to gtemplate Parameters number NN, indicating the number of the Data Representation Template 5.NN that is being requested. Returns Pointer to the returned template struct. Returns NULL pointer, if template not found. Author Stephen Gilbert Date 2000-05-11 Definition at line 57 of file drstemplates.c. References getdrsindex(), drstemplate::mapdrslen, drstemplate::needext, drstemplate::template_num, and templatesdrs. Referenced by extdrstemplate(), g2_addfield(), and g2_unpack5().
Author
Generated automatically by Doxygen for NCEPLIBS-g2c from the source code.