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

Home » Public Forums » archive » Re: Keyword DIMENSION not allowed in call to: MOMENT
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: Keyword DIMENSION not allowed in call to: MOMENT [message #73691 is a reply to message #73690] Sun, 21 November 2010 14:19 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
I am old-fashioned enough to still often use the the -t parameter
to .run (compile with a listing)

IDL> .run -t moment

which lets me see that yes, the version of moment.pro that my IDL
session is using does allow the dimension keyword

118 FUNCTION Moment, X, DIMENSION=dimensionIn, $
119 Double = Double, MEAN=mean, Mdev = Mdev, Sdev = Sdev, $
120 SKEWNESS=skew, KURTOSIS=kurt, VARIANCE=var, $
121 Maxmoment = MaxmomentIn, NaN = nan

IDL> print,file_which('moment.pro')
/Applications/itt/idl/idl80/lib/moment.pro
IDL> print,!version
{ x86_64 darwin unix Mac OS X 8.0.1 Oct 5 2010 64 64}


-Wayne

On Nov 21, 4:49 pm, Mort Canty <m.ca...@fz-juelich.de> wrote:
> Am 21.11.2010 22:18, schrieb Paulo Penteado:
>
>
>
>
>
>> On Nov 21, 6:53 pm, Mort Canty<m.ca...@fz-juelich.de>  wrote:
>>> Just installed IDL 8.0.1 and got the above error message. The IDL help
>>> says:
>
>>> Syntax
>>> Result = MOMENT( X  [, DIMENSION=value] [, /DOUBLE] [,
>>> KURTOSIS=variable] [, MAXMOMENT={1|2|3|4}] [, MDEV=variable] [,
>>> MEAN=variable] [, /NAN] [, SDEV=variable] [, SKEWNESS=variable] [,
>>> VARIANCE=variable] )
>
>> moment() is a function provided as a source file. So if you have in
>> your path another moment, before IDL_DEFAULT, it will be found before
>> the builtin moment().
>
>> In my installation, it is in the file
>
>> IDL>  print,file_which('moment.pro')
>> /usr/local/itt/idl/idl80/lib/moment.pro
>
> Thanks Paulo,
>
> On my machine:
>
> ENVI> print,file_which('moment.pro')
> C:\Programme\ITT\IDL\IDL80\lib\moment.pro
>
> ENVI> print,file_which('moment.pro',/include_current_dir)
> C:\Programme\ITT\IDL\IDL80\lib\moment.pro
>
> Do you not get the error?
>
> Mort
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: math
Next Topic: Ending a code listing section with IDLdoc

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

Current Time: Sat Oct 11 03:41:10 PDT 2025

Total time taken to generate the page: 1.12336 seconds