Reorder data

From: Gina Henderson <ginah_at_nyahnyahspammersnyahnyah>
Date: Wed, 30 Sep 2009 15:08:08 -0400

Hi there,

I was wondering if there is a quicker way to do reorder arrays as I have
been doing it in do loops which are not very efficient. I have been reading
in 480 monthly history tapes as follows:

  inputpath_a = "datapath"
  allfiles_a = systemfunc("ls "+inputpath_a+"filenames*")
  a = addfiles(allfiles_a,"r")
  PSL= addfiles_GetVar(a,allfiles_a,"PSL")

This gives me a PSL array of shape (480, 64, 128), where the 480 is 40 years
* 12 months. Is there a function in ncl that can reorder this data to (year,
month, lat, lon)?

Thanks, Gina.

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Sep 30 2009 - 13:08:08 MDT

This archive was generated by hypermail 2.2.0 : Thu Oct 01 2009 - 13:55:31 MDT