Re: Keyword DIMENSION not allowed in call to: MOMENT [message #73689] |
Sun, 21 November 2010 14:35 |
Mort Canty
Messages: 134 Registered: March 2003
|
Senior Member |
|
|
Am 21.11.2010 23:21, schrieb Mort Canty:
> 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
>>
>
> Sorry. It was a subroutine in my ENVI SAVE_ADD directory. It was never a
> problem in previous IDL versions. Ah well...
>
> Mort
In fact, it was in ASTERDTM.SAV, a compiled commercial ENVI add-on. Jeez.
Mort
|
|
|
Re: Keyword DIMENSION not allowed in call to: MOMENT [message #73690 is a reply to message #73689] |
Sun, 21 November 2010 14:21  |
Mort Canty
Messages: 134 Registered: March 2003
|
Senior Member |
|
|
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
>
Sorry. It was a subroutine in my ENVI SAVE_ADD directory. It was never a
problem in previous IDL versions. Ah well...
Mort
|
|
|
Re: Keyword DIMENSION not allowed in call to: MOMENT [message #73691 is a reply to message #73690] |
Sun, 21 November 2010 14:19  |
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
|
|
|
Re: Keyword DIMENSION not allowed in call to: MOMENT [message #73692 is a reply to message #73691] |
Sun, 21 November 2010 13:49  |
Mort Canty
Messages: 134 Registered: March 2003
|
Senior Member |
|
|
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
|
|
|
Re: Keyword DIMENSION not allowed in call to: MOMENT [message #73693 is a reply to message #73692] |
Sun, 21 November 2010 13:18  |
penteado
Messages: 866 Registered: February 2018
|
Senior Member Administrator |
|
|
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
|
|
|