to_vertices_latlon#

to_vertices_latlon(sids)#

Converts SIDs into latitudes and longiutdes of the trixel vertices and the centers

Parameters:
sids: 1D array-like

SIDs to convert to lat/lon of trixel vertices and centers

Returns:
latsv: 1D numpy array

serialized latitudes of trixel vertices. Same length as lonsv. Tripple the size of lat_centers and lon_centers

latsv: 1D numpy array

serialized longitudes of trixel vertices. Same length as latsv. Tripple the size of lat_centers and lon_centers

lat_centers: 1D numpy array

latitudes of trixel centers. Same length as lon_centers

lon_centers: 1D numpy array

longitudes of trixel centers. Same length as lat_centers

Examples

>>> pystare.to_vertices_latlon([4254212798004854789])
(array([53.89745687, 56.8965353 , 56.93769843]),
array([ 9.22866958, 13.23186479,  8.07137938]),
array([55.93005351]),
array([10.15342841]))