Routines (alphabetical) > Routines: H > HDF-EOS Routines > EOS_GD_QUERY

# EOS_GD_QUERY

The EOS_GD_QUERY function returns information about a specified grid.

## Syntax

Result = EOS_GD_QUERY( Filename, GridName, [Info])

## Return Value

This function returns an integer value of 1 if the file is an HDF file with EOS GRID extensions, and 0 otherwise.

## Arguments

### Filename

A string containing the name of the file to query.

### GridName

A string containing the name of the grid to query.

### Info

Returns an anonymous structure containing information about the specified grid. The returned structure contains the following fields:

Field | IDL Data Type | Description
ATTRIBUTES | String | Comma-delimited string containing the names of attributes
DIMENSION_NAMES | String | Comma-delimited string containing the names of dimensions
DIMENSION_SIZES | Long array | Sizes of dimensions
FIELD_NAMES | String | Comma-delimited string containing the names of fields
FIELD_RANKS | Long array | Ranks (dimensions) of fields
FIELD_TYPES | Long array | IDL types of fields
GCTP_PROJECTION | Long | GCTP projection code
GCTP_PROJECTION_PARM | Double array | GCTP projection parameters
GCTP_SPHEROID | Long | GCTP spheroid code
GCTP_ZONE | Long | GCTP zone code (for UTM projection)
IMAGE_LOWRIGHT | Double[2] | Location of lower right corner (meters)
IMAGE_UPLEFT | Double[2] | Location of upper left corner (meters)
IMAGE_X_DIM | Long | Number of columns in grid image
IMAGE_Y_DIM | Long | Number of rows in grid image
NUM_ATTRIBUTES | Long | Number of attributes
NUM_DIMS | Long | Number of dimensions
NUM_IDX_MAPS | Long | Number of indexed dimension mapping entries
NUM_MAPS | Long | Number of dimension mapping entries
NUM_FIELDS | Long | Number of fields
NUM_GEO_FIELDS | Long | Number of geolocation field entries
ORIGIN_CODE | Long | Origin code
PIX_REG_CODE | Long | Pixel registration code

## Version History

5.3 | Introduced