Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 67769aa

Browse files
committedFeb 19, 2025··
config loading
1 parent 7382d1a commit 67769aa

File tree

5 files changed

+852
-72
lines changed

5 files changed

+852
-72
lines changed
 

‎examples/heracles.cfg

-72
This file was deleted.

‎examples/heracles.toml

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# example config file for Heracles
2+
3+
[[catalogs]]
4+
fields = ["POS", "VIS"]
5+
label = "position catalogue"
6+
selections = [
7+
{key = 1, selection = "POS_TOM_BIN_ID==1", visibility = "visibility.1.fits"},
8+
{key = 2, selection = "POS_TOM_BIN_ID==2", visibility = "visibility.2.fits"},
9+
{key = 3, selection = "POS_TOM_BIN_ID==3", visibility = "visibility.3.fits"},
10+
]
11+
source = "pos_catalog.fits"
12+
13+
[[catalogs]]
14+
fields = ["SHE", "WHT"]
15+
label = "shear catalogue"
16+
selections = [
17+
{key = 1, selection = "TOM_BIN_ID==1"},
18+
{key = 2, selection = "TOM_BIN_ID==2"},
19+
{key = 3, selection = "TOM_BIN_ID==3"},
20+
]
21+
source = "she_catalog.fits"
22+
visibility = "coverage.fits" # global visibility for this catalogue
23+
24+
[[fields]]
25+
key = "POS"
26+
type = "positions"
27+
columns = ["RIGHT_ASCENSION", "DECLINATION"]
28+
mask = "VIS"
29+
mapper = "healpix" # default, requires healpy
30+
lmax = 2000
31+
nside = 2048
32+
33+
[[fields]]
34+
key = "VIS"
35+
type = "visibility"
36+
lmax = 6000 # maximum lmax + l2max from spectra involving POS
37+
nside = 4096
38+
39+
[[fields]]
40+
key = "SHE"
41+
type = "shears"
42+
columns = ["SHE_RA", "SHE_DEC", "SHE_E1_CAL", "-SHE_E2_CAL", "SHE_WEIGHT"]
43+
mask = "WHT"
44+
mapper = "discrete" # requires ducc, no nside here
45+
lmax = 3000
46+
47+
[[fields]]
48+
key = "WHT"
49+
type = "weights"
50+
columns = ["SHE_RA", "SHE_DEC", "SHE_WEIGHT"]
51+
lmax = 8000 # maximum lmax + l2max from spectra involving SHE
52+
nside = 8192
53+
54+
[[spectra]]
55+
# galaxy clustering
56+
key = "POS-POS" # can use string syntax here
57+
lmin = 10 # for angular binning
58+
lmax = 2000
59+
l2max = 4000 # mixing matrix: number of columns
60+
l3max = 6000 # lmax + l2max is the default
61+
bins = {n = 32, spacing = "log", weights = "2l+1"}
62+
63+
[[spectra]]
64+
# cosmic shear
65+
key = "SHE-SHE"
66+
lmin = 10
67+
lmax = 3000
68+
l2max = 5000
69+
bins = {n = 32, spacing = "log", weights = "2l+1"}
70+
71+
[[spectra]]
72+
# galaxy-galaxy lensing
73+
key = ["POS", "SHE"] # can also use sequence
74+
lmin = 10
75+
lmax = 1000
76+
l2max = 2000
77+
bins = {n = 32, spacing = "log", weights = "2l+1"}
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Please sign in to comment.