[Numpy-discussion] Sorting large numbers of co-ordinate pairs

Dinesh B Vadhia dineshbvadhia@hotmail....
Fri Mar 13 05:15:38 CDT 2009


I have a large number (> 1bn) of (32-bit) integer co-ordinates (i, j) in a file.  The i are ordered and the j unordered eg.
...
6940, 22886
6940, 38277
6940, 43788
7007, 0
7007, 2362
7007, 34
etc.
...

I want to create (j, i) with j ordered and i unordered and store in a file ie.
...
38277, 567
38277, 90023
38277, 6940
43788, 5672
43788, 98
etc
...

My computers have sufficient memory (2gb on one and 8gb on another).

Any ideas how I could do this using numpy?

Dinesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20090313/0bb37974/attachment.html 


More information about the Numpy-discussion mailing list