COSMIC (Cluster Optical Search using Machine Intelligence in Catalogs) is a galaxy cluster finding algorithm that utilizes machine learning techniques.
This project selects a 1 square degree region from the SDSS for testing the code.
data/: Contains test data and background galaxy data.model/: Contains the XGBoost model for BCG classification and the ResNet model for richness estimation.output/: Stores program output data, including candidate BCGs inBCG_cand.fits, detected clusters incluster.fits, and other necessary data.source/: Contains the source code.
The project requires the following Python packages:
astropy==4.3.1functions==0.7.0h5py==3.7.0matplotlib==3.5.3numpy==1.21.6pandas==1.2.0scikit-learn==0.24.2scipy==1.6.2torch==1.7.1+cu110torchvision==0.8.2+cu110xgboost==1.4.2
Note: Ensure you are using a Python environment compatible with these package versions. You can install these dependencies using the provided
requirements.txtfile:
pip install -r requirements.txtTo execute the program, run:
cd source
python3 run.py