Exemplo n.º 1
0
 def test_load_extof_suffix(self):
     data = mms_load_eis(trange=['2015-10-16/13:06', '2015-10-16/13:07'],
                         data_rate='brst',
                         datatype='extof',
                         suffix='_test')
     self.assertTrue(
         data_exists('mms1_epd_eis_brst_extof_proton_flux_omni_test'))
Exemplo n.º 2
0
 def test_load_phxtof_spdf(self):
     data = mms_load_eis(trange=['2015-10-16/13:06', '2015-10-16/13:07'],
                         datatype='phxtof',
                         data_rate='brst',
                         spdf=True)
     self.assertTrue(
         data_exists('mms1_epd_eis_brst_phxtof_proton_flux_omni'))
Exemplo n.º 3
0
# save the B-field vector
store_data('b_vector', data={'x': times, 'y': fgm_data[:, 0:3]})
# save the B-field magnitude
store_data('b_mag', data={'x': times, 'y': fgm_data[:, 3]})

# the keywords are very flexible, e.g.,
from pyspedas.mms import mms_load_hpca, mms_load_eis, mms_load_feeps, mms_load_aspoc

# specify multiple probes as integers, and multiple datatypes
mms_load_hpca(probe=[1, 2, 4],
              data_rate='brst',
              datatype=['moments', 'ion'],
              trange=['2015-10-16/13:06', '2015-10-16/13:07'])

mms_load_eis(probe='4',
             data_rate='brst',
             datatype=['phxtof', 'extof'],
             trange=['2015-10-16/13:06', '2015-10-16/13:07'])
mms_load_feeps(get_support_data=True,
               probe=2,
               data_rate=['srvy', 'brst'],
               trange=['2015-10-16/13:06', '2015-10-16/13:07'])
mms_load_aspoc()
''' ==========================================================================

Plotting MMS Data in Python

========================================================================== '''

from pytplot import tplot

# like in IDL, pyTplot supports strings, lists of strings, as well as tplot variable #s
Exemplo n.º 4
0
 def test_load_phxtof_data(self):
     data = mms_load_eis(trange=['2015-10-16', '2015-10-16/01:00'], datatype='phxtof')
     self.assertTrue(data_exists('mms1_epd_eis_phxtof_proton_flux_omni'))