Viewing the Data¶
-
pyPLUTO.
ploadparticles
¶ alias of
pyPLUTO.ploadparticles
To load the Particle datafile.
Inputs:
ns – Step Number of the data file
w_dir – path to the directory which has the data files
datatype – Datatype (default is set to read .dbl data files)
ptype – A string denoting the type of particles (‘LP’, ‘CR’, ‘DUST’ etc. Default is ‘CR’)
chnum – 2 digit integer denoting chunk number
(Only used if ptype = ‘LP’ to read particles.nnnn_chxx.dbl file, where nnnn is 4 digit integer denotong ns and xx is a 2 digit integer for chunk number : Default value is 0)
Outputs:
pyPLUTO ploadparticles object whose keys are arrays of particle data values.
For Example:
To load the particles.0210.flt file one can use the following set of commands
import pyPLUTO.ploadparticles as pr
P = pr.ploadparticles(210,datatype=’flt’)
And to load a Lagrangian particle data file with name particles.0001_ch01.dbl one needs to use the following command line after initial import
P = pr.ploadparticles(1,ptype=’LP’,chnum=1)