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

Home » Public Forums » archive » Syntax mistake?
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
Syntax mistake? [message #43972] Mon, 09 May 2005 05:14
Ben Panter is currently offline  Ben Panter
Messages: 102
Registered: July 2003
Senior Member
Dear All,

I'm well aware the answer to this query will become apparent as
soon as I touch "send", but I've spent too long this morning trying to
work out what's going on with zero sucess...

I pick out positive values from an array called age_val, and try to
find where they sit with respect to precalculated grid points. The grid
points are at postions "age_val", a monotonic series. I call interpol,
and get the resonse, "% Arrays are allowed 1 - 8 dimensions.", yet I'm
sure that this has worked fine in the past...

In fact, the plot thickens. When I look, interpol hasn't even
compiled, so it's probably something wrong with the syntax, but what?

Any suggestions?

thanks,

Ben

IDL> help
% At $MAIN$
AGE_VAL DOUBLE = Array[25]
A_TRACE DOUBLE = Array[100, 4]
LOC LONG = Array[141]
SCALED_AGE FLOAT = Array[100, 4]
Compiled Procedures:
$MAIN$

Compiled Functions:


IDL>
scaled_age[loc]=interpol(findgen(age_val),alog10(age_val),al og10(a_trace[loc]))
% Arrays are allowed 1 - 8 dimensions.
% Execution halted at: $MAIN$

;so I tried something else, worried that it might be a problem with the
;[] of an array rather than a vector

IDL> ages=alog10(a_trace[loc])
IDL> scaled_age[loc]=interpol(findgen(age_val),alog10(age_val),ag es)
% Arrays are allowed 1 - 8 dimensions.
% Execution halted at: $MAIN$


IDL> help
% At $MAIN$
AGES DOUBLE = Array[141]
AGE_VAL DOUBLE = Array[25]
A_TRACE DOUBLE = Array[100, 4]
LOC LONG = Array[141]
SCALED_AGE FLOAT = Array[100, 4]
Compiled Procedures:
$MAIN$

Compiled Functions:

IDL> help, /source
Compiled Procedures:
$MAIN$

Compiled Functions:
PATH_SEP
/afs/ipp/common/soft/idl.6.1/idl_6.1/lib/path_sep.pro
STRSPLIT
/afs/ipp/common/soft/idl.6.1/idl_6.1/lib/strsplit.pro
UNIQ /afs/ipp/common/soft/idl.6.1/idl_6.1/lib/uniq.pro

IDL> result=interpol(findgen(age_val),alog10(age_val),ages)
% Arrays are allowed 1 - 8 dimensions.
% Execution halted at: $MAIN$


--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Ben Panter, Garching, Germany
email via www.benpanter.co.uk
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: ZOOMING,status bar,.SAV File
Next Topic: Re: Syntax mistake?

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

Current Time: Fri Oct 10 10:30:17 PDT 2025

Total time taken to generate the page: 0.87651 seconds