| Appending new data to HDF [message #15578] |
Tue, 01 June 1999 00:00 |
Mark Rehbein
Messages: 8 Registered: January 1999
|
Junior Member |
|
|
Hi,
I have a problem writing an image to an already established HDF file.
The original HDF file was created on a UNIX machine (not using IDL). I
copied this HDF file to my windows PC and wanted to add an image to the
HDF using the following code segment:
sd_id=HDF_SD_START('e:\temp\images\n14_9802011648ss.hdf', /rdwr)
sds_id=HDF_SD_CREATE(sd_id, 'a_atmosphericCorrected_SST', [dims(1),
dims(2)], /float)
HDF_SD_ADDDATA, sds_id, SST_NOAA_GLOBAL
HDF_SD_ENDACCESS, sds_id
HDF_SD_END, sd_id
When I run my program, I get a "Unable to write specified HDF-SD slice"
error, which sugests a read/write permission problem or a disk space
problem. I have plenty of disk space and can read data from the file
using IDL. I just can't append to it.
I can write/append this data successfully to a different HDF file
created using IDL on my PC. Can anyone help me with this problem?
Thanks
Mark
mrehbein@aims.gov.au
|
|
|
|