comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: File unit problems
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: File unit problems [message #56559] Mon, 29 October 2007 04:25 Go to previous message
ben.bighair is currently offline  ben.bighair
Messages: 221
Registered: April 2007
Senior Member
On Oct 29, 4:08 am, Sheldon <shejo...@gmail.com> wrote:
> 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)>.
>

Hi,

In addition to the solution Maarten points to, check out the language
of the error...

"Expression must be named variable in this context"

It is the "named variable" part that indicates you must provide a
variable to which the routine will assign a value.

This is the kind of language you'll see pop up in IDL's reference docs
all the time.

Cheers,
Ben
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Minimum Noise Fraction Doubts...
Next Topic: Re: problem creating a *.sav file from a project with envi routines

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:47:25 PDT 2025

Total time taken to generate the page: 0.00439 seconds