to_level#

to_level(sids)#

Converts SIDs to levels

Parameters:
sids: 1D array-like

SIDs to convert to levels

Returns:
levels: 1D numpy arrau

stare levels of the sids

Examples

>>> import pystare
>>> import numpy
>>> sids = numpy.array([4151504989081014894, 4161865161846704590, 3643626718498217166])
>>> pystare.to_level(sids)
array([14, 14, 14], dtype=int32)