vertices2corners#
- vertices2corners(vertices)#
Converts trixel vertices datastructure (c.f.
to_vertices()) into trixel corners in lon/lat representation.- Parameters
- vertices: tuple
vertices data structure
- Returns
- corners: numpy.array
First dimension are the sids Second dimension the corers Third dimension longitude/latitude
Examples
>>> import starepandas >>> sids = numpy.array([3458764513820540928]) >>> vertices = starepandas.tools.trixel_conversions.to_vertices(sids) >>> starepandas.vertices2corners(vertices) array([[[-170.26439001, 29.9999996 ], [ -45. , 45.00000069], [ 80.26439001, 29.9999996 ]]])