vertices2corners_ecef#
- vertices2corners_ecef(vertices)#
Converts trixel vertices datastructure (c.f.
to_vertices()) to trixel corners in ECEF representation.- Parameters:
- vertices: tuple
vertices data structure
- Returns:
- corners: numpy.array
First dimension are the sids (same as input first dimension). Second dimension the corners (1,2,3). Third dimension x,y,z.
Examples
>>> import starepandas >>> sids = numpy.array([3458764513820540928]) >>> vertices = starepandas.tools.trixel_conversions.to_vertices(sids) >>> starepandas.vertices2corners_ecef(vertices) array([[[-0.85355339, -0.14644661, 0.49999999], [ 0.49999999, -0.49999999, 0.70710679], [ 0.14644661, 0.85355339, 0.49999999]]])