Skip to content

Commit

Permalink
Get RA right way aroound
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecThomson committed Apr 30, 2024
1 parent 7a79a8c commit 2407de5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arrakis/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down Expand Up @@ -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)


Expand Down

0 comments on commit 2407de5

Please sign in to comment.