Skip to content

A mini-project aimed to estimate Hubble's constant via photometric redshift through a CNN & a visualizer through ManimGL in Python.

License

Notifications You must be signed in to change notification settings

Hubble-Vision/HubbleVision

Repository files navigation

HubbleVision

Estimating Hubble's constant (H₀) via photometric redshift through a CNN & a visualizer through ManimGL in Python.

This project was submitted as a final project for Physics 20B - Cosmology: Humanity's Place in the Universe at the University of California, Irvine.

HubbleVision.mp4

How To Run

Clone the Repository

git clone https://github.com/sidsun1/HubbleVision.git
cd HubbleVision

Set up a Virtual Environment

Ensure that Python 3.12 is used for the virtual environment.

python -m venv venv
# Windows
venv\Scripts\activate
# Mac/Linux
source venv/bin/activate

pip install -r requirements.txt

Run the download_sdss_images.py Script

Simply click play on the module, or run it with

python -m download_sdss_images.py

Run the Notebook

Click run all in the Jupyter notebook interface in the file redshift_cnn.ipynb.

Run the Manim Animations

Play the video files in the videos subdirectory, or run the commands:

python -m manimlib hubble_scene.py HubbleIntro -w --uhd
python -m manimlib hubble_scene.py HubbleLawComparison -w --uhd
python -m manimlib hubble_scene.py RedShiftScene -w --uhd

Citations (Tools and References Used)

Tools

References

About

A mini-project aimed to estimate Hubble's constant via photometric redshift through a CNN & a visualizer through ManimGL in Python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published