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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: change in syntax for version 6? [message #40151] Sun, 18 July 2004 10:03
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
Re: change in syntax for version 6? [message #40156 is a reply to message #40151] Sat, 17 July 2004 15:49 Go to previous message
aramisgm is currently offline  aramisgm
Messages: 4
Registered: December 2003
Junior Member
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 =)
Re: change in syntax for version 6? [message #40159 is a reply to message #40156] Fri, 16 July 2004 19:17 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
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 01:17:52 PDT 2025

Total time taken to generate the page: 0.96602 seconds