Scroll to navigation

gridtemplates.h(3) NCEPLIBS-g2c gridtemplates.h(3)

NAME

gridtemplates.h

SYNOPSIS

#include 'grib2.h'

Data Structures


struct gridtemplate
Struct for grid template.

Macros


#define MAXGRIDMAPLEN 200
maximum template map length #define MAXGRIDTEMP 31
maximum number of templates

Variables


const struct gridtemplate templatesgrid [MAXGRIDTEMP]
Templates grid.

Detailed Description

Author

Stephen Gilbert

Date

2001-10-26

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.

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 )

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[].

PROGRAM HISTORY LOG:

-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

Definition in file gridtemplates.h.

Data Type Documentation

struct gridtemplate

Struct for grid template.

Definition at line 47 of file gridtemplates.h.

Data Fields:

g2int mapgrid[MAXGRIDMAPLEN]

g2int mapgridlen

g2int needext

g2int template_num

Macro Definition Documentation

#define MAXGRIDMAPLEN 200

maximum template map length

Definition at line 42 of file gridtemplates.h.

#define MAXGRIDTEMP 31

maximum number of templates

Definition at line 41 of file gridtemplates.h.

Variable Documentation

const struct gridtemplate templatesgrid[MAXGRIDTEMP]

Templates grid.

Definition at line 1 of file gridtemplates.h.

Referenced by getgridindex(), and getgridtemplate().

Author

Generated automatically by Doxygen for NCEPLIBS-g2c from the source code.

Tue May 3 2022 Version 1.6.4