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

Home » Public Forums » archive » Re: baffling syntax error
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: baffling syntax error [message #70584 is a reply to message #70583] Thu, 22 April 2010 14:14 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Apr 22, 6:04 pm, Gray <grayliketheco...@gmail.com> wrote:
> On Apr 22, 5:03 pm, Gray <grayliketheco...@gmail.com> wrote:
>
>
>
>
>
>> Hi all,
>
>> I have a function declaration with both positional and keyword
>> parameters like this:
>
>> FUNCTION WR_subtract, imga, imgb, WARP_DEG=wdeg, SKY_STYLE=skyst, $
>>   SCALE_STYLE=scast
>
>> ...and in another procedure I call the function like this:
>
>> interp_res =
>> wr_subtract(intrp,civ,warp_deg=3.,sky_style=1,scale_style=1)
>
>> However, that function call gives me a syntax error when I try to
>> compile:
>
>>     interp_res =
>> wr_subtract(intrp,civ,warp_deg=3.,sky_style=1,scale_style=1)
>>                                                                      ^
>> % Syntax error.
>
>> Why the error??
>
>> Thanks!
>> --Gray
>
> Hm... because of text wrapping, that didn't quite work.  The error is
> apparently at "warp_deg=3.".

Sounds like IDL is interpreting wr_subtract(...) as an array, not a
function. Do you use compile_opt idl2?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: I calculated longwave radiation using readcol function from IDL-astro: Output file looks crazy. (T.T)
Next Topic: paypal wholesale men's shoes (paypal payment) sneakers

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

Current Time: Wed Oct 08 14:21:23 PDT 2025

Total time taken to generate the page: 0.00184 seconds