Re: [Numpy-discussion] Changing the numpy array into required shape

2014-08-23 Thread Nadav Horesh
Replace data = data.byteswap() By data = data.byteswap()[::-1] Nadav On 23 Aug 2014 09:15, Cleo Drakos wrote: Hello numpy users: I have 2d numpy array of 480 rows and 1440 columns as named by 'data' below: The first element belongs to (49.875S,179.875W), the second element belongs to (

Re: [Numpy-discussion] Changing the numpy array into required shape

2014-08-23 Thread John Ladasky
On 08/22/2014 11:14 PM, Cleo Drakos wrote: > > How can I convert this numpy array so that its first element belongs > to (49.875N,179.625W), i.e., upper left latitude and longitude > respectively; and the last element belong to (49.625S,179.875E), i.e., > lower right latitute and longitude respe

[Numpy-discussion] Changing the numpy array into required shape

2014-08-22 Thread Cleo Drakos
Hello numpy users: I have 2d numpy array of 480 rows and 1440 columns as named by 'data' below: The first element belongs to (49.875S,179.875W), the second element belongs to (49.625S,179.625W),and the last element belongs to (49.875N,179.875E). import os, glob, gdal, numpy as np fname = '3B42RT