Hi all,
quick question (Python 3.8.8 via Anaconda, pygplates rev 28, py 3.8, win 64) :
lons = np.array([-2, 2, 2, -2,-2])
lats = np.array([ 2, 2 ,-2,-2, 2])
pygplates.PolygonOnSphere( zip(lats, lons) )
doesn’t work - complains about TypeError: Expected a sequence of points
, strangely as it is given here as example
lons = np.array([-2, 2, 2, -2,-2])
lats = np.array([ 2, 2 ,-2,-2, 2])
pygplates.PolygonOnSphere( list(zip(lats, lons)) )
doesn’t work - also complains about TypeError: Expected a sequence of points
, despite type(list(zip(lats,lons)))
being list
.
points = []
points.append((-2, 2))
points.append((2, 2))
points.append((2, -2))
points.append((-2, -2))
points.append((-2, 2))
pygplates.PolygonOnSphere( points )
works, type(points)
yields list
as above.
Am I missing something?
Cheers,
Christian