This function creates an HDF GR raster image. Once a raster image has been created, it is not possible to change its name, data type, dimension sizes or number of pixel components. However, it is possible to create a raster image and close the file before writing any data values to it. Later, the values can be added to or modified in the raster image, which then can be obtained using HDF_GR_SELECT.
| Note |
Result = HDF_GR_CREATE(gr_id, name, ncomp, data_type, interlace_mode, dim_sizes)
Returns a raster image identifier if successful or FAIL (-1) otherwise.
GR interface identifier returned by HDF_GR_START.
Name of the raster image. The length of the name should not be longer than 256 characters.
Number of pixel components in the image. This parameter must have a value of at least 1.
Type of the image data. This parameter can be any of the data types supported by the HDF library. See IDL and HDF Data Types.
Interlace mode of the image data. Valid values are:
Array of sizes for each dimension of the image. The dimensions must be specified and their values must be greater than 0.
None.
Introduced: 5.2