• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

spedas / pyspedas / 10149139891

29 Jul 2024 05:41PM UTC coverage: 83.244% (-0.04%) from 83.28%
10149139891

push

github

nickssl
Added empty init.py files to some directories that did not have one

32172 of 38648 relevant lines covered (83.24%)

0.83 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/pyspedas/mth5/examples/load_fdsn_example.py
1
# Load and show tplot variable created using load_fdsn
2

3
from pyspedas.mth5.load_fdsn import load_fdsn
×
4
import pytplot
×
5
import numpy as np
×
6

7
load_fdsn(network="4P", station="ALW48", trange=['2015-06-22', '2015-06-24'])
×
8
pytplot.tplot('fdsn_4P_ALW48')
×
9

10
# Get data
11
time, mag = pytplot.get_data('fdsn_4P_ALW48')
×
12

13
# Re-normalize magnetometer data removing the baseline
14
mag -= np.mean(mag, axis=0)
×
15

16
pytplot.store_data('fdsn_4P_ALW48_norm', data={'x': time, 'y':mag})
×
17

18
# Plot
19
pytplot.tplot('fdsn_4P_ALW48_norm')
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc