-
Notifications
You must be signed in to change notification settings - Fork 10
Description
I'm trying to select existing cell ids using a geometry (similarly to what you'd do in a tabular database), where the existing cell ids represent a subset of the full sphere (a MOC, if I understand correctly?) and are ordered but not necessarily a range.
I could use the different *_search
functions like polygon_search
or cone_search
, but this may have a significant overhead in memory if the given vector of cell ids only covers a small part of the search area. Thus, what I'm looking for is one or multiple functions that perform the cell-in-geometry check and return a boolean / coverage mode (I can then vectorize that in a separate library for use in python).
Looking at how the polygon_search
method is currently written I don't think we can make use of that?
Otherwise, am I missing anything? Do you know a better way of implementing something like this? And is this the right library to put such a function (or group of functions)?