.TH "drstemplates.c" 3 "Tue May 3 2022" "Version 1.6.4" "NCEPLIBS-g2c" \" -*- nroff -*- .ad l .nh .SH NAME drstemplates.c .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include 'grib2\&.h'\fP .br \fC#include 'drstemplates\&.h'\fP .br .SS "Functions" .in +1c .ti -1c .RI "\fBgtemplate\fP * \fBextdrstemplate\fP (\fBg2int\fP number, \fBg2int\fP *list)" .br .RI "This subroutine generates the remaining octet map for a given Data Representation Template, if required\&. " .ti -1c .RI "\fBg2int\fP \fBgetdrsindex\fP (\fBg2int\fP number)" .br .RI "This function returns the index of specified Data Representation Template 5\&.NN (NN=number) in array templates\&. " .ti -1c .RI "\fBgtemplate\fP * \fBgetdrstemplate\fP (\fBg2int\fP number)" .br .RI "This subroutine returns DRS template information for a specified Data Representation Template 5\&.NN\&. " .in -1c .SH "Detailed Description" .PP .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2001-06-28 .RE .PP .PP Definition in file \fBdrstemplates\&.c\fP\&. .SH "Function Documentation" .PP .SS "\fBgtemplate\fP* extdrstemplate (\fBg2int\fP number, \fBg2int\fP * list)" .PP 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\&. .PP PROGRAM HISTORY LOG: .IP "\(bu" 2 2000-05-11 Gilbert .IP "\(bu" 2 2009-01-14 Vuong Changed structure name template to gtemplate .PP .PP \fBParameters\fP .RS 4 \fInumber\fP NN, indicating the number of the Data Representation Template 5\&.NN that is being requested\&. .br \fIlist\fP The list of values for each entry in the the Data Representation Template 5\&.NN\&. .RE .PP \fBReturns\fP .RS 4 Pointer to the returned template struct\&. Returns NULL pointer, if template not found\&. .RE .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2000-05-11 .RE .PP .PP Definition at line 104 of file drstemplates\&.c\&. .PP References getdrsindex(), and getdrstemplate()\&. .PP Referenced by g2_unpack5()\&. .SS "\fBg2int\fP getdrsindex (\fBg2int\fP number)" .PP This function returns the index of specified Data Representation Template 5\&.NN (NN=number) in array templates\&. PROGRAM HISTORY LOG: .IP "\(bu" 2 2001-06-28 Gilbert .IP "\(bu" 2 2009-01-14 Vuong Changed structure name template to gtemplate .PP .PP \fBParameters\fP .RS 4 \fInumber\fP NN, indicating the number of the Data Representation Template 5\&.NN that is being requested\&. .RE .PP \fBReturns\fP .RS 4 Index of DRT 5\&.NN in array gtemplates, if gtemplate exists\&. -1, otherwise\&. .RE .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2001-06-28 .RE .PP .PP Definition at line 24 of file drstemplates\&.c\&. .PP References MAXDRSTEMP, and templatesdrs\&. .PP Referenced by extdrstemplate(), and getdrstemplate()\&. .SS "\fBgtemplate\fP* getdrstemplate (\fBg2int\fP number)" .PP 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\&. .PP PROGRAM HISTORY LOG: .IP "\(bu" 2 2000-05-11 Gilbert .IP "\(bu" 2 2009-01-14 Vuong Changed structure name template to gtemplate .PP .PP \fBParameters\fP .RS 4 \fInumber\fP NN, indicating the number of the Data Representation Template 5\&.NN that is being requested\&. .RE .PP \fBReturns\fP .RS 4 Pointer to the returned template struct\&. Returns NULL pointer, if template not found\&. .RE .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2000-05-11 .RE .PP .PP Definition at line 57 of file drstemplates\&.c\&. .PP References getdrsindex(), drstemplate::mapdrslen, drstemplate::needext, drstemplate::template_num, and templatesdrs\&. .PP Referenced by extdrstemplate(), g2_addfield(), and g2_unpack5()\&. .SH "Author" .PP Generated automatically by Doxygen for NCEPLIBS-g2c from the source code\&.