Processing steps of ShapePipe output catalogues carried out by the sp_validation package to produce science-ready catalogues are:
- Extract relevant information from a final
ShapePipeoutput catalogue per campaign; run basic diagnostic tests, create pre-calibration shear catalogues. - Merge pre-calibration catalogues created in the previous step, e.g. processed as individual campaigns, into one or more joint catalogues;
- Apply external area and footprint masks. These are the "structural" and the coverage masks.
- Create calibrated galaxy shear catalogue. This step includes the tasks:
a. Mask objects using flags and criteria inShapePipeoutput catalogues and external (e.g. mask) files;
b. Select a galaxy sample by applying selection criteria, e.g. on SNR or size;
c. Calibrate the shear estimates with themetacalibrationmethod, using the measured shapes and metacal information (sheared measurements) output byShapePipe.
These steps are carried out as follows:
This is performed (version > v1.4.1, < v2.0) with the python script scripts/calibration/extract_info.py.
This script creates three shear catalogues in FITS format:
- Basic catalogue containing positions, shapes (calibrated + PSF-leakage corrected), weights (DES), magnitude, campaign ID. Masking and galaxy selection are applied.
- Extended catalogue containing in addition uncalibrated shapes inverse-variance weights, shear response matrices, SNR, flux, size, PSF quantities. Masking and galaxy selection are applied.
- Comprehensive catalogue containing in addition
metacal information (measured sheared quantities), mask information (
shapepipepre-processing). Masking and galaxy selection is not applied. This catalogue does not contain calibrated shear estimates, since the calibration is carried out after applying masking and selection.
This is the main output catalogue that will be processed further.
This step is carried out per campaign. Parameters have to be set via the python configuration file params.py (template at scripts/calibration/params.py).
The per-campaign comprehensive catalogues extracted in the previous step are merged using the script scripts/calibration/create_joint_comprehensive_cat.py, which is a front-end
of the sp_validation library class catalog_builders:JointCat.
The structural and coverage masks are added with scripts/calibration/demo_apply_hsp_masks.py (built on the library file run_calibrate_joint.py).
The steps of masking, galaxy sample selection, and calibration are carried out jointly using the script
scripts/calibration/calibrate_comprehensive_cat.py.
Masking parameters have to be set via a configuration file config_mask.yaml. Examples can be found in sp_validation/config/calibration.