intersection#

intersection(sids1, sids2, multi_resolution=True)#

Creates an intersection of sids1 and sids2

Parameters:
sids1: 1D array-like

first collection of SIDs

sids2: 1D array-like

second collection of SIDs

multi_resolution: bool

if true, allow the intersection to be multi resolution.

Returns:
intersection: 1D numpy array

SIDs representing the intersection of sids1 and sids2

Examples

>>> sids1 = [4251398048237748227, 4269412446747230211, 4278419646001971203, 4539628424389459971]
>>> sids2 = [4251398048237748228, 4255901647865118724, 4258153447678803972, 4539628424389459972]
>>> pystare.intersection(sids1, sids2, multi_resolution=False)
array([4251398048237748228, 4255901647865118724, 4258153447678803972, 4539628424389459972])