C: num_of_pals = DFPnpals(filename); FORTRAN: num_of_pals = dpnpals(filename)
The parameter of DFPnpals is further defined in the following table.
TABLE 9F DFPnpals Parameter List
Routine Name (Fortran-77)
|
Parameter
|
Data Type
|
Description
| |
C
|
Fortran-77
| |||
DFPnpals (dpnpals)
|
filename
|
char *
|
character* (*)
|
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.