I have 2 arrays sized as follows: x = (/50,91/) and y =
(/50,91,nlats,nlons/). I want to pull out the 30 "maps" from array y that
correspond to the 30 smallest values in array x (repeats possible) so that I
end up with an array sized as z = (/30,nlats,nlons/).
I can't figure out how to translate the indexing from the small array to the
large array after sorting. Or maybe that's not the right way to go about it?
Any help would be appreciated...
-Bridget
-- Bridget Thrasher, PhD Postdoctoral Researcher Climate Central www.climatecentral.org
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Feb 16 15:04:12 2010
This archive was generated by hypermail 2.1.8 : Thu Feb 18 2010 - 10:33:29 MST