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_ra
astropy.units.quantity.Quantity Right ascension of the telescope pointing direction
- pointing_dec
astropy.units.quantity.Quantity Declination of the telescope pointing direction
- on_coord_ra
astropy.units.quantity.Quantity Right ascension of the center of the ON region
- on_coord_dec
astropy.units.quantity.Quantity Declination of the center of the ON region
- n_regions
int Number of OFF regions to be created
- pointing_ra
- Returns:
dictCoordinates of the centers of the OFF regions