<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.uni-due.de/agk/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Arthur</id>
	<title>Arbeitsgruppe Kuiper - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.uni-due.de/agk/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Arthur"/>
	<link rel="alternate" type="text/html" href="https://wiki.uni-due.de/agk/index.php?title=Special:Contributions/Arthur"/>
	<updated>2026-04-04T10:49:32Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.10</generator>
	<entry>
		<id>https://wiki.uni-due.de/agk/index.php?title=PyPLUTO&amp;diff=160</id>
		<title>PyPLUTO</title>
		<link rel="alternate" type="text/html" href="https://wiki.uni-due.de/agk/index.php?title=PyPLUTO&amp;diff=160"/>
		<updated>2024-03-19T12:46:54Z</updated>

		<summary type="html">&lt;p&gt;Arthur: Added instruction to install pypluto and how to read data using it&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;... exists in different versions from different sources:&lt;br /&gt;
&lt;br /&gt;
* https://github.com/bellatrics/pyPLUTO, alpha state from 2011, don&#039;t use&lt;br /&gt;
* https://github.com/coolastro/pyPLUTO, version 1.0 from 2012, don&#039;t use&lt;br /&gt;
* https://gitlab.mpcdf.mpg.de/sdoetsch/pypluto, modified version 4.4, maintained until 2022 ← use &amp;lt;nowiki&amp;gt;&#039;&#039;this&#039;&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To install: &lt;br /&gt;
&lt;br /&gt;
* Grab the files off of gitlab and unzip them into a local folder&lt;br /&gt;
* Inside the extracted folder enter your python environment (e.g. conda) and enter the command &amp;lt;code&amp;gt;python3 setup.py install&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To load data:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;import pyPLUTO.pload as pp&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;wdir=&#039;/path/to/data/files&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;data=pp.pload(timestep (e.g. 1), w_dir=wdir)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now &#039;data&#039; contains all the information of the given timestep. To call a specific variable you can use &amp;lt;code&amp;gt;data.x1&amp;lt;/code&amp;gt; to get a numpy array of all values of the variable x1 in that timestep.&lt;br /&gt;
&lt;br /&gt;
Note: For versions &amp;lt; 4.1: Replace &amp;lt;code&amp;gt;import pyPLUTO.pload as pp&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;import pyPLUTO as pp&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Arthur</name></author>
	</entry>
</feed>