Funny thing - HDF_DFSD_GETINFO [message #8558] |
Thu, 03 April 1997 00:00  |
David.Adair
Messages: 1 Registered: April 1997
|
Junior Member |
|
|
Hello All,
We've run into a very odd thing happening and I want to pass it by you to see
if you can explain it. I have simplified the program to display only the error
we are getting.
Here is the code....
pro test
on_error,2
cd, current=current
file = pickfile(title='Select HDF file', filter = '*.hdf',
path=current)
print, file
help, file
HDF_DFSD_GETINFO, file, dims=dims
; HDF_DFSD_GETINFO, file <---THIS WORKS
end
The progam works fine the first time you run but subsequent runs cause an
error that reads.....
IDL> test
D:\users\n3amask.hdf
FILE STRING = 'D:\users\n3amask.hdf'
% HDF_DFSD_GETINFO: Could not read dimensions from file: FILE
% Error occurred at: TEST 13 D:\its\idl_pro\test.pro
% $MAIN$
% Execution halted at: $MAIN$
It seems to be trying to read from a file called "FILE" rather than from the
filename pointed to by the variable FILE.
Another thing is the if you take the DIMS keyword off, as is shown in the
commented line below it works fine.
We've recreated this on both an NT machine and our Sun.
I've attached an HDF file in case you don't have any lying around.
Any ideas as to what going on???
Thanks in advance.
DAVE
|
|
|