Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pratikpaudel/astro-data-analysis
https://github.com/pratikpaudel/astro-data-analysis
Last synced: 30 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pratikpaudel/astro-data-analysis
- Owner: PratikPaudel
- Created: 2024-11-03T03:54:17.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-21T03:37:47.000Z (about 2 months ago)
- Last Synced: 2024-11-21T04:19:27.499Z (about 2 months ago)
- Language: Python
- Size: 764 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Data Analysis and Plotting Project
This project contains various scripts for data analysis and plotting using Python. The scripts utilize libraries such as `numpy`, `matplotlib`, and `scipy` to perform different types of data analysis and generate visualizations.
## Scripts Overview
### `1_muv_halpha_analysis.py`
Analyzes MUV and H-alpha data and generates a plot with error bars.### `2_function_plotting.py`
Contains functions to plot various mathematical functions including quadratic, cubic, logarithmic, and trigonometric functions.### `3_spectral_fitting.py`
Performs spectral data analysis and fits a linear function to the data.### `4_eddington_analysis.py`
Analyzes Eddington ratios and extinctions, and generates a scatter plot with a correlation coefficient calculation.### `5_density_comparison.py`
Compares density data from different sources and generates contour plots.### `6_density_plotting_2d.py`
Generates a 2D density plot from normally distributed random data using Kernel Density Estimation (KDE).## Installation
1. Clone the repository:
```sh
git clone https://github.com/PratikPaudel/your-repo-name.git
cd your-repo-name
```2. Create a virtual environment and activate it:
```sh
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
```3. Install the required dependencies:
```sh
pip install -r requirements.txt
```## Usage
Run any of the scripts directly using Python. For example, to run the MUV and H-alpha analysis script:
```sh
python scripts/1_muv_halpha_analysis.py