uvex_transients.surveys.base.SurveySchedule.get_observed_healpix_ids#
- SurveySchedule.get_observed_healpix_ids(start_time: Time, end_time: Time, nside: int | None = None, order: str | None = None, dilate: bool = False) ndarray[source]#
Return the HEALPix pixel indices covered by observations in a time interval.
Built directly from
get_healpix_coverage_index()’s cached, whole-schedule CSR structure (rasterized once viam4opt.fov.footprint_healpix()and cached per(nside, order)) rather than re-rasterizing footprints for this time window – a per-pixel segmented reduction over the cached index, not a second geometric pass. Repeated calls with the same(nside, order)across different (even overlapping) time windows – as in a per-time-bin sampling loop – pay for the rasterization at most once.- Parameters:
start_time (
Time) – Beginning of the query interval, inclusive.end_time (
Time) – End of the query interval, exclusive.nside (
int, optional) – HEALPix resolution parameter, or None to useconfig["healpix.default_nside"].order (
str, optional) – HEALPix pixel ordering scheme,"nested"or"ring", or None to useconfig["healpix.default_order"].dilate (
bool, optional) – If True, also return the (up to eight) neighbours of every covered pixel. The coverage index registers a pixel only if its center is inside a footprint, so a position inside a footprint can sit in a pixel that is not covered. The dilated set contains every pixel thatget_observation_indices_of()can match a position to, since that method looks up a position’s own pixel and its neighbours. Use it to sample positions that an observation could reach. As there, it is sufficient when a pixel is much smaller than the footprint. The default is False, the covered pixels alone.
- Returns:
Sorted, deduplicated HEALPix pixel indices covered by any observation in the interval (and, if dilate, their neighbours); empty if there were none.
- Return type: