[Top] [Prev] [Next] [Bottom]
DFSDsetfillvalue/dssfill
intn DFSDsetfillvalue(VOIDP 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( );
}
[Top] [Prev] [Next] [Bottom]
hdfhelp@ncsa.uiuc.edu
HDF User's Reference Manual, Draft 06/09/97, NCSA HDF
Development Group.