get_sb_mask

grizli.horizons.get_sb_mask(assoc, mask_size={'MIRI': '3"', 'NIRCAM': '0.5"'}, region_colors={'MIRI': 'pink', 'NIRCAM': 'lightblue'}, parallels=True, t_pad=90.0)[source]

Calculate an image mask based on the small body ephemerides

Parameters
assocstr

Association name, already processed with query_horizons_small_bodies

mask_sizedict

Mask size along the ephemeris track

region_colorsdict

Colors applied to regions in the DS9 output

parallelsbool

Extend query to additional associations with the same obs_id as the exposures in assoc

t_padfloat

Time in seconds to pad to the beginning and end of the exposure metadata when calculating the ephemeris overlap

Returns
assoc_datatable

Exposure metadata from the db query

masktable

Table of polygon masks, if overlaps found