MEX ELS dataΒΆ

  1. Import the modules irfpy.mels.scidata and irfpy.mels.calpds.

from irfpy.mels import scidata as melsdata    # Science data
from irfpy.mels import calpds as melscal      # Calibration information
  1. Use following functions to get the data.

  1. Getting the energy

Use irfpy.mels.calpds.simple_energy_table for the simplest energy table.

ene_table = melscal.simple_energy_table    # (128,) array
print(ene_table)
# ->
# [  2.02963250e+04   1.86854999e+04   1.72085074e+04   1.58455004e+04
#    1.45915427e+04   1.34367108e+04   1.23710885e+04   1.13946903e+04
# ....
# ]

The channel dependent energy table (shape of (128, 16)) is obtained by irfpy.mels.calpds.energy_table.

ene_table_chdep = melscal.energy_table     # (128, 16) array
  1. How to convert from the count rate to the differential flux manually.

People can usually use the function irfpy.mels.scidata.get_dnf() to get the differential number flux of electrons.

Alternatively, to make the conversion from counts to differential flux, one may use the table at irfpy.mels.calpds.cnt2dnf.

Note

The above functions only support 128 energy step mode, not for 32 energy step mode.