This function writes the subsample of the raster image data stored in the variable data to the specified raster image. The subsample is defined by the values of the parameters start, stride and edge. The array start specifies the starting location of the subsample to be written. Valid values of each element in the array start are 0 to the size of the corresponding raster image dimension - 1.
| Note |
Result = HDF_GR_WRITEIMAGE( ri_id, data [, EDGE=array] [, INTERLACE={0 | 1 | 2}] [, START=array] [, STRIDE=array] )
Returns SUCCEED (0) if successful or FAIL (-1) otherwise.
Raster image identifier returned by HDF_GR_CREATE or HDF_GR_SELECT.
The image data to be written.
Array containing the number of data elements that will be written along each dimension. If not specified, all data will be written.
Set this keyword to a scalar value to select the interlace mode of the input data. Valid values are:
HDF_GR_WRITEIMAGE will write the data in the correct interlace mode the raster image is in.
Array containing the two-dimensional coordinate of the initial location for the write. If not specified, the write starts at the first pixel in each dimension (start=[0,0]).
Array containing the number of data locations the current location is to be moved forward before each write. If not specified, data is written contiguously (stride = [1,1]).
| Note |
Introduced: 5.2