No project description provided
Project description
NebulaPy
NebulaPy is a Python library designed to generate line luminosities from PION simulation data. It also facilitates energy binning of stellar atmosphere models, including ATLAS, Potsdam, and CMFGEN, across a wide range of metal abundances. These functionalities are tailored for radiative sources used in PION simulations.
Key Features
- Spectral Energy Distribution (SED) Binning:
- Supports binned SEDs from models like ATLAS, Potsdam, CMFGEN, and blackbody sources.
- Line Luminosity Calculations:
- Computes line luminosities for spherically symmetric geometries.
- 2D Cooling Function Maps:
- Generates 2D maps of cooling functions for astrophysical simulations.
- 2D Line Emissivity Maps:
- Creates 2D emissivity maps for various line transitions.
Installation and Setup (Linux: Debian/Ubuntu)
-
Clone the repository:
git clone https://github.com/arunmathewofficial/NebulaPy.git cd NebulaPy -
Install dependencies:
pip install -r requirements.txt -
Download and set up the CHIANTI database:
- Download the CHIANTI database (~1 GB) from: https://download.chiantidatabase.org/CHIANTI_10.1_database.tar.gz
- Extract it to a directory (~5 GB disk space required):
tar -xzf CHIANTI_10.1_database.tar.gz -C ~/MY_CHIANTI_DIRECTORY - Add the following environmental variable to your
.bashrc:
Then, reload yourexport XUVTOP=$HOME/MY_CHIANTI_DIRECTORY.bashrc:source ~/.bashrc
-
Install the Python-SILO interface:
- Run the provided script:
bash install_silo.sh - Fix the SILO library path in your local distribution:
- Open the file:
${HOME}/.local/venv/lib/python3.11/site-packages/pypion/SiloHeader_data.py - Modify line 18 to append
/libto the path.
- Open the file:
- Run the provided script:
-
Install NebulaPy:
pip install . -
To download the database:
- Run the following command from the NebulaPy root directory:
download-database [destination_path]
- This requires ~270 MB of additional space.
- Run the following command from the NebulaPy root directory:
-
Add environmental variable for NebulaPy Database
- Add the following environmental variable to your
.bashrc:
Then, reload yourexport NEBULAPYDB=$HOME/MY_NEBULAPY_DATABASE_DIRECTORY.bashrc:source ~/.bashrc
- Add the following environmental variable to your
Usage
For usage details, visit the NebulaPy Wiki: https://github.com/arunmathewofficial/NebulaPy/wiki
Sample Scripts
Sample scripts demonstrating NebulaPy functionalities can be found in the NebulaPy/problems directory.
Support
For bug reports and feature requests, visit the Issues section of the repository: https://github.com/arunmathewofficial/NebulaPy/issues
Badges
License: MIT (https://opensource.org/licenses/MIT)
PyPI: https://pypi.org/project/NebulaPy/
Author
Arun Mathew
Astronomy & Astrophysics
Computational and High Energy Astrophysics
Dublin Institute for Advanced Studies (DIAS), Ireland
Date: 2024
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file NebulaPy-1.0.0b0.tar.gz.
File metadata
- Download URL: NebulaPy-1.0.0b0.tar.gz
- Upload date:
- Size: 23.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
925dbca3db0d57c7f2b6d609ae9c3d7a5a0ce77483a24ef2e745904db965ec1c
|
|
| MD5 |
d89a3ee6f877dd9897196e22659427c5
|
|
| BLAKE2b-256 |
ae628bd6cf724824b65213a5d290e4d998d104659488ca22e40124bcb0ceb380
|
File details
Details for the file NebulaPy-1.0.0b0-py3-none-any.whl.
File metadata
- Download URL: NebulaPy-1.0.0b0-py3-none-any.whl
- Upload date:
- Size: 23.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da7502b930146431465a64b41d761b0c2018eb8704a5b64f3f898576f35e353e
|
|
| MD5 |
490a72c1722470d37aca9104e9c1f1cc
|
|
| BLAKE2b-256 |
0147e7887ed33049a2e7290e8def7cd288d1f84aff45977c087e707f7f731b8e
|