Skip to content

Commit

Permalink
fixing error in add_starfield_polarized module
Browse files Browse the repository at this point in the history
  • Loading branch information
s0larish committed Nov 13, 2024
1 parent 13d5449 commit ab89e58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simpunch/level2.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ def add_starfield_polarized(input_collection: NDCollection, polfactor: tuple = (
starfield_data[:, :] = starfield * (np.logical_not(np.isclose(input_data.data, 0, atol=1E-18)))

# Converting the input data polarization to celestial basis
mzp_angles = ([input_cube.meta["POLAR"] for label, input_cube in input_collection.items() if
label != "alpha"] * u.degree)
mzp_angles = u.Quantity([input_cube.meta["POLAR"] for label, input_cube in input_collection.items() if
label != "alpha"], unit=u.degree)
cel_north_off = get_p_angle(time=input_collection["0.0 deg"].meta["DATE-OBS"])
new_angles = mzp_angles - cel_north_off # or +? confirm!

Expand Down

0 comments on commit ab89e58

Please sign in to comment.