Example #1
0
 def test_load_ion_omni(self):
     del_data('*')
     data = mms_load_hpca(trange=['2016-10-16/5:00', '2016-10-16/6:00'], datatype='ion')
     mms_hpca_calc_anodes(fov=[0, 360], probe='1')
     mms_hpca_spin_sum()
     self.assertTrue(data_exists('mms1_hpca_hplus_flux_elev_0-360_spin'))
     self.assertTrue(data_exists('mms1_hpca_heplus_flux_elev_0-360_spin'))
     self.assertTrue(data_exists('mms1_hpca_heplusplus_flux_elev_0-360_spin'))
     self.assertTrue(data_exists('mms1_hpca_oplus_flux_elev_0-360_spin'))
Example #2
0
 def test_load_ion_omni_suffix(self):
     del_data('*')
     data = mms_load_hpca(
         probe=2,
         trange=['2016-08-09/09:10', '2016-08-09/10:10:00'],
         datatype='ion',
         data_rate='brst',
         suffix='_brst')
     mms_hpca_calc_anodes(fov=[0, 360], probe=2, suffix='_brst')
     mms_hpca_spin_sum(probe=2, suffix='_brst', avg=True)
     self.assertTrue(
         data_exists('mms2_hpca_hplus_flux_brst_elev_0-360_spin'))
Example #3
0
from pyspedas import mms_load_hpca
from pyspedas.mms.hpca.mms_hpca_calc_anodes import mms_hpca_calc_anodes
from pyspedas.mms.hpca.mms_hpca_spin_sum import mms_hpca_spin_sum
from pytplot import get_data

probe = '1'

mms_load_hpca(datatype='ion', probe=probe, trange=['2016-10-16', '2016-10-17'])
mms_hpca_calc_anodes(fov=[0, 360], probe=probe)
mms_hpca_spin_sum(probe=probe)

t, d, e = get_data('mms1_hpca_hplus_flux_elev_0-360_spin')

print(t[0:10].round(6).tolist())

print(d[0, :].round(6).tolist())

print(d[1000, :].round(6).tolist())

print(d[2000, :].round(6).tolist())

print(d[3000, :].round(6).tolist())

print(d[4000, :].round(6).tolist())

print(d[5000, :].round(6).tolist())

print(d[6000, :].round(6).tolist())

print(d[7000, :].round(6).tolist())