forked from vargatn/xpipe
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allowing custom output path, fixed parbin bug
- Loading branch information
Showing
6 changed files
with
265 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
################################### | ||
# DATA directory tree | ||
################################### | ||
|
||
data: | ||
shearcat: /shearcat | ||
shearcat: / #/shearcat | ||
lenscat: /lenscat | ||
|
||
|
||
|
||
|
||
################################### | ||
# output directory tree # Heidi Sep 2019 | ||
################################### | ||
output: | ||
xin: /xshear_in | ||
xout: /xshear_out | ||
results: /results | ||
calibs: /calibs | ||
calibs: /calibs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,194 @@ | ||
###################################################### | ||
# Default Parameter bins for Y1 analysis | ||
# | ||
# The values defined here are loaded into | ||
# xpipe.paths.params | ||
# | ||
# LOAD ORDER: | ||
# ------------------------- | ||
# 1) default_params.yml | ||
# 2) looks for params.yml | ||
# 3) tries to read "custom_params_file" from params.yml | ||
# | ||
# from this point the load is recursive, e.g. param | ||
# files are loaded as long as there is a valid | ||
# custom params file defined in the last loaded | ||
# config | ||
# | ||
###################################################### | ||
|
||
# If you want to use an other parameter file, then | ||
# specify it here. It must be in the same directory | ||
custom_params_file: iotest_params.yml | ||
|
||
# if False: uses default project_path + /data | ||
custom_data_path: /global/cscratch1/sd/tvarga/Y1_DATA/xpipe_data/ | ||
pdf_paths: /global/cscratch1/sd/tvarga/Y1_DATA/DES_PDF/*.h5 | ||
|
||
## added by Heidi | ||
# if False: uses default | ||
custom_output_path: /global/cscratch1/sd/haoyiwu/xpipe_output/iotest/ | ||
|
||
|
||
|
||
|
||
###################################################### | ||
|
||
# The pipeline supports two modes: full and dev | ||
# This is primarily used in setting up the input files | ||
# for the measurement. E.g. you can define two binning | ||
# schemes: one really complex for full, and a simple | ||
# which is expected to run much faster for dev | ||
mode: dev | ||
|
||
# prefix for all files (with NO trailing "_") | ||
tag: iotest #desy1run | ||
|
||
# reduced, lensfit, metacal | ||
shear_style: metacal | ||
|
||
# aliases for catalogs defined in default_inputs.yml | ||
## Heidi: these two cannot be the same | ||
shear_to_use: default_shear # corresponds to shearcat in default_inputs.yml | ||
cat_to_use: default_cat # corresponds to lenscat in default_inputs.yml | ||
|
||
# parameter bins | ||
param_bins_full: | ||
q0_edges: [0.2, 0.35, 0.5, 0.65] | ||
q1_edges: [5., 10., 14., 20., 30., 45., 60., 999] | ||
|
||
param_bins_dev: | ||
q0_edges: [0.2, 0.35] | ||
q1_edges: [45, 60] | ||
|
||
# number of processes (cores) to use in calculations | ||
nprocess: 2 | ||
|
||
# maximum number of Jackknife regions to use in resampling | ||
# actual number is max(n_lens, njk_max) | ||
njk_max: 2 #100 | ||
|
||
# number of random points to use | ||
nrandoms: | ||
full: 50000 | ||
dev: 1000 | ||
|
||
# random seed for choosing the random points | ||
seeds: | ||
random_seed: 5 | ||
shear_seed_master: 10 | ||
|
||
###################################################### | ||
# Here define parameters for XSHEAR config | ||
|
||
# cosmology parameters: | ||
cosmo_params: | ||
H0: 70. | ||
Om0: 0.3 | ||
|
||
# logarithmic (base 10) radial bins from rmin to rmax | ||
# units: Mpc, comoving_mpc or arcmin | ||
radial_bins: | ||
nbin: 15 | ||
rmin: 0.0323 | ||
rmax: 30.0 | ||
units: Mpc | ||
|
||
# source weight style | ||
# "optimal" for DeltaSigma, or "uniform" for shear | ||
weight_style: "optimal" | ||
|
||
# source-lens pair logging | ||
pairlog: | ||
pairlog_rmin: 0 #r bin numbers between which pairs are printed to file; | ||
pairlog_rmax: 15 # | ||
pairlog_nmax: 0 # maximum number of pairs printed in each radial bin; <=0 for no maximum | ||
|
||
|
||
|
||
###################################################### | ||
# aliases for catolog parameters | ||
|
||
lenskey: | ||
id: MEM_MATCH_ID | ||
ra: RA | ||
dec: DEC | ||
z: Z_LAMBDA | ||
q0: Z_LAMBDA | ||
q1: LAMBDA_CHISQ | ||
|
||
randkey: | ||
q0: ZTRUE | ||
q1: AVG_LAMBDAOUT | ||
ra: RA | ||
dec: DEC | ||
z: ZTRUE | ||
w: WEIGHT | ||
|
||
###################################################### | ||
# file prefixes and suffixes | ||
|
||
lens_prefix: y1clust | ||
rand_prefix: y1rand | ||
subtr_prefix: y1subtr ## Heidi: required if using randoms for postprocess.py | ||
|
||
suffixes: | ||
"profile": "_profile.dat" | ||
"dst_cov": "_dst_cov.dat" | ||
"dsx_cov": "_dsx_cov.dat" | ||
"radial_snum": "_radial_snum" | ||
"corr_boost": "_corr_boost.dat" | ||
"corr_boost_cov": "_corr_boost_cov.dat" | ||
"calibs_log": "_calibs_log.dat" | ||
|
||
|
||
|
||
###################################################### | ||
# DES fields with rectangular boundary in radec | ||
|
||
# as defined below | ||
fields_to_use: ['spt', 's82'] | ||
|
||
fields: | ||
spt: | ||
dec_top: -30. | ||
dec_bottom: -60. | ||
ra_left: 0. | ||
ra_right: 360. | ||
s82: | ||
dec_top: 10. | ||
dec_bottom: -10. | ||
ra_left: 300. | ||
ra_right: 10. | ||
d04: | ||
dec_top: 10. | ||
dec_bottom: -30. | ||
ra_left: 10. | ||
ra_right: 250. | ||
|
||
###################################################### | ||
# boost factor p(z) params | ||
|
||
pzpars: | ||
hist: | ||
nbin: 15 | ||
zmin: 0.0 | ||
zmax: 3.0 | ||
tag: "zhist" | ||
full: | ||
tag: "zpdf" | ||
boost: | ||
refprof: 14 | ||
rbmin: 0.15 #3 # Heidi: not used? | ||
rbmax: 0.25 #13# Heidi: not used? | ||
|
||
#### below added by Heidi | ||
source_bins_to_use: [0] # Tamas says it has no effect | ||
|
||
|
||
### below: used by shape noise | ||
shear_nrot: 1 # TODO: probably need bigger | ||
|
||
shear_seed_master: 0 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.