File unit problems [message #56564] |
Mon, 29 October 2007 01:08 |
Liberum
Messages: 48 Registered: September 2005
|
Member |
|
|
Hi!
I am having some trouble with the file unit in IDL. I have included
the part of code that the error occurrs.
FOR f = 0, 1 DO BEGIN
IF f EQ 0 THEN BEGIN
OPENR, 1, land_lut, /GET_LUN; IDL says that this line is
incorrect. See error message below.
TITLESTR="Unmodified Class probability LUT for Land (Perhaps
erroneous)"
OPENW, 2, "land_scat_clas_tuned.dat", /GET_LUN
FILESTR = "land_scat_clas_tuned.ps"
ENDIF ELSE BEGIN
TITLESTR = "Unmodified Class probability LUT for Ocean
(Perhaps erroneous)"
OPENR, 1, sea_lut, /GET_LUN
OPENW, 2, "sea_scat_clas_tuned.dat", /GET_LUN
FILESTR = "sea_scat_clas_tuned.ps"
ENDELSE
....
% OPENR: Expression must be named variable in this context: <INT
( 1)>.
I think this is something quite simple but I don't get it. Can someone
please point out the problem for me?
Any help is greatly appreciated.
/Sheldon
|
|
|