vlaplex/scripts_python/readPhi.py
2024-09-27 17:56:03 +02:00

16 lines
367 B
Python

import pandas
def read(filename):
# Get time
df = pandas.read_csv(filename,skiprows=0,nrows=1)
time = df['t (s)'].to_numpy()[0]
df = pandas.read_csv(filename,skiprows=2)
x = df['r (m)'].to_numpy()
phi = df['phi (V)'].to_numpy()
E = df['E (V m^-1)'].to_numpy()
n_e = df['n_e (m^-3)'].to_numpy()
return time, x, phi, E, n_e