Skip to content

Commit

Permalink
Merge branch 'ana_cov_comp' into ana_cov_comp_pseudosignal
Browse files Browse the repository at this point in the history
  • Loading branch information
zatkins2 authored Dec 20, 2023
2 parents 4556fcd + 30ab89e commit 8dad5e1
Show file tree
Hide file tree
Showing 12 changed files with 296 additions and 1,294 deletions.
46 changes: 24 additions & 22 deletions project/ana_cov_comp/paramfiles/cov_dr6_v4_20231128.dict
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
data_dir = '/scratch/gpfs/zatkins/data/simonsobs/PSpipe/project/ana_cov_comp/cov_dr6_v4_20231128/'
iam = 'zatkins_on_della' # 'xzackli_on_perlmutter'

data_dir = {'zatkins_on_della': '/scratch/gpfs/zatkins/data/simonsobs/PSpipe/project/ana_cov_comp/cov_dr6_v4_20231128/', 'xzackli_on_perlmutter': '/pscratch/sd/x/xzackli/so/data/dr6v4/'}[iam]

surveys = ["dr6"]
arrays_dr6 = {'pa4': ['f220'], 'pa5': ['f090', 'f150'], 'pa6': ['f090', 'f150']}
Expand Down Expand Up @@ -47,6 +49,8 @@ couplings_dir = data_dir + 'couplings'
sq_win_alms_dir = data_dir + 'sq_win_alms'
covariances_dir = data_dir + 'covariances'
split_covariances_dir = data_dir + 'split_covariances'
noise_model_savgol_w = 75
noise_model_savgol_k = 4

use_toeplitz_cov = True

Expand Down Expand Up @@ -78,31 +82,29 @@ edge_skip_rescale = 1
cross_link_threshold = 0.97
n_med_ivar = 3

window_dir = '/pscratch/sd/x/xzackli/so/data/windows/'

window_T_dr6_pa4_f150 = window_dir + "window_dr6_pa4_f150_baseline.fits"
window_pol_dr6_pa4_f150 = window_dir + "window_dr6_pa4_f150_baseline.fits"
window_kspace_dr6_pa4_f150 = window_dir + "kspace_mask_dr6_pa4_f150.fits"
window_T_dr6_pa4_f150 = data_dir + "windows/window_dr6_pa4_f150_baseline.fits"
window_pol_dr6_pa4_f150 = data_dir + "windows/window_dr6_pa4_f150_baseline.fits"
window_kspace_dr6_pa4_f150 = data_dir + "windows/kspace_mask_dr6_pa4_f150.fits"

window_T_dr6_pa4_f220 = window_dir + "window_dr6_pa4_f220_baseline.fits"
window_pol_dr6_pa4_f220 = window_dir + "window_dr6_pa4_f220_baseline.fits"
window_kspace_dr6_pa4_f220 = window_dir + "kspace_mask_dr6_pa4_f220.fits"
window_T_dr6_pa4_f220 = data_dir + "windows/window_dr6_pa4_f220_baseline.fits"
window_pol_dr6_pa4_f220 = data_dir + "windows/window_dr6_pa4_f220_baseline.fits"
window_kspace_dr6_pa4_f220 = data_dir + "windows/kspace_mask_dr6_pa4_f220.fits"

window_T_dr6_pa5_f090 = window_dir + "window_dr6_pa5_f090_baseline.fits"
window_pol_dr6_pa5_f090 = window_dir + "window_dr6_pa5_f090_baseline.fits"
window_kspace_dr6_pa5_f090 = window_dir + "kspace_mask_dr6_pa5_f090.fits"
window_T_dr6_pa5_f090 = data_dir + "windows/window_dr6_pa5_f090_baseline.fits"
window_pol_dr6_pa5_f090 = data_dir + "windows/window_dr6_pa5_f090_baseline.fits"
window_kspace_dr6_pa5_f090 = data_dir + "windows/kspace_mask_dr6_pa5_f090.fits"

window_T_dr6_pa5_f150 = window_dir + "window_dr6_pa5_f150_baseline.fits"
window_pol_dr6_pa5_f150 = window_dir + "window_dr6_pa5_f150_baseline.fits"
window_kspace_dr6_pa5_f150 = window_dir + "kspace_mask_dr6_pa5_f150.fits"
window_T_dr6_pa5_f150 = data_dir + "windows/window_dr6_pa5_f150_baseline.fits"
window_pol_dr6_pa5_f150 = data_dir + "windows/window_dr6_pa5_f150_baseline.fits"
window_kspace_dr6_pa5_f150 = data_dir + "windows/kspace_mask_dr6_pa5_f150.fits"

