This function reads a single tile of data from a field. If the data is to be read tile by tile, this routine is more efficient than EOS_GD_READFIELD. In all other cases, the later routine should be used. EOS_GD_READTILE does not work on non-tiled fields. Note that the coordinates are in terms of tiles, not data elements.
| Note |
Result = EOS_GD_READTILE(gridID, fieldname, tilecoords, buffer)
Returns SUCCEED(0) if successful and FAIL(-1) otherwise.
Grid id (long) returned by EOS_GD_CREATE or EOS_GD_ATTACH.
Fieldname (string).
Array (long) of tile coordinates.
A named variable that will contain the tile.
None.
In this example. we read one tile from the Temperature field (see EOS_GD_DEFTILE example) located at the second column of the first row of tiles:
tilecoords[0] = 0 tilecoords[1] = 1 status = EOS_GD_READTILE(gridid, "Temperature",$ tilecoords,buffer)
Introduced: 5.2