uvex_transients.surveys.footprints.utils#

Building blocks for the ~mocpy.MOC generators behind ~uvex_transients.surveys.footprints.base.SurveyFootprint.

Every generator here follows the registry contract generator(*, max_order, **params) -> MOC (see ~uvex_transients.surveys.footprints.base.SurveyFootprint.generator): a download helper (download_file_cached), DS9 region files (fetch_and_generate_MOC_from_URL), and simple analytic shapes (all_sky_MOC, dec_band_MOC, union_of_galactic_boxes_MOC).

Functions

all_sky_MOC(*, max_order)

Registry-contract generator for an unrestricted, all-sky footprint.

convert_region_to_MOC(regions, max_order[, ...])

Convert parsed DS9 regions into a single ~mocpy.MOC.

dec_band_MOC(*, max_order, min_dec[, max_dec])

Registry-contract generator for a declination band covering every right ascension.

download_file_cached(url[, cache, show_progress])

Download a file, reusing astropy's on-disk cache when possible.

fetch_and_generate_MOC_from_URL(*, ...[, ...])

Download a DS9 region file and convert it to a ~mocpy.MOC.

galactic_box_MOC(*, max_order, l_min, l_max, ...)

Build a box bounded by constant Galactic longitude and latitude.

union_of_galactic_boxes_MOC(*, max_order, boxes)

Registry-contract generator for the union of several galactic_box_MOC boxes.