Skip to content

Commit

Permalink
add REVERSE_FOV_LON global
Browse files Browse the repository at this point in the history
Signed-off-by: Quentin Remy <quentin.remy@mpi-hd.mpg.de>
  • Loading branch information
QRemy committed Jul 19, 2024
1 parent 9096e95 commit fef1b12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gammapy/makers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
from gammapy.utils.coordinates import sky_to_fov
from gammapy.utils.regions import compound_region_to_regions

REVERSE_FOV_LON = False

__all__ = [
"make_counts_rad_max",
"make_edisp_kernel_map",
Expand Down Expand Up @@ -88,7 +90,8 @@ def _get_fov_coords(pointing, irf, geom, use_region_center=True, obstime=None):
pointing_icrs.icrs.ra,
pointing_icrs.icrs.dec,
)
fov_lon = -fov_lon
if REVERSE_FOV_LON:
fov_lon = -fov_lon
else:
raise ValueError(
f"Unsupported background coordinate system: {irf.fov_alignment!r}"
Expand Down

0 comments on commit fef1b12

Please sign in to comment.