processmcrat

The ProcessMCRaT library is a python package that can be used to process the output of the MCRaT code.


Keywords
astronomy, radiation-transfer, hydrodynamics
License
MIT
Install
pip install processmcrat==2.0.3

Documentation

Contributors Forks Stargazers Issues MIT License
Google Scholar Badge ResearchGate Badge Binder


Logo

The ProcessMCRaT Library

The ProcessMCRaT library is a python package that can be used to process the output of the MCRaT code.
Explore the docs »

Report Bug · Request Feature

Table of Contents

  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgements

About The Project

The ProcessMCRaT package allows for the outputs of the MCRaT simulations to be processed in a number of different ways. The package allows the user to quickly analyze the MCRaT simulation by conveniently creating a number of mock observations for a variety of observer viewing angles and then use those observations to calculate spectra, light curves, and polarizations. The package also includes convenience plotting functions that allow quick, convenient plotting of these various quantities to fully explore the MCRaT results. These functions are also meant to be examples of how to work with the outputs of the ProcessMCRaT library. Additionally, the package also includes support for analyzing the position of photons in a given hydrodynamic simulation, allowing for analysis of hydrodynamic structures and mock observables at the same time.

There is also a Jupyter notebook that is included on Github that outlines the usage of the library, and many functionalities that the library offers. This notebook can be accessed by cloning the repository or loading the notebook in Binder (see the Usage section). The detailed documentation for each function is still under development, but the Jupyter notebook covers the ways that each function can be used.

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

The following are necessary to use the ProcessMCRaT code :

  • The output of a MCRaT simulation
  • Python -- we recommend installing Python 3 using Anaconda
    • Necessary packages under Python are numpy, scipy, matplotlib, h5py, pickle, tables and random -- many of these will be included in the base installation if using Anaconda and those that are not can easily be installed using the conda command line interface

Installation

  1. Use pip install
    pip install ProcessMCRaT
  2. Test the installation by running python -c "import processmcrat as pm" or by trying the Jupyter documentation notebook included in the github
    • To gain access to the Jupyter notebook, either clone the repo with git clone https://github.com/parsotat/ProcessMCRaT.git and run Jupyter notebook at the comand line in the notebooks directory

Usage

The typical steps in using the ProcessMCRaT library is shown in the included Jupyter notebook, with explainations of the many functions that are included in the package. To access the notebook, either:

Roadmap

  1. The code will include the means to include various instrument response functions in the creation of mock observed light curves, spectra, and polarizations.

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Tyler Parsotan - Personal Website - parsotat@umbc.edu

Project Link: https://github.com/parsotat/ProcessMCRaT

Acknowledgements