.TH "gridtemplates.h" 3 "Tue May 3 2022" "Version 1.6.4" "NCEPLIBS-g2c" \" -*- nroff -*- .ad l .nh .SH NAME gridtemplates.h .SH SYNOPSIS .br .PP \fC#include 'grib2\&.h'\fP .br .SS "Data Structures" .in +1c .ti -1c .RI "struct \fBgridtemplate\fP" .br .RI "Struct for grid template\&. " .in -1c .SS "Macros" .in +1c .ti -1c .RI "#define \fBMAXGRIDMAPLEN\fP 200" .br .RI "maximum template map length " .ti -1c .RI "#define \fBMAXGRIDTEMP\fP 31" .br .RI "maximum number of templates " .in -1c .SS "Variables" .in +1c .ti -1c .RI "const struct \fBgridtemplate\fP \fBtemplatesgrid\fP [\fBMAXGRIDTEMP\fP]" .br .RI "Templates grid\&. " .in -1c .SH "Detailed Description" .PP .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2001-10-26 .RE .PP This Fortran Module contains info on all the available GRIB2 Grid Definition Templates used in Section 3 (GDS)\&. The information decribing each template is stored in the gridtemplate structure defined below\&. .PP Each Template has three parts: The number of entries in the template (mapgridlen); A map of the template (mapgrid), 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 3\&.120 as an example ) .PP NOTE: Array mapgrid contains the number of octets in which the corresponding template values will be stored\&. A negative value in mapgrid is used to indicate that the corresponding template entry can contain negative values\&. This information is used later when packing (or unpacking) the template data values\&. Negative data values in GRIB are stored with the left most bit set to one, and a negative number of octets value in mapgrid[] indicates that this possibility should be considered\&. The number of octets used to store the data value in this case would be the absolute value of the negative value in mapgrid[]\&. .PP PROGRAM HISTORY LOG: .PP -2001-10-26 Gilbert -2007-08-16 Vuong - Added GDT 3\&.204 Curvilinear Orthogonal Grid -2008-07-08 Vuong - Added GDT 3\&.32768 Rot Lat/Lon E-grid (Arakawa) -2010-05-11 Vuong - Added GDT 3\&.32769 Rotate Lat/Lon Non-E Staggered grid (Arakawa) -2013-08-06 Vuong - Added GDT 3\&.4,3\&.5,3\&.12,3\&.101,3\&.140 .PP Definition in file \fBgridtemplates\&.h\fP\&. .SH "Data Type Documentation" .PP .SH "struct gridtemplate" .PP Struct for grid template\&. .PP Definition at line 47 of file gridtemplates\&.h\&. .PP \fBData Fields:\fP .RS 4 \fBg2int\fP \fImapgrid[\fBMAXGRIDMAPLEN\fP]\fP .br .PP \fBg2int\fP \fImapgridlen\fP .br .PP \fBg2int\fP \fIneedext\fP .br .PP \fBg2int\fP \fItemplate_num\fP .br .PP .RE .PP .SH "Macro Definition Documentation" .PP .SS "#define MAXGRIDMAPLEN 200" .PP maximum template map length .PP Definition at line 42 of file gridtemplates\&.h\&. .SS "#define MAXGRIDTEMP 31" .PP maximum number of templates .PP Definition at line 41 of file gridtemplates\&.h\&. .SH "Variable Documentation" .PP .SS "const struct \fBgridtemplate\fP templatesgrid[\fBMAXGRIDTEMP\fP]" .PP Templates grid\&. .PP Definition at line 1 of file gridtemplates\&.h\&. .PP Referenced by getgridindex(), and getgridtemplate()\&. .SH "Author" .PP Generated automatically by Doxygen for NCEPLIBS-g2c from the source code\&.