Skip to content

Commit 9944ae2

Browse files
committed
Include average depth in the title
1 parent 13cb490 commit 9944ae2

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

chile_optimization_sims/phase1/sims/scale_maps.lat.py

+16-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313

1414
f_total = {}
1515

16+
# fsky for measurement requirement
17+
18+
fskies = {}
19+
1620
# Factors not included in f_total
1721

1822
yield_ = 0.8
@@ -43,6 +47,7 @@
4347
"f280" : 0.18,
4448
}
4549
f_field["lat_wide"] = 0.908
50+
fskies["lat_wide"] = 0.6
4651

4752
# LAT delensing f_total from
4853
# https://docs.google.com/spreadsheets/d/116Xa1vHrIwO6xTLsZalXo-QK7aKRQJnTE5LhkSl9eig/edit?gid=226211982#gid=226211982
@@ -58,6 +63,7 @@
5863
"f280" : 0.18,
5964
}
6065
f_field["lat_delensing"] = 0.972
66+
fskies["lat_delensing"] = 0.03
6167

6268
# LAT delensing_core is a variant of LAT delensing
6369

@@ -71,6 +77,7 @@
7177
"f280" : 0.18,
7278
}
7379
f_field["lat_delensing_core"] = 0.971
80+
fskies["lat_delensing_core"] = 0.03
7481

7582
# f_weather from the simulation logs on 09/27/2024
7683

@@ -192,12 +199,20 @@
192199
depth = depth_I
193200
vmin = np.amin(depth[depth != 0])
194201
vmax = 2 * vmin
202+
#
203+
sorted_depth = depth.copy()
204+
sorted_depth[sorted_depth == 0] = 1e10
205+
sorted_depth = np.sort(sorted_depth)
206+
fsky = fskies[flavor]
207+
lim = int(depth.size * fsky)
208+
mean_depth = np.mean(sorted_depth[:lim])
209+
#
195210
depth[depth == 0] = hp.UNSEEN
196211
hp.mollview(
197212
depth,
198213
min=vmin,
199214
max=vmax,
200-
title=band,
215+
title=f"{band}, mean = {mean_depth:.2f} (fsky={fsky})",
201216
sub=[nrow, ncol, iplot],
202217
cmap="inferno",
203218
unit="$\mu$K.arcmin",

0 commit comments

Comments
 (0)