Re: conform function

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu, 9 Jul 2009 09:23:23 -0600 (MDT)

On Thu, 9 Jul 2009, louis Vonder wrote:

> Dear all,
>
> I have at 2D data (lat, lon) and a 3D data (time, lat, lon)
>
> I want to use the NCL function CONFORM to build a new array of 3D.
>
> Is it possible?
>
> Thanks

Yes. If x3d(time,lat,lon) and x2d(lat,lon) then:

    xnew = conform(x3d,x2d,(/1,2/)) ; xnew(time,lat,lon)

The thing to remember is that the last argument is a list of the
dimensions of "x3d" that are the same as the dimensions of "x2d".
Dimension numbering starts at 0, so the dimensions of x3d that match
x2d are 1 and 2.

--Mary

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jul 09 2009 - 09:23:23 MDT

This archive was generated by hypermail 2.2.0 : Mon Jul 13 2009 - 20:56:19 MDT