[ncl-talk] stat_dispersion option
Dennis Shea
shea at ucar.edu
Wed Dec 30 17:18:44 MST 2015
Dave
As noted in the documentation:
Setting opt=True and opt at PrintStat=True means that the function will
print the calculated statistics.
Try (as in Example 1)
opt = True
opt at PrintStat = True
statb = stat_dispersion(b, opt )
On Wed, Dec 30, 2015 at 4:55 PM, David Ahijevych <ahijevyc at ucar.edu> wrote:
> NCL Version 6.3.0
>
>
> Perhaps this is expected behavior, but when I supply the option "True" to
> the stat_dispersion function, I get an error because the "PrintStat"
> attribute isn't defined.
>
>
> Simple script:
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
>
> a = random_normal(0,50,(/64,128/))
>
> STATX = stat_dispersion(a, True)
>
>
> Warnings and Error:
>
>
> warning:Attempt to reference attribute (PrintStat) which is
> undefinedfatal:The result of the conditional expression yields a missing
> value. NCL can not determine branch, see ismissing function
>
> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 12687 in
> file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
>
>
> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 4 in file
> t.ncl
>
>
> System:
>
>
> Darwin pecan.mmm.ucar.edu 13.4.0 Darwin Kernel Version 13.4.0: Wed Mar 18
> 16:20:14 PDT 2015; root:xnu-2422.115.14~1/RELEASE_X86_64 x86_64
>
>
>
> On Wed, Dec 30, 2015 at 3:58 PM, David Ahijevych <ahijevyc at ucar.edu> wrote:
>>
>> NCL Version 6.3.0
>>
>>
>> Perhaps this is expected behavior, but when I supply the option "True" to
>> the stat_dispersion function, I get an error because the "PrintStat"
>> attribute isn't defined. See attachment for simple script.
>>
>>
>> Warnings and Error:
>>
>>
>> warning:Attempt to reference attribute (PrintStat) which is
>> undefinedfatal:The result of the conditional expression yields a missing
>> value. NCL can not determine branch, see ismissing function
>>
>> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 12687 in
>> file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
>>
>>
>> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 4 in file
>> t.ncl
>>
>>
>> System:
>>
>>
>> Darwin pecan.mmm.ucar.edu 13.4.0 Darwin Kernel Version 13.4.0: Wed Mar 18
>> 16:20:14 PDT 2015; root:xnu-2422.115.14~1/RELEASE_X86_64 x86_64
>>
>>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
More information about the ncl-talk
mailing list