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

# EOS_GD_REGIONINFO

This function returns information about a subsetted region for a particular field. Because of differences in number type and geolocation mapping, a given region will give different values for the dimensions and size for various fields. The upleftpt and lowrightpt arrays can be used when creating a new grid from the subsetted region.

Note: Array ordering of variables used or returned by this routine changed in IDL 5.5. Programs written for versions of this routine prior to IDL 5.5 may need to be modified to work correctly with the current version.

## Examples

In this example, we retrieve information about the region defined in EOS_GD_DEFBOXREGION for the “Temperature” field:

status = EOS_GD_REGIONINFO(EOS_GD_id, regionID, $

"Temperature", ntype,$ rank, dims, size, upleft,$ lowright)

## Syntax

Result = EOS_GD_REGIONINFO(gridID, regionID, fieldname, ntype, rank, dims, size, upleftpt, lowrightpt)

## Return Value

Returns SUCCEED (0) if successful and FAIL (–1) otherwise.

## Arguments

### gridID

Grid id (long) returned by EOS_GD_CREATE or EOS_GD_ATTACH.

### regionID

Region or period id (long) returned by EOS_GD_DEFBOXREGION.

### fieldname

Field to subset (string).

### ntype

A named variable that will contain the HDF data type of field (long).

### rank

A named variable that will contain the rank of field (long).

### dims

A named variable that will contain the dimensions of subset region (long).

### size

A named variable that will contain the size in bytes of subset region (long).

### upleftpt

A named variable that will contain the upper left point of subset region (double array).

### lowrightpt

A named variable that will contain the lower right point of subset region (double array).

## Keywords

None

## Version History

5.2 | Introduced