spatial_resolution#

spatial_resolution(sids)#

Returns the spatial resolution of an sid

Parameters:
sids: int or array-like

STARE index value

Returns:
resolution: int

Resolution of the SID

Examples

>>> sid = pystare.hex2int('0x3000000000000004')
>>> pystare.spatial_resolution(sid)
4
>>> sids = pystare.hex2int(['0x3000000000000004', '0x3000000000000005'])
>>> pystare.spatial_resolution(sids)
array([4, 5])
>>> sid = numpy.array(sids)
>>> pystare.spatial_resolution(sid)
array([4, 5])