PyPLUTO
Jump to navigation
Jump to search
... exists in different versions from different sources:
- https://github.com/bellatrics/pyPLUTO, alpha state from 2011, don't use
- https://github.com/coolastro/pyPLUTO, version 1.0 from 2012, don't use
- https://gitlab.mpcdf.mpg.de/sdoetsch/pypluto, modified version 4.4, maintained until 2022 ← use ''this''
To install:
- Grab the files off of gitlab and unzip them into a local folder
- Inside the extracted folder enter your python environment (e.g. conda) and enter the command
python3 setup.py install
To load data:
import pyPLUTO.pload as ppwdir='/path/to/data/files'data=pp.pload(timestep (e.g. 1), w_dir=wdir)
Now 'data' contains all the information of the given timestep. To call a specific variable you can use data.x1 to get a numpy array of all values of the variable x1 in that timestep.
Note: For versions < 4.1: Replace import pyPLUTO.pload as pp with import pyPLUTO as pp