adapt_resolution_to_proximity#
- adapt_resolution_to_proximity(sids)#
Adapts the resolution of SIDs to match the geographical distanc between the SIDs.
- Parameters:
- sids: 1D array-like
SIDs to adapt the resolution
- Returns:
- adapted_sids: 1D numpy array
SIDs with adapted resolution
Examples
>>> sids = numpy.array([4298473764500464820, 4298458168380511220, 4297394569014717908]) >>> pystare.to_level(sids) array([20, 20, 20], dtype=int32) >>> sids = pystare.adapt_resolution_to_proximity(sids) >>> sids array([4298473764500464809, 4298458168380511209, 4297394569014717897]) >>> pystare.to_level(sids) array([9, 9, 9], dtype=int32)