Scroll to navigation

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

NAME

gridtemplates.c - Returns grid template information for a specified Grid Definition Template 3.

SYNOPSIS

#include <stdlib.h>
#include 'grib2.h'
#include 'gridtemplates.h'

Functions


gtemplate * extgridtemplate (g2int number, g2int *list)
This subroutine generates the remaining octet map for a given Grid Definition Template, if required. g2int getgridindex (g2int number)
This function returns the index of specified Grid Definition Template 3.NN (NN=number) in array templates. gtemplate * getgridtemplate (g2int number)
This subroutine returns grid template information for a specified Grid Definition Template 3.NN.

Detailed Description

Returns grid template information for a specified Grid Definition Template 3.

Author

Stephen Gilbert

Date

2001-06-28

Definition in file gridtemplates.c.

Function Documentation

gtemplate* extgridtemplate (g2int number, g2int * list)

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.

PROGRAM HISTORY LOG:

  • 2000-05-09 Gilbert
  • 2008-07-08 Vuong Added GDT 3.32768 Rotate Lat/Lon E-grid (Arakawa)
  • 2009-01-14 Vuong Changed structure name template to gtemplate
  • 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

Parameters

number NN, indicating the number of the Grid Definition Template 3.NN that is being requested.
list The list of values for each entry in the Grid Definition Template.

Returns

Pointer to the returned template struct. Returns NULL pointer, if template not found.

Author

Stephen Gilbert

Date

2000-05-09

Definition at line 119 of file gridtemplates.c.

References getgridindex(), and getgridtemplate().

Referenced by g2_addgrid(), and g2_unpack3().

g2int getgridindex (g2int number)

This function returns the index of specified Grid Definition Template 3.NN (NN=number) in array templates. PROGRAM HISTORY LOG:

  • 2001-06-28 Gilbert
  • 2007-08-16 Vuong - Added GDT 3.204 Curvilinear Orthogonal Grid
  • 2008-07-08 Vuong - Added GDT 3.32768 Rotate Lat/Lon E-grid (Arakawa)
  • 2009-01-14 Vuong - Changed structure name template to gtemplate
  • 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

Parameters

number NN, indicating the number of the Grid Definition Template 3.NN that is being requested.

Returns

Index of GDT 3.NN in array templates, if template exists. -1, otherwise.

Author

Stephen Gilbert

Date

2001-06-28

Definition at line 31 of file gridtemplates.c.

References MAXGRIDTEMP, and templatesgrid.

Referenced by extgridtemplate(), and getgridtemplate().

gtemplate* getgridtemplate (g2int number)

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.

PROGRAM HISTORY LOG:

  • 2000-05-09 Gilbert
  • 2007-08-16 Vuong - Added GDT 3.204 Curvilinear Orthogonal Grid
  • 2008-07-08 Vuong - Added GDT 3.32768 Rotate Lat/Lon E-grid (Arakawa)
  • 2010-05-11 Vuong - Added GDT 3.32769 Rotate Lat/Lon Non-E Staggered grid (Arakawa)
  • 2009-01-14 Vuong - Changed structure name template to gtemplate

Parameters

number NN, indicating the number of the Grid Definition Template 3.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-09

Definition at line 68 of file gridtemplates.c.

References getgridindex(), and templatesgrid.

Referenced by extgridtemplate(), g2_addgrid(), and g2_unpack3().

Author

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

Tue May 3 2022 Version 1.6.4