Re: Defining large arrays

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Wed Apr 13 2011 - 10:08:25 MDT

Hi Helen,
You can assign a single value to an entire array quite easily in NCL:
arr = new((/1000,100,200/),"float")
arr = 5.

The array arr will be entirely set to 5. Is this what you are looking
for? Adam

On 04/12/2011 09:57 PM, Helen Parish wrote:
> Does anyone how to define a brand new large array within NCL, without
> having to physically write out all the data values as, for example
> writing out '0.0' ten thousand times into an array definition ? (or
> without, for example, having a pre-existing array of the correct size
> to set the new array equal to).
>
> Thanks,
> Helen.
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
__________________________________________________
Adam Phillips 
asphilli@ucar.edu
National Center for Atmospheric Research   tel: (303) 497-1726
Climate and Global Dynamics Division         fax: (303) 497-1333
P.O. Box 3000				
Boulder, CO 80307-3000    http://www.cgd.ucar.edu/cas/asphilli
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Apr 14 02:08:32 2011

This archive was generated by hypermail 2.1.8 : Tue Apr 19 2011 - 18:32:03 MDT