Re: merging a multi-dimensional array

From: Noel Aloysius <noel.aloysius_at_nyahnyahspammersnyahnyah>
Date: Wed Jun 27 2012 - 15:44:34 MDT

Thank Will. Your suggestion solved the issue - Noel

On Wed, Jun 27, 2012 at 5:33 PM, Hobbs, Will R (3244-Affiliate) <
William.R.Hobbs@jpl.nasa.gov> wrote:

> Noel
>
> You can indeed use array_append_record to do this. but you will have to
> reorder the arrays X1 and X2 so that the dimension that you area
> concatenating (which I assume is time) are the leftmost (i.e. first)
> dimensions (and of course, all other dimension sizes must match.
>
> > X_all = array_append_record(X1(time1|:,rcp|:,ensemble|:,lat|:,lon|:), X2(time2|:,rcp|:,ensemble|:,lat|:,lon|:),
> 0)
>
>
> Hope that helps
>
> Will
>
> **********************************************************
> Will Hobbs, Ph.D. *William.R.Hobbs@jpl.nasa.gov
> *Jet Propulsion Laboratory
> 4800 Oak Grove Dr. office: 300-324a
> M/S 300-323 phone: (818) 354-0466
> Pasadena, CA 91109 fax: (818) 354-0966
> **********************************************************
>
> From: Noel Aloysius <noel.aloysius@gmail.com>
> Date: Wed, 27 Jun 2012 17:26:14 -0400
> To: NCL Talk <ncl-talk@ucar.edu>
> Subject: merging a multi-dimensional array
>
> Hi NCL,
>
> I have two arrays X1(rcp, ensemble, time1, lat, lon) and X2(rcp, ensemble,
> time2, lat, lon).
>
> I want to append X2 to X1. I don't think I can use array_append_record.
> Is there a way to do this?
>
> Thanks,
> Noel
>
>
> _______________________________________________ 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 Wed Jun 27 15:44:41 2012

This archive was generated by hypermail 2.1.8 : Fri Jun 29 2012 - 15:46:14 MDT