Please read the documentation for "new"
http://www.ncl.ucar.edu/Document/Functions/Built-in/new.shtml
Further, please read the mini-Language manual at
http://www.ncl.ucar.edu/Document/Manuals/
As noted in the documentation, the 6 and the 3 are the
missing value (_FillValue). So you are adding two arrays
with all _FillValue.
aa=new((/5,5/),"integer")
bb=new((/5,5/),"integer")
aa = 6
bb = 3
cc=aa+bb
print(cc)
On 12/13/11 7:41 AM, Jie Tang wrote:
> hi,ncl user group.
> I have such a script shown as below
> begin
> aa=new((/5,5/),"integer",6)
> bb=new((/5,5/),"integer",3)
> cc=aa+bb
> print(cc)
> end
>
> in my mind ,every element of cc should be 9.but print(cc)shows that cc
> is 6 ,can
> anyone tell why ?or how to add these two array together?
>
> thank you .
> --
> TANG Jie
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Dec 13 08:58:25 2011
This archive was generated by hypermail 2.1.8 : Fri Dec 16 2011 - 10:27:49 MST