pyspedas icon indicating copy to clipboard operation
pyspedas copied to clipboard

MMS EIS load routine example gives errors

Open jameswilburlewis opened this issue 1 year ago • 0 comments

In the README.md example for the MMS EIS instrument:

import pyspedas
from pytplot import tplot
eis_vars = pyspedas.mms.eis(trange=['2015-10-16', '2015-10-17'], datatype=['phxtof', 'extof'])

There are errors being logged:

08-Jan-24 10:50:42: Downloading mms1_epd-eis_srvy_l2_phxtof_20151016_v3.0.100.cdf to pydata/mms1/epd-eis/srvy/l2/phxtof/2015/10
08-Jan-24 10:51:01: Downloading mms1_epd-eis_srvy_l2_extof_20151016_v3.0.100.cdf to pydata/mms1/epd-eis/srvy/l2/extof/2015/10
08-Jan-24 10:51:24: The name mms1_epd_eis_srvy_l2_phxtof_proton_t0_energy_dminus_spin is currently not in pytplot
08-Jan-24 10:51:24: The name mms1_epd_eis_srvy_l2_phxtof_proton_t0_energy_spin is currently not in pytplot
08-Jan-24 10:51:24: The name mms1_epd_eis_srvy_l2_phxtof_proton_t0_energy_dplus_spin is currently not in pytplot
08-Jan-24 10:51:24: Problem calculating the spin-average for species: alpha (extof)
08-Jan-24 10:51:25: Error, problem finding the telescopes to calculate omni-directional spectrograms

Maybe there's a better date to use? Or perhaps this is related to the changes in variable names between CDF versions?

I had to change the tplot variables that were plotted in the original example:

# plot the non-spin averaged flux
tplot(['mms1_epd_eis_extof_proton_flux_omni', 'mms1_epd_eis_phxtof_proton_flux_omni'])

Current names have a 'srvy_l2' component:

# plot the non-spin averaged flux
tplot(['mms1_epd_eis_srvy_l2_extof_proton_flux_omni', 'mms1_epd_eis_srvy_l2_phxtof_proton_flux_omni'])

jameswilburlewis avatar Jan 08 '24 19:01 jameswilburlewis