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 |
Result = EOS_GD_REGIONINFO(gridID, regionID, fieldname, ntype, rank, dims, size, upleftpt, lowrightpt)
Returns SUCCEED (0) if successful and FAIL (-1) otherwise.
Grid id (long) returned by EOS_GD_CREATE or EOS_GD_ATTACH.
Region or period id (long) returned by EOS_GD_DEFBOXREGION.
Field to subset (string).
A named variable that will contain the HDF data type of field (long).
A named variable that will contain the rank of field (long).
A named variable that will contain the dimensions of subset region (long).
A named variable that will contain the size in bytes of subset region (long).
A named variable that will contain the upper left point of subset region (double array).
A named variable that will contain the lower right point of subset region (double array).
None.
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)
Introduced: 5.2