This project analyzes spectroscopic redshift data of galaxies in a given field to estimate the dynamical mass of a galaxy cluster. The analysis includes data cleaning, visualization, velocity calculation, and mass estimation using astrophysical principles and observational data.
Skyserver_SQL6_22_2025 6_29_58 AM.csv: Raw catalog of galaxy data retrieved from SDSS SkyServer.code.py: Main Python script that performs the full analysis pipeline.
pandasfor data manipulationmatplotlib.pyplotfor plottingnumpyfor numerical operationsastropy.constantsandastropy.unitsfor physical constantsastropy.cosmologyfor cosmological model (Planck18)
- Read the CSV data.
- Aggregate by
objidto remove duplicates and get a single entry per galaxy.
- Compute the mean and standard deviation of spectroscopic redshift (
specz). - Apply a 3-sigma filter to isolate galaxies likely belonging to a cluster.
- Boxplot and histogram of redshift distribution.
- Histogram of velocity and angular separation.
- Convert redshift to expansion velocity using the relativistic formula.
- Calculate velocity dispersion.
- Compute average angular separation from the cluster center.
- Estimate physical diameter from redshift and separation.
- Apply virial theorem to estimate dynamical mass of the cluster.
- Cluster Redshift: Computed as the mean of filtered redshift values.
- Velocity Dispersion: Derived from relativistic redshift velocities.
- Dynamical Mass: Estimated using velocity dispersion and physical diameter.