Re: Combining monthly data

From: Dave Allured <dave.allured_at_nyahnyahspammersnyahnyah>
Date: Tue, 19 Feb 2008 12:52:11 -0700

Yes. Just use range subscripting to copy each 2D matrix into the
desired position in the 3D matrix.

http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclVariables.shtml#Subscripts

For example:

   output(2,:,:) = february_input(:,:)

Make sure that the subscripts in common are in the same order from
input to output. If that is not the case, then use named
subscripting, which you will find lower on the same manual page.

Dave Allured
CU/CIRES Climate Diagnostics Center (CDC)
http://cires.colorado.edu/science/centers/cdc/
NOAA/ESRL/PSD, Climate Analysis Branch (CAB)
http://www.cdc.noaa.gov/

Roberta Perkins wrote:
> I have 12 monthly data, each with a 2D matrix with dimension lat,lon. I
> need to
> be able to combine all 12 months of data into a cube or 3D matrix with
> lat,lon,time. Is there a way to easily do this with NCL?
>
> Roberta Perkins
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Feb 19 2008 - 12:52:11 MST

This archive was generated by hypermail 2.2.0 : Wed Feb 20 2008 - 13:04:58 MST