PyPLUTO

From Arbeitsgruppe Kuiper
Revision as of 13:46, 19 March 2024 by Arthur (talk | contribs) (Added instruction to install pypluto and how to read data using it)
Jump to navigation Jump to search

... exists in different versions from different sources:

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 pp
  • wdir='/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