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

Home » Public Forums » archive » Re: change in syntax for version 6?
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: change in syntax for version 6? [message #40151] Sun, 18 July 2004 10:03 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Aramis Martinez wrote:

> David Fanning <davidf@dfanning.com> wrote in message
> news:<MPG.1b623a2f1633774d9897dd@news.frii.com>...
>> Aramis Martinez writes:
>>
>>> I have some code I haven't touched since last summer. In the meantime
>>> the IDL installation I have access to has been upgraded to version
>>> 6.0.3 (linux x86 32). on Red Hat I think. In my code there are eleven
>>> system calls of the following type:
>>>
>>> position=aspect_mp(aspect,loc(0),loc(1),$
>>> potloc(0),potloc(1),margin=margin)
>>>
>>> , with margin=0.12 given at the start of the program. The argument
>>> "margin=margin" now causes a syntax error for each of the eleven calls
>>> during compilation. The code worked just fine beforehand, and the only
>>> thing that has changed (as far as I know) is IDL version. I've googled
>>> the things I can think of, syntax changes, changes to position, etc
>>> but don't want to waste more time here. Does anyone have an idea?
>>
>> I notice you have hidden the hole card from us and won't tell
>> us the error message, so I'm only going to bet $5. But my
>> guess is your program ASPECT_MP, which isn't an RSI-supplied
>> command, is not on your path.
>>
>> Where to I cash in my chips? :-)
>>
>> Cheers,
>>
>> David
>
> Well, the command
>
> .COMPILE '/data/aramisgm/research/summer2003/rcm28u.pro'
>
> results in the error
>
> potloc(0),potloc(1),margin=margin)
> ^
> % Syntax error.
> At: /data/aramisgm/research/summer2003/rcm28u.pro, Line 313
>
> potloc(0),potloc(1),margin=margin)
> ^
> % Syntax error.
> At: /data/aramisgm/research/summer2003/rcm28u.pro, Line 328
>
> birkloc(0),birkloc(1),margin=margin)
> ^
> % Syntax error.
> At: /data/aramisgm/research/summer2003/rcm28u.pro, Line 357
>
> vmloc(0),vmloc(1),margin=margin)
>
> .
> .
> .
>
> (eleven syntax errors, once per call), which is certainly enough info
> to find the problem*. Thanks for pointing the way.
>
> Aramis
>
> *problem: user forgetting basics while desparately trying not to fail
> out of grad school =)

Dear Aramis

It would be better work if you use [] for arrays.


Cheers
Reimar


--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Where does ENVI store its color lookup tables?
Next Topic: Problems ... again ...

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

Current Time: Sat Oct 11 09:18:47 PDT 2025

Total time taken to generate the page: 0.16176 seconds