Пример #1
0
# 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
tplot('mms4_fgm_b_gsm_brst_l2')

tplot(['mms4_fgm_b_gsm_brst_l2', 'mms4_edp_dce_gse_brst_l2'])

# change the plot metadata
from pytplot import options
Пример #2
0
 def test_load_spdf_data(self):
     data = mms_load_aspoc(trange=['2015-10-16', '2015-10-16/01:00'],
                           spdf=True)
     self.assertTrue(data_exists('mms1_aspoc_ionc_l2'))
Пример #3
0
 def test_load_suffix(self):
     data = mms_load_aspoc(trange=['2015-10-16', '2015-10-16/01:00'],
                           suffix='_test')
     self.assertTrue(data_exists('mms1_aspoc_ionc_l2_test'))
Пример #4
0
 def test_load_default_data(self):
     data = mms_load_aspoc(trange=['2015-10-16', '2015-10-16/01:00'])
     self.assertTrue(data_exists('mms1_aspoc_ionc'))