Skip to main content

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)

  1. Clone the repository:

    git clone https://github.com/arunmathewofficial/NebulaPy.git
    cd NebulaPy
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. 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:
      export XUVTOP=$HOME/MY_CHIANTI_DIRECTORY
      
      Then, reload your .bashrc:
      source ~/.bashrc
      
  4. 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 /lib to the path.
  5. Install NebulaPy:

    pip install .
    
  6. To download the database:

    • Run the following command from the NebulaPy root directory:
      download-database [destination_path]
      
    • This requires ~270 MB of additional space.
  7. Add environmental variable for NebulaPy Database

    • Add the following environmental variable to your .bashrc:
      export NEBULAPYDB=$HOME/MY_NEBULAPY_DATABASE_DIRECTORY
      
      Then, reload your .bashrc:
      source ~/.bashrc
      

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

NebulaPy-1.0.0b0.tar.gz (23.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

NebulaPy-1.0.0b0-py3-none-any.whl (23.3 MB view details)

Uploaded Python 3

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

Hashes for NebulaPy-1.0.0b0.tar.gz
Algorithm Hash digest
SHA256 925dbca3db0d57c7f2b6d609ae9c3d7a5a0ce77483a24ef2e745904db965ec1c
MD5 d89a3ee6f877dd9897196e22659427c5
BLAKE2b-256 ae628bd6cf724824b65213a5d290e4d998d104659488ca22e40124bcb0ceb380

See more details on using hashes here.

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

Hashes for NebulaPy-1.0.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 da7502b930146431465a64b41d761b0c2018eb8704a5b64f3f898576f35e353e
MD5 490a72c1722470d37aca9104e9c1f1cc
BLAKE2b-256 0147e7887ed33049a2e7290e8def7cd288d1f84aff45977c087e707f7f731b8e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page