.TH "gridtemplates.c" 3 "Tue May 3 2022" "Version 1.6.4" "NCEPLIBS-g2c" \" -*- nroff -*- .ad l .nh .SH NAME gridtemplates.c \- Returns grid template information for a specified Grid Definition Template 3\&. .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include 'grib2\&.h'\fP .br \fC#include 'gridtemplates\&.h'\fP .br .SS "Functions" .in +1c .ti -1c .RI "\fBgtemplate\fP * \fBextgridtemplate\fP (\fBg2int\fP number, \fBg2int\fP *list)" .br .RI "This subroutine generates the remaining octet map for a given Grid Definition Template, if required\&. " .ti -1c .RI "\fBg2int\fP \fBgetgridindex\fP (\fBg2int\fP number)" .br .RI "This function returns the index of specified Grid Definition Template 3\&.NN (NN=number) in array templates\&. " .ti -1c .RI "\fBgtemplate\fP * \fBgetgridtemplate\fP (\fBg2int\fP number)" .br .RI "This subroutine returns grid template information for a specified Grid Definition Template 3\&.NN\&. " .in -1c .SH "Detailed Description" .PP Returns grid template information for a specified Grid Definition Template 3\&. .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2001-06-28 .RE .PP .PP Definition in file \fBgridtemplates\&.c\fP\&. .SH "Function Documentation" .PP .SS "\fBgtemplate\fP* extgridtemplate (\fBg2int\fP number, \fBg2int\fP * list)" .PP This subroutine generates the remaining octet map for a given Grid Definition 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-09 Gilbert .IP "\(bu" 2 2008-07-08 Vuong Added GDT 3\&.32768 Rotate Lat/Lon E-grid (Arakawa) .IP "\(bu" 2 2009-01-14 Vuong Changed structure name template to gtemplate .IP "\(bu" 2 2010-05-11 Vuong Added GDT 3\&.32769 Rotate Lat/Lon Non-E Staggered grid (Arakawa) .IP "\(bu" 2 2013-08-06 Vuong Added GDT 3\&.4,3\&.5,3\&.12,3\&.101,3\&.140 .PP .PP \fBParameters\fP .RS 4 \fInumber\fP NN, indicating the number of the Grid Definition Template 3\&.NN that is being requested\&. .br \fIlist\fP The list of values for each entry in the Grid Definition Template\&. .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-09 .RE .PP .PP Definition at line 119 of file gridtemplates\&.c\&. .PP References getgridindex(), and getgridtemplate()\&. .PP Referenced by g2_addgrid(), and g2_unpack3()\&. .SS "\fBg2int\fP getgridindex (\fBg2int\fP number)" .PP This function returns the index of specified Grid Definition Template 3\&.NN (NN=number) in array templates\&. PROGRAM HISTORY LOG: .IP "\(bu" 2 2001-06-28 Gilbert .IP "\(bu" 2 2007-08-16 Vuong - Added GDT 3\&.204 Curvilinear Orthogonal Grid .IP "\(bu" 2 2008-07-08 Vuong - Added GDT 3\&.32768 Rotate Lat/Lon E-grid (Arakawa) .IP "\(bu" 2 2009-01-14 Vuong - Changed structure name template to gtemplate .IP "\(bu" 2 2010-05-11 Vuong - Added GDT 3\&.32769 Rotate Lat/Lon Non-E Staggered grid (Arakawa) .IP "\(bu" 2 2013-08-06 Vuong - Added GDT 3\&.4,3\&.5,3\&.12,3\&.101,3\&.140 .PP .PP \fBParameters\fP .RS 4 \fInumber\fP NN, indicating the number of the Grid Definition Template 3\&.NN that is being requested\&. .RE .PP \fBReturns\fP .RS 4 Index of GDT 3\&.NN in array templates, if template 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 31 of file gridtemplates\&.c\&. .PP References MAXGRIDTEMP, and templatesgrid\&. .PP Referenced by extgridtemplate(), and getgridtemplate()\&. .SS "\fBgtemplate\fP* getgridtemplate (\fBg2int\fP number)" .PP This subroutine returns grid template information for a specified Grid Definition Template 3\&.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-09 Gilbert .IP "\(bu" 2 2007-08-16 Vuong - Added GDT 3\&.204 Curvilinear Orthogonal Grid .IP "\(bu" 2 2008-07-08 Vuong - Added GDT 3\&.32768 Rotate Lat/Lon E-grid (Arakawa) .IP "\(bu" 2 2010-05-11 Vuong - Added GDT 3\&.32769 Rotate Lat/Lon Non-E Staggered grid (Arakawa) .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 Grid Definition Template 3\&.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-09 .RE .PP .PP Definition at line 68 of file gridtemplates\&.c\&. .PP References getgridindex(), and templatesgrid\&. .PP Referenced by extgridtemplate(), g2_addgrid(), and g2_unpack3()\&. .SH "Author" .PP Generated automatically by Doxygen for NCEPLIBS-g2c from the source code\&.