This is a code intended to identify and qualify galaxy clusters in large multi-band galaxy photometric surveys.
- 2 tilings of the sky - including overlaps
- wtiles for detection
- ptiles for characterization
- generate redshift slices
- computation of global survey quantities
- for each wtile
- loop over redshift slices for detection
- merge detections over slices
- refine redshift of detections
- concatenate detections over all tiles
- for each ptile
- loop over clusters:estimate richness and membership
- concatenate richnesses and membership
- merge detections and richnesses
The input galaxy catalogs are expected to be located in one directory as a list of fits files corresponding to a spatial partitioning based on Healpix with Nside=64. It can be nested of ring - this is specified in the data configuration file. Each file is named as #hpixel.fits
The associated masks/footprints are expected to follow the same structure and be named as #hpixel_footprint.fits. Note that there is also the option to have the footprint as a single file, which can be convenient for relatively small surveys.
These are described in the 'input_data_structure' section of the data config file.
The division of the sky in tiles offers an easy way to parallelize the code, which is now orchestrated by SLURM.
wazp_main generates and launches 4 sbatch scripts in array mode with dependencie:
- wazp_tile (step 4 in the workflow)
- wazp_concatenate (step 5)
- pmem_tile (step 6)
- pmem_concatenate (steps 7 and 8)
Create an environment with Conda:
conda create -n wazp python=3.11
conda activate wazp
conda install -c conda-forge cfitsio=3.430
conda install -c cta-observatory sparse2d
conda install -c conda-forge pip
Clone the repository:
git clone https://github.com/linea-it/wazp
Install WaZP with:
cd wazp/
python setup.py install
or
pip install wazp/
or, for developers
pip install -e wazp/
python [wazp/script path]/wazp_main.py wazp.cfg [wazp path]/data.cfg
Can be launched from anywhere. Outputs are written in the wazp.cfg file under -workdir- Make sure data.cfg describes your data and its location on disc.