healpix_geo.nested.RangeMOCIndex.difference#

RangeMOCIndex.difference(other)#

Compute the set difference of two indexes

The set difference contains all elements that are in self but not in other.

\[A - B = { x | x \in A \land x \notin B }\]
Parameters:

other (RangeMOCIndex) – The index to subtract. May have a different depth, in which case the result will use the maximum depth between both indexes.

Returns:

result (RangeMOCIndex) – The set difference of the two indexes.