Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Winter 2021 design tool run #22

Merged
merged 25 commits into from
Mar 16, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 00_core.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"import os\n",
"\n",
"base_folder = os.environ.get(\n",
" \"S4REFSIMTOOL_INPUT\", \"/global/cfs/cdirs/cmbs4/dm/dstool/input/\"\n",
" \"S4REFSIMTOOL_INPUT\", \"/global/cscratch1/sd/keskital/s4sim/reference_tool_round_2/out\"\n",
")"
]
},
Expand Down
6 changes: 3 additions & 3 deletions 01_foregrounds.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@
" dtype=None,\n",
" verbose=False,\n",
" )\n",
" emission_map[emission_map == hp.UNSEEN] = np.nan\n",
" emission_map[emission_map == 0] = np.nan\n",
zonca marked this conversation as resolved.
Show resolved Hide resolved
" if emission == \"CMB_tensor_to_scalar_ratio\":\n",
" # input maps are simulated with r=1\n",
" # input maps are simulated with r=3e-3\n",
" # tensor-to-scalar ratio is defined in the power spectrum, we need to weight the maps with the square root\n",
" weight = np.sqrt(weight)\n",
" weight = np.sqrt(weight/3e-3)\n",
zonca marked this conversation as resolved.
Show resolved Hide resolved
" output_map += emission_map * weight\n",
"\n",
" output_map /= 1e6 # uK -> K\n",
Expand Down