Re: HDF_DFSD_ADDDATA: Invalid HDF file or filename (test.hdf). [message #34327] |
Thu, 06 March 2003 07:51 |
Liam E. Gumley
Messages: 378 Registered: January 2000
|
Senior Member |
|
|
"Pete Riley" <deja@peteriley.org> wrote in message
news:670f2ad1.0303051105.533afd9e@posting.google.com...
> I wanted to create an old-style HDF4 datafile (with the single dataset
> per file format). With the new HDF files, it appears to be impossible
> to force the dimensions (scales) to be in the right position (even
> though most new software has no problem reading it). So although the
> old-style routines are obsolete, they are still available, and
> necessary for an old graphics package I have to use. However, I cannot
> get even a simple file to be written. Here's the error I get for a
> simple test case:
>
> IDL|uk2-> HDF_DFSD_ADDDATA,'test.hdf',dist(200)
> % Compiled module: DIST.
> % Loaded DLM: HDF.
> % HDF_DFSD_ADDDATA: Invalid HDF file or filename (test.hdf).
> % Execution halted at: $MAIN$
> IDL|uk2->
Pete,
All my experience with HDF has taught me to avoid the old-style DFSD
interface like the plague. Does your graphics package read the new-style
HDF4 scientific datasets? If so, I'd try everything to make a file in that
format. Can you elaborate on the problem with dimensions in the new format?
Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
|
|
|