NCEPLIBS-g2c  1.6.4
getdim.c File Reference

Return the dimensions and scanning mode of a grid definition packed in GRIB2 Grid Definition Section 3 format. More...

#include <stdio.h>
#include <stdlib.h>
#include "grib2.h"

Go to the source code of this file.

Functions

g2int getdim (unsigned char *csec3, g2int *width, g2int *height, g2int *iscan)
 This subroutine returns the dimensions and scanning mode of a grid definition packed in GRIB2 Grid Definition Section 3 format. More...
 

Detailed Description

Return the dimensions and scanning mode of a grid definition packed in GRIB2 Grid Definition Section 3 format.

Author
Stephen Gilbert
Date
2002-12-11

Definition in file getdim.c.

Function Documentation

◆ getdim()

g2int getdim ( unsigned char *  csec3,
g2int width,
g2int height,
g2int iscan 
)

This subroutine returns the dimensions and scanning mode of a grid definition packed in GRIB2 Grid Definition Section 3 format.

Parameters
csec3Character array that contains the packed GRIB2 GDS.
widthx (or i) dimension of the grid. 0 if grid is not recognized.
heighty (or j) dimension of the grid. 0 if grid is not recognized.
iscanScanning mode (see Table 3.4). 0 of grid not recognized.
Returns
Always returns 0.
Author
Stephen Gilbert
Date
2002-12-11

Definition at line 29 of file getdim.c.

References g2_unpack3().

Referenced by g2_addfield().