Re: Merge two arrays

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Thu, 04 Jun 2009 11:54:58 -0600

http://www.ncl.ucar.edu/Document/Functions/Contributed/array_append_record.shtml

---
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl <http://www.ncl.ucar.edu/Document/Functions/Contributed/contrib.shtml>"
 foo = array_append_record ( stdcols, colors, 0)
 print(foo)
 gsn_define_colormap(wks, foo)
Oliver.Fuhrer_at_meteoswiss.ch wrote:
> Hi all!
>
> Is there any simple way to merge two arrays into one? Simple example...
>
> colors = (/"OrangeRed","Olivedrab1"/)
> stdcols = (/"white","black"/)
>
> ;... cmap = merge(stdcolors,colors)
>
> gsn_define_colormap(wks,cmap)
>
> Cheers,
> Oli
>  
> ________________________________________
>
> Oliver Fuhrer
> Numerical Models
>
> Federal Departement of Home Affairs FDHA
> Federal Office of Meteorology and Climatology MeteoSwiss
>
> Kraehbuehlstrasse 58, P.O. Box 514, CH-8044 Zurich, Switzerland
>
> Tel. +41 44 256 93 59
> Fax  +41 44 256 92 78
> oliver.fuhrer_at_meteoswiss.ch
> www.meteoswiss.ch - First-hand information
>   
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>   
-- 
======================================================
Dennis J. Shea                  tel: 303-497-1361    |
P.O. Box 3000                   fax: 303-497-1333    |
Climate Analysis Section                             |
Climate & Global Dynamics Div.                       |
National Center for Atmospheric Research             |
Boulder, CO  80307                                   |
USA                        email: shea 'at' ucar.edu |
======================================================
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jun 04 2009 - 11:54:58 MDT

This archive was generated by hypermail 2.2.0 : Mon Jun 08 2009 - 09:30:31 MDT