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

Home » Public Forums » archive » Re: Syntax Error Confusion
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: Syntax Error Confusion [message #55487] Fri, 24 August 2007 11:16 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ryan. writes:

> Here is my snippet of code: (The only thing before this is some
> declaration of variables)
>
> IF getdata THEN $
> snrarray = getsnrarray(wnrange, occlist, DATESARR=time, $
> /JULIAN, $
> OCCS2RM=occs2rm, WAVENUMS=wavenums) && $
>
> occ1snr = REFORM(snrarray[0,*]) && $
> occ2snr = REFORM(snrarray[1,*])

Your problem is this is NOT the way to write a BEGIN-END
block of code. In fact, you are forgetting the BEGIN and the END :-)

Are you SURE you want to be doing this in a batch file!?
Maybe there is an easier way. May I suggest a main-level
program. Then you don't have to jump through all these
&& $ hoops to get something done.

Cheers,

David

P.S. A main-level program is just like a batch file, except
it has an END at the end of it, and you compile it before you
run it. But all the variables are available to you at the main
IDL level, where it runs.

IDL> .run myprogram

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: How to get an arbitrary sectional slice in 3D array ?
Next Topic: How to avoid the FOR loop when using TM_TEST?

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

Current Time: Thu Oct 09 16:04:53 PDT 2025

Total time taken to generate the page: 1.12172 seconds