starepandas.STAREDataFrame.trixel_corners#

STAREDataFrame.trixel_corners(vertices=None, from_trixels=False)#

Returns corners of trixels as lon/lat.

If vertices is set, the trixel corners are extracted from vertices (c.f. trixel_vertices()). If from_trixels is True and dataframe contains trixel column, corners are extracted from trixels. If not, corners are generated from stare column

Parameters:
verticestuple (vertices data structure)

If set, the centers are extracted from the vertices.

from_trixels: bool

If true and dataframe contains trixel column, corners are extracted from trixels.

Returns:
cornersnumpy array

Corners of the trixels in lon/lat representation. First dimension are the SIDs, second dimension the corners (1 through 3), third dimension lon/lat.

Examples

>>> sids = numpy.array([3458764513820540928])
>>> df = starepandas.STAREDataFrame(sids=sids)
>>> df.trixel_corners()
array([[[-170.26439001,  29.9999996 ],
        [ -45.        ,  45.00000069],
        [  80.26439001,  29.9999996 ]]])