window_T_dr6_pa6_f090 = window_dir + "window_dr6_pa6_f090_baseline.fits"
window_pol_dr6_pa6_f090 = window_dir + "window_dr6_pa6_f090_baseline.fits"
window_kspace_dr6_pa6_f090 = window_dir + "kspace_mask_dr6_pa6_f090.fits"
window_T_dr6_pa6_f090 = data_dir + "windows/window_dr6_pa6_f090_baseline.fits"
window_pol_dr6_pa6_f090 = data_dir + "windows/window_dr6_pa6_f090_baseline.fits"
window_kspace_dr6_pa6_f090 = data_dir + "windows/kspace_mask_dr6_pa6_f090.fits"

window_T_dr6_pa6_f150 = window_dir + "window_dr6_pa6_f150_baseline.fits"
window_pol_dr6_pa6_f150 = window_dir + "window_dr6_pa6_f150_baseline.fits"
window_kspace_dr6_pa6_f150 = window_dir + "kspace_mask_dr6_pa6_f150.fits"
window_T_dr6_pa6_f150 = data_dir + "windows/window_dr6_pa6_f150_baseline.fits"
window_pol_dr6_pa6_f150 = data_dir + "windows/window_dr6_pa6_f150_baseline.fits"
window_kspace_dr6_pa6_f150 = data_dir + "windows/kspace_mask_dr6_pa6_f150.fits"

window_T_dr6_pa4_f220_alias = "w_dr6_pa4_f220"
window_pol_dr6_pa4_f220_alias = "w_dr6_pa4_f220"
Expand All @@ -116,7 +118,7 @@ window_T_dr6_pa6_f150_alias = "w_dr6_pa6_f150"
window_pol_dr6_pa6_f150_alias = "w_dr6_pa6_f150"

# maps
map_dir = '/pscratch/sd/x/xzackli/so/data/dr6v4/maps/'
map_dir = {'zatkins_on_della': '/scratch/gpfs/ACT/dr6v4/maps/dr6v4_20230316/release/', 'xzackli_on_perlmutter': '/pscratch/sd/x/xzackli/so/data/dr6v4/maps/'}[iam]

n_splits_dr6 = 4
src_free_maps_dr6 = True
Expand Down
2 changes: 1 addition & 1 deletion project/ana_cov_comp/python/get_2pt_ewin_alms.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
if field_info not in field_infos:
field_infos.append(field_info)
else:
raise ValueError(f'{field_info} is not unique')
raise ValueError(f'{field_info=} is not unique')

ewin_info_s = psc.get_ewin_info_from_field_info(field_info, d, mode='w')
if ewin_info_s not in ewin_infos:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
# we define the canon by the windows order. we first build the fields,
# then use a mapping from fields to windows to build the canonical
# windows
recipe = {'S_only':[], 'SxN':[], 'N_only':[]}
recipe = {'S_only': [], 'SxN': [], 'N_only': []}
field_infos = []
ewin_infos = []
for sv1 in surveys:
Expand Down Expand Up @@ -128,7 +128,7 @@
'spintype': spintype,
'w1': f'{ewin_alms_dir}/{ewin_name1}x{ewin_name2}_alm.npy',
'w2': f'{ewin_alms_dir}/{ewin_name3}x{ewin_name4}_alm.npy',
'lmax':lmax,
'lmax': lmax,
'input_alm': True,
'coupling_fn': coupling_fn
})
Expand Down Expand Up @@ -186,7 +186,7 @@
'spintype': spintype,
'w1': f'{ewin_alms_dir}/{ewin_name1}x{ewin_name2}_alm.npy',
'w2': f'{ewin_alms_dir}/{ewin_name3}x{ewin_name4}_alm.npy',
'lmax':lmax,
'lmax': lmax,
'input_alm': True,
'coupling_fn': coupling_fn
})
Expand Down Expand Up @@ -245,7 +245,7 @@
'spintype': spintype,
'w1': f'{ewin_alms_dir}/{ewin_name1}x{ewin_name2}_alm.npy',
'w2': f'{ewin_alms_dir}/{ewin_name3}x{ewin_name4}_alm.npy',
'lmax':lmax,
'lmax': lmax,
'input_alm': True,
'coupling_fn': coupling_fn
})
Expand Down
120 changes: 0 additions & 120 deletions project/ana_cov_comp/python/get_alms.py

This file was deleted.

156 changes: 0 additions & 156 deletions project/ana_cov_comp/python/get_covariance_blocks.py

This file was deleted.

Loading

0 comments on commit 8dad5e1

Please sign in to comment.