Skip to content

Commit

Permalink
update calib
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis Thibaut authored and Louis Thibaut committed Feb 25, 2025
1 parent b4a761b commit 7109aa8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions project/ACT_DR6/python/planck/AxP_cal_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@
with open(f"dr6xnpipe/{cal_folder}/calibs_dict.pkl", "rb") as f:
cal_npipe = pickle.load(f)

# These are the numbers applied to the release maps
# These are the numbers applied to the released maps
map_cal = {}
map_cal["pa5_f090"] = 1.011
map_cal["pa6_f090"] = 1.009
map_cal["pa5_f150"] = 0.986
map_cal["pa6_f150"] = 0.970
map_cal["pa4_f220"] = 1.043
map_cal["pa5_f090"] = 1.0111
map_cal["pa6_f090"] = 1.0086
map_cal["pa5_f150"] = 0.9861
map_cal["pa6_f150"] = 0.9702
map_cal["pa4_f220"] = 1.0435

for ar in arrays:
str = ""
for method in methods:
cal, sigma = cal_legacy[method, ar]["calibs"]
cal *= d_legacy[f"cal_dr6_{ar}"]
cal *= d_legacy[f"cal_dr6_{ar}"] * map_cal[ar]
str += f"& {cal:.4f} $\pm$ {sigma:.4f} "
for method in methods:
cal, sigma = cal_npipe[method, ar]["calibs"]
cal *= d_npipe[f"cal_dr6_{ar}"]
cal *= d_npipe[f"cal_dr6_{ar}"] * map_cal[ar]
str += f"& {cal:.4f} $\pm$ {sigma:.4f} "

waf, f = ar.split("_")
Expand Down

0 comments on commit 7109aa8

Please sign in to comment.