Skip to content

cosmo val (Martin's version) #151

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

Merged
merged 11 commits into from
May 6, 2025
107 changes: 107 additions & 0 deletions config/calibration/mask_v1.5.5.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# Config file for masking and calibration.
# Standard cuts without halo masks, type v1.X.5.

# General parameters (can also given on command line)
params:
input_path: unions_shapepipe_comprehensive_struc_2024_v1.X.c.hdf5
cmatrices: True
sky_regions: False
verbose: True

# Masks
## Using columns in 'dat' group (ShapePipe flags)
dat:
# SExtractor flags
- col_name: FLAGS
label: SE FLAGS
kind: equal
value: 0

# Duplicate objects
- col_name: overlap
label: tile overlap
kind: equal
value: True

# ShapePipe flags
- col_name: IMAFLAGS_ISO
label: SP mask
kind: equal
value: 0

# Number of epochs
- col_name: N_EPOCH
label: r"$n_{\rm epoch}$"
kind: greater_equal
value: 2

# Magnitude range
- col_name: mag
label: mag range
kind: range
value: [15, 30]

# ngmix flags
- col_name: NGMIX_MOM_FAIL
label: "ngmix moments failure"
kind: equal
value: 0

# invalid PSF ellipticities
- col_name: NGMIX_ELL_PSFo_NOSHEAR_0
label: "bad PSF ellipticity comp 1"
kind: not_equal
value: -10
- col_name: NGMIX_ELL_PSFo_NOSHEAR_1
label: "bad PSF ellipticity comp 2"
kind: not_equal
value: -10

## Using columns in 'dat_ext' group (post-processing flags)
dat_ext:

# Stars
- col_name: 4_Stars
label: "Stars"
kind: equal
value: False

# Manual mask
- col_name: 8_Manual
label: "manual mask"
kind: equal
value: False

# r-band footprint
- col_name: 64_r
label: "r-band imaging"
kind: equal
value: False

# Maximask
- col_name: 1024_Maximask
label: "maximask"
kind: equal
value: False

# Rough pointing coverage
- col_name: npoint3
label: r"$n_{\rm pointing}$"
kind: greater_equal
value: 3

# Metacal parameters
metacal:
# Ellipticity dispersion
sigma_eps_prior: 0.34

# Signal-to-noise range
gal_snr_min: 10
gal_snr_max: 500

# Relative-size (hlr / hlr_psf) range
gal_rel_size_min: 0.5
gal_rel_size_max: 3

# Correct relative size for ellipticity?
gal_size_corr_ell: False
58 changes: 50 additions & 8 deletions notebooks/cosmo_val/cat_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,48 @@ SP_v1.4.2:
e2_col: e2
e1_PSF_col: e1_PSF
e2_PSF_col: e2_PSF
w: w_iv
R: 1.0
star:
path: unions_shapepipe_star_2024_v1.4.a.fits
ra_col: RA
dec_col: Dec
e1_col: e1
e2_col: e2
psf:
path: unions_shapepipe_psf_2024_v1.4.a.fits
hdu: 1
ra_col: RA
dec_col: Dec
e1_PSF_col: E1_PSF_HSM
e2_PSF_col: E2_PSF_HSM
e1_star_col: E1_STAR_HSM
e2_star_col: E2_STAR_HSM
PSF_size: SIGMA_PSF_HSM
star_size: SIGMA_STAR_HSM
PSF_flag: "FLAG_PSF_HSM"
star_flag: "FLAG_STAR_HSM"
square_size: True

SP_v1.4.1_noleakage:
pipeline: SP
subdir: CFIS/v1.0/ShapePipe/
ls: dashed
colour: black
marker: d
getdist_colour: 0.0, 0.5, 1.0
cov_th:
A: 3191.1827474082734 #deg^2
n_e: 7.0582373812033286 #arcmin-2
n_psf: 0.5705736293858423 #arcmin-2
sigma_e: 0.317469332009887
shear:
path: unions_shapepipe_2024_v1.4.1.fits
covmat_file: ./covs/shapepipe_A/cov_shapepipe_A.txt
e1_col: e1
e2_col: e2
e1_PSF_col: e1_PSF
e2_PSF_col: e2_PSF
w_col: w_iv
R: 1.0
star:
Expand All @@ -639,7 +681,7 @@ SP_v1.4.2:

SP_v1.4.5:
pipeline: SP
subdir: CFIS/v1.0/ShapePipe/
subdir: UNIONS/v1.x/ShapePipe/v1.4.x/v1.4.5
ls: dashed
colour: blue
marker: d
Expand All @@ -650,7 +692,7 @@ SP_v1.4.5:
n_psf: 0.752316232272063 #arcmin-2
sigma_e: 0.30961528707207325
shear:
path: v1.4.x/v1.4.5/unions_shapepipe_cut_struc_2024_v1.4.5.fits
path: unions_shapepipe_cut_struc_2024_v1.4.5.fits
covmat_file: ./covs/shapepipe_A/cov_shapepipe_A.txt
e1_col: e1
e2_col: e2
Expand All @@ -660,13 +702,13 @@ SP_v1.4.5:
R: 1.0
redshift_distr: CFIS/v1.0/nz/dndz_SP_A.txt
star:
path: unions_shapepipe_star_2024_v1.4.1.fits
path: unions_shapepipe_star_2024_v1.4.a.fits
ra_col: RA
dec_col: Dec
e1_col: e1
e2_col: e2
psf:
path: unions_shapepipe_psf_2024_v1.4.1.fits
path: unions_shapepipe_psf_2024_v1.4.a.fits
hdu: 1
ra_col: RA
dec_col: Dec
Expand Down Expand Up @@ -768,7 +810,7 @@ SP_test:

SP_v1.4.5_leak_corr:
pipeline: SP
subdir: CFIS/v1.0/ShapePipe/
subdir: UNIONS/v1.x/ShapePipe/v1.4.x/v1.4.5
ls: dashed
colour: midnightblue
marker: d
Expand All @@ -779,7 +821,7 @@ SP_v1.4.5_leak_corr:
n_psf: 0.752316232272063 #arcmin-2
sigma_e: 0.30961528707207325
shear:
path: v1.4.x/v1.4.5/unions_shapepipe_cut_struc_2024_v1.4.5.fits
path: unions_shapepipe_cut_struc_2024_v1.4.5.fits
covmat_file: ./covs/shapepipe_A/cov_shapepipe_A.txt
e1_col: e1_leak_corrected
e2_col: e2_leak_corrected
Expand All @@ -789,13 +831,13 @@ SP_v1.4.5_leak_corr:
R: 1.0
redshift_distr: CFIS/v1.0/nz/dndz_SP_A.txt
star:
path: unions_shapepipe_star_2024_v1.4.1.fits
path: unions_shapepipe_star_2024_v1.4.a.fits
ra_col: RA
dec_col: Dec
e1_col: e1
e2_col: e2
psf:
path: unions_shapepipe_psf_2024_v1.4.1.fits
path: unions_shapepipe_psf_2024_v1.4.a.fits
hdu: 1
ra_col: RA
dec_col: Dec
Expand Down
Loading