C: num_of_pals = DFPnpals(filename);
FORTRAN: num_of_pals = dpnpals(filename)The parameter of DFPnpals is further defined in the following table.
|
|
|
| |
|
| |||
filename
|
|
|
Name of the HDF file.
|
The following calling sequence uses DFPlastref to find the reference number of the palette most recently written to an HDF file:
C: status = DFPaddpal(filename, palette, width, height, compress);
lastref = DFPlastref( );
FORTRAN: status = dpapal(filename, palette, width, height, compress)
lastref = dplref( )DFPputpal or DFPgetpal can be used in place of DFPaddpal with similar results.