irfpy.imacommon.ql.panels

A collection of axis methods.

irfpy.imacommon.ql.panels.axis_etdiagram(etbl, data2d, azim=None, ax=None, vmin=0.1, vmax=100.0)[source]

From given 2D data, ET diagram is plotted.

import matplotlib.pyplot as plt
plt.ion()
from irfpy.mima.ql import panels
import irfpy.mima.scidata_util as msu

import datetime
t0 = datetime.datetime(2016, 1, 1, 20)
t1 = datetime.datetime(2016, 1, 1, 22)
msu.getarray2d(t0, t1)
arr2d = msu.getarray2d(t0, t1, emulate_full=True)

from irfpy.mima import energy
energy.get_default_table_v5_late()
etbl = energy.get_default_table_v5_late()

ax, img = panels.axis_etdiagram(etbl, arr2d)
ax.set_xlabel('UT')
ax.set_ylabel('Energy [eV]')

clb = plt.colorbar(img)
clb.set_label('Counts [Az: sum(0-15)]')

plt.show()
irfpy.imacommon.ql.panels.axis_etdiagram_max(etbl, data2d, azim=None, ax=None, vmin=0.1, vmax=100.0)[source]

From given 2D data, ET diagram is plotted. Take the maximum counts for the specific bin over the given azimuth channel.

import matplotlib.pyplot as plt
plt.ion()
from irfpy.mima.ql import panels
import irfpy.mima.scidata_util as msu

import datetime
t0 = datetime.datetime(2016, 1, 1, 20)
t1 = datetime.datetime(2016, 1, 1, 22)
msu.getarray2d(t0, t1)
arr2d = msu.getarray2d(t0, t1, emulate_full=True)

from irfpy.mima import energy
energy.get_default_table_v5_late()
etbl = energy.get_default_table_v5_late()

ax, img = panels.axis_etdiagram_max(etbl, arr2d)
ax.set_xlabel('UT')
ax.set_ylabel('Energy [eV]')

clb = plt.colorbar(img)
clb.set_label('Counts [Az: max(0-15)]')

plt.show()