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 =
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
Replace
data = data.byteswap()
By
data = data.byteswap()[::-1]
Nadav
On 23 Aug 2014 09:15, Cleo Drakos cleo21dra...@gmail.com 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