Skip to content

emresezer/Cosmic-Redshift-Distance-Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

🌌 Cosmic-Redshift-Distance-Tracker

Python-based tool for calculating cosmic redshift and astronomical distances


🎯 Purpose & Scope

Cosmic-Redshift-Distance-Tracker is a Python project that calculates and visualizes the relationship between cosmic redshift (z) and astronomical distances. This tool is intended for students, researchers, and enthusiasts in cosmology to understand universe expansion and estimate distances to distant celestial objects.

  • Calculate redshift (z) from observed spectral data using relativistic Doppler formula.
  • Compute various cosmological distances: comoving distance, luminosity distance, and light travel distance.
  • Visualize redshift-distance relationships.
  • Optional bilingual graph outputs (Turkish / English).

🧩 Project Structure

📁 Cosmic-Redshift-Distance-Tracker/
│
├── tracker.py          → English script: calculates redshift and distances, produces graphs
├── tracker.py          → Turkish script: calculates redshift and distances, produces graphs
└── README.md           → This file

⚙️ Installation & Usage

  1. Make sure you have Python 3.x installed.
  2. Install dependencies:
    pip install numpy matplotlib
  3. Run the tracker:
    python tracker.py
  4. Graphs are saved as .png files and displayed automatically.

🧮 Scientific Background

• Redshift Calculation

Redshift is computed using the standard relativistic Doppler formula:

z = (λ_observed - λ_emitted) / λ_emitted

where:

  • λ_observed: wavelength measured at Earth
  • λ_emitted: wavelength emitted by the source

• Cosmological Distance Calculations

Distances are computed based on standard cosmology:

  • Comoving Distance:
    D_C = c ∫(0 → z) dz' / H(z')
  • Luminosity Distance:
    D_L = (1 + z) · D_C
  • Light Travel Distance:
    D_T = ∫(0 → z) c dz' / H(z')

where H(z) is the Hubble parameter at redshift z, and c is the speed of light.


📊 Visualization

The script generates plots of redshift vs. distance. Users can easily compare different cosmological models and visualize how the universe’s expansion affects observed distances.


🌐 Resources

About

Calculating cosmic redshift and distance using Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages