-
Notifications
You must be signed in to change notification settings - Fork 12
AnaCal ingestion #446
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
base: master
Are you sure you want to change the base?
AnaCal ingestion #446
Changes from all commits
cac4c6c
52093b0
0542c09
cb0bead
5f985ad
abba469
fd42ff6
1c99217
8126a27
96914db
09bf4e3
21103dd
5881da1
7966f16
6fb51b9
5c444a1
3cc7017
54b1846
a7b56a6
fcc9c07
75f3e4a
71f004f
dcb80cc
901b0c2
b39c0d2
cb0d002
c6f2a3b
ba9fe19
cbce432
276d805
99eec0b
c5744a7
a795dea
30b4e45
1f29f6a
9ad3c5e
2459f90
7bbc450
f727a96
06e1820
05ac192
089c8bb
64e95ec
803cee2
e761385
62ad6a6
82413b6
20363b3
8a900fe
1ec3129
20f554e
baaadff
cd1a7fe
d80dd63
5a66b75
69f08ef
a0275a9
89b6543
3a72a90
7346ae7
5131798
0e5890a
32d4979
8d3a0be
e98a09a
2312eb1
04dc546
3e7ad1a
e112dea
6cf485e
77654ac
0f2d95f
1812a90
a21049e
a468235
9085096
ae7e7c2
b795700
a84dae6
956f9cc
bdb46cc
0009f70
1f4ad0f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| global: | ||
| chunk_rows: 100000 | ||
| sparse: true # Generate sparse maps - faster if using small areas | ||
| pixelization: healpix | ||
| nside: 512 | ||
|
|
||
| TXIngestAnacal: | ||
| # DP1-v3 AnaCal outputs for the a360 cluster field (per-tract). | ||
| butler_config_file: /global/cfs/cdirs/lsst/production/gen3/rubin/DP1/repo/butler.yaml | ||
| collections: "u/xiangchl/dp1-v3/a360_anacal2" | ||
|
|
||
| # a360 sits in the "Low Ecliptic Latitude Field" (LELF). DP1_TRACTS["LELF"] | ||
| # contains the two live tracts 10463, 10464 (plus four never-processed). | ||
| select_field: "LELF" | ||
| cosmology_tracts_only: False | ||
|
|
||
| # Merged catalog carries band-combined shape moments under the "fpfs1_*" | ||
| # prefix and Gaussian-aperture fluxes at scale "gauss2". Per-band | ||
| # columns are survey-prefixed as ``lsst_{band}_...`` (v3 schema) and | ||
| # carry pre-computed magnitudes + dmag/dg responses, so no | ||
| # nanojansky→mag conversion happens inside the ingest. a360 was | ||
| # measured on griz only (no u/y coadds). | ||
| prefix: "fpfs1" | ||
| scale: "gauss2" | ||
| bands: "griz" | ||
|
|
||
| TXSourceSelectorAnaCal: | ||
| # AnaCal shear-response step size for selection bias correction — must | ||
| # match the δγ used to build the on-disk photo-z distortions | ||
| # (zmode_{1p,1m,2p,2m}) in xlens' photoZPipe (currently ±0.01 in | ||
| # DISTORTIONS). | ||
| delta_gamma: 0.01 | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i add the selection stage in the example.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But we don't want to run them at the same time. Sadly from how things are set up on NERSC, we want to run the ingestion stage in one environment and then the rest of the pipeline should be run in a dedicated environment for TXPipe. But we want to be able to run the Selection stage later, where we might be able to use different photo-z's for example There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks for the comment and i have separated the ingestion from the rest of the task in the examples folder (see commit a21049e) |
||
| # mask_value threshold — sources with mask_value >= this get dropped. | ||
| # AnaCal reports a bit-packed flag; 1 means "any bit set" (strictest). | ||
| mask_threshold: 40 | ||
|
|
||
| # AnaCal S/N cut (flux / flux_err). Default in code is 5.0. | ||
| s2n_cut: 5.0 | ||
|
|
||
| # Band-combined size cut (m00 + m20) / m00 > T_cut on fpfs1 moments. | ||
| # Default 0.1. | ||
| T_cut: 0.1 | ||
|
|
||
| # Band-combined shape magnitude cut |e| < emax (selector applies | ||
| # esq < emax**2 on the ``esq`` column). | ||
| emax: 0.5 | ||
|
|
||
| # Per-band AB mag upper bounds (uses pre-computed mag_{b} from v3 | ||
| # ingest). Default 50 is above the xlens smooth-truncation cap | ||
| # (mag=40) so no cut is applied; set per band to gate on brightness. | ||
| g_hi_cut: 50.0 | ||
| r_hi_cut: 50.0 | ||
| i_hi_cut: 50.0 | ||
| z_hi_cut: 50.0 | ||
|
|
||
| # Bands available in the a360 ingest. | ||
| bands: [g, r, i, z] | ||
|
|
||
| # 5 tomographic bins — will need edited to fit your science n(z). | ||
| source_zbin_edges: [0.3, 0.6, 0.9, 1.2, 1.5, 2.0] | ||
|
|
||
| # ``input_pz: true`` reads ``mean_z`` from the shear catalog and skips the | ||
| # random-forest classifier. TXIngestAnacal exposes ``mean_z`` (from | ||
| # ``zmode_0`` in the merged catalog) plus the four shifted variants | ||
| # ``mean_z_{1p,1m,2p,2m}`` (from ``zmode_{1p,1m,2p,2m}``) — the selector | ||
| # consumes the baseline column for tomographic binning and the four | ||
| # variants for the selection response computation. | ||
| # If ``input_pz: false``, a shear_tomography_classifier pickle + | ||
| # spectroscopic_catalog are required (see pipeline.yml inputs). | ||
| input_pz: true | ||
| true_z: false | ||
| verbose: True | ||
| chunk_rows: 100000 | ||
|
|
||
| TXShearCalibration: | ||
| shear_catalog_type: anacal | ||
| subtract_mean_shear: true | ||
| chunk_rows: 100000 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # AnaCal ingest — runs TXIngestAnacal only. Writes the shear catalog | ||
| # into ``data/example/anacal_inputs`` which is then consumed by | ||
| # ``examples/anacal/pipeline.yml``. | ||
|
|
||
| stages: | ||
| - name: TXIngestAnacal | ||
|
|
||
| output_dir: data/example/anacal_inputs | ||
|
|
||
| launcher: | ||
| name: mini | ||
| interval: 1.0 | ||
|
|
||
| site: | ||
| name: local | ||
|
|
||
| modules: > | ||
| txpipe | ||
|
|
||
| config: examples/anacal/config.yml | ||
|
|
||
| inputs: | ||
| # Butler-mode ingest doesn't read this FITS, but ceci requires every | ||
| # declared input to have a path — pointed at the DP1-v3 published | ||
| # per-field catalog to satisfy the graph builder. | ||
| anacal_catalog: /global/cfs/cdirs/desc-wl/projects/anacal/DP1-v3/catalogs/anacal_catalog_a360.fits | ||
|
|
||
| resume: False |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # AnaCal selector + calibrator pipeline — reads the shear catalog produced | ||
| # by ``examples/anacal/ingest.yml``. | ||
|
|
||
| stages: | ||
| - name: TXSourceSelectorAnaCal | ||
| - name: TXShearCalibration | ||
|
|
||
| output_dir: data/example/output_anacal | ||
|
|
||
| launcher: | ||
| name: mini | ||
| interval: 1.0 | ||
|
|
||
| site: | ||
| name: local | ||
| max_threads: 2 | ||
|
|
||
| modules: > | ||
| txpipe | ||
|
|
||
| config: examples/anacal/config.yml | ||
|
|
||
| inputs: | ||
| shear_catalog: data/example/anacal_inputs/shear_catalog.hdf5 | ||
|
|
||
| # Selector-side inputs. With ``input_pz: true`` in config.yml the | ||
| # selector reads ``mean_z`` from the shear catalog (populated by | ||
| # TXIngestAnacal from ``zmode_0``), so these two are only exercised | ||
| # under ``input_pz: false`` (random-forest tomography). Kept here to | ||
| # satisfy the ceci graph builder — ceci checks every declared input | ||
| # has a path, even when the stage doesn't open it. | ||
| spectroscopic_catalog: /pscratch/sd/x/xiangchl/data/DP1/catalogs/spec_catalog_a360.hdf5 | ||
| shear_tomography_classifier: /pscratch/sd/x/xiangchl/data/DP1/catalogs/shear_tomography_classifier_a360.pkl | ||
|
|
||
| resume: False |
Uh oh!
There was an error while loading. Please reload this page.