Creates overlay visualizations of weak lensing data to show dark matter distribution relative to baryonic matter around galaxy clusters.
-
Set up environment:
conda env create -f visfits.yml
-
Edit file paths in
submission.sh:COADDPATH="/path/to/your/coadd.fits" EMODEPATH="/path/to/your/emode.fits"
-
Run:
sbatch submission.sh
-
Get your overlay:
ls outputs/ # -> galaxy_cluster_analysis_overlay.png
One overlay image showing:
- Gray regions: Baryonic matter (visible galaxies from coadd)
- Purple regions: Dark matter distribution (from E-mode reconstruction) One flow chart showing:
- Coadd image
- E-mode mass map
- Then the same overlay image
- Completed SuperBIT lensing pipeline (coadd FITS file)
- SMPy E-mode reconstruction (E-mode FITS file)
- SLURM cluster access
Edit these variables in submission.sh:
OUTPUT_NAME- Base name for output filesCOADD_ALPHA- Transparency of baryonic matter layer (0-1)EMODE_ALPHA- Transparency of dark matter layer (0-1)
Both files in the ./outputs/ directory.
This overlay reveals where dark matter is concentrated relative to visible matter.