magic-cta-pipe is under active development. Expect large and rapid changes in functionality.

calculate_off_coordinates#

magicctapipe.utils.calculate_off_coordinates(pointing_ra, pointing_dec, on_coord_ra, on_coord_dec, n_regions)[source]#

Calculates the coordinates of the centers of OFF regions to estimate the backgrounds for wobble observation data.

It calculates the wobble rotation angle with equations derived from a hand calculation.

Parameters:
pointing_raastropy.units.quantity.Quantity

Right ascension of the telescope pointing direction

pointing_decastropy.units.quantity.Quantity

Declination of the telescope pointing direction

on_coord_raastropy.units.quantity.Quantity

Right ascension of the center of the ON region

on_coord_decastropy.units.quantity.Quantity

Declination of the center of the ON region

n_regionsint

Number of OFF regions to be created

Returns:
dict

Coordinates of the centers of the OFF regions