fill_value
|
IN:
|
Fill value
|
int16 data[5] = {0, 1, 2, 3, 4}; int dims[1] = {5}; int32 start[1] = {1}; int 32 count[1] = {2}; int16 fillv = -9999; main( ) { int stat; /* Set the fill value only; don't write. */ stat = DFSDsetdims(1, dims); stat = DFSDsetNT(DFNT_INT16); stat = DFSDwriteslab("File.hdf"); stat = DFSDsetfillvalue((VOIDP)&fillv); stat = DFSDwriteslab(start, start, count, (VOIDP)data); stat = DFSDendslab( ); /* Set the fill value and write it. */ stat = DFSDsetdims(1, dims); stat = DFSDsetNT(DFNT_INT16); stat = DFSDsetfillvalue((VOIDP)&fillv); stat = DFSDstartslab("File.hdf"); stat = DFSDwriteslab(start, start, count, (VOIDP)data); stat = DFSDendslab( ); }
FORTRAN
|
integer function dssfill(fill_value)
|
|
character* (*) fill_value
|