>
> I have a variable of dimensions (time, longitude, latitude) which I would like
> to re-order to (time, latitude, longitude). I know how to do that with a
> 2-dimensional variable but not with a 3-dimensional one. Can someone help?
>
Use NCL's dimension reordering syntax:
if
x(time, longitude, latitude)
then
xNew = x(time|:,latitude|:,longitude|:)
printVarSummary(xNew)
Other tidbits:
xNew = x(time|:,latitude|::-1,longitude|:) ; reorder data
printVarSummary(xNew)
xNew = x(time|0:2,latitude|8:12:,longitude|::5)
printVarSummary(xNew)
Note that the coordinate data is automatically handled.
D
D
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jan 30 2006 - 09:00:30 MST
This archive was generated by hypermail 2.2.0 : Mon Jan 30 2006 - 09:37:09 MST