From 2407de58947dab4a69acc3a19f7d5f46f10cd8bd Mon Sep 17 00:00:00 2001 From: "Thomson, Alec (CASS, Kensington)" Date: Tue, 30 Apr 2024 23:02:25 +1000 Subject: [PATCH] Get RA right way aroound --- arrakis/validate.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arrakis/validate.py b/arrakis/validate.py index 2201d955..4687e8f5 100644 --- a/arrakis/validate.py +++ b/arrakis/validate.py @@ -143,6 +143,8 @@ def make_gridded_map( method="linear", ) # default method is linear data[~np.isfinite(data_l)] = np.nan + # Reverses the x-axis because RA + data = data[:, ::-1] return GriddedMap(data, coarse_wcs) @@ -190,6 +192,8 @@ def make_binned_map( xc = (xe[1:] + xe[:-1]) / 2 yc = (ye[1:] + ye[:-1]) / 2 XC, YC = np.meshgrid(xc, yc) + # Reverses the x-axis because RA + data = data[:, ::-1] return BinnedMap(data, XC, YC, coarse_wcs)