Note
Click here to download the full example code
A short example showing how to import and plot plasma data.
Out:
Index(['B instrument', 'Bx', 'By', 'Bz', 'sigma B', 'Ion instrument', 'Status',
'Tp_par', 'Tp_perp', 'carrot', 'r_sun', 'clat', 'clong',
'earth_he_angle', 'n_p', 'vp_x', 'vp_y', 'vp_z', 'vth_p_par',
'vth_p_perp'],
dtype='object')
from datetime import datetime, timedelta
import heliopy.data.helios as helios
import matplotlib.pyplot as plt
starttime = datetime(1976, 4, 5, 0, 0, 0)
endtime = starttime + timedelta(hours=12)
probe = '2'
data = helios.corefit(probe, starttime, endtime)
print(data.keys())
fig, axs = plt.subplots(3, 1, sharex=True)
axs[0].plot(data['n_p'])
axs[1].plot(data['vp_x'])
axs[1].plot(data['vp_y'])
axs[1].plot(data['vp_z'])
axs[2].plot(data['Tp_perp'])
axs[2].plot(data['Tp_par'])
for ax in axs:
ax.legend()
plt.show()
Total running time of the script: ( 0 minutes 6.084 seconds)