[SciPy-user] Sort 3-D arrays by two columns
Bill Baxter
wbaxter at gmail.com
Wed Mar 14 03:09:22 EDT 2007
Does lexsort do what you need?
Also, have you seen the numpy examples list? It's a good place to
look for this sort of thing:
http://www.scipy.org/Numpy_Example_List
http://www.scipy.org/Numpy_Example_List_With_Doc
--bb
On 3/14/07, Thomas Nauss <nauss at lcrs.de> wrote:
> Dear Experts,
> I want plot some satellite datasets using matplotlib with basemap. For
> that task, I need a 3-D array (or three 1-D arrays) containing latitude,
> longitude, and corresponding data values. Since basemap needs latitude
> and longitude values in increasing order, I'm looking for a function to
> sort the 3-D array by the two lat/lon columns (i.e. first by latitude,
> then by longitude but conserving the value combinations).
> Thanks,
> Thomas
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>
More information about the SciPy-User
mailing list