|
34 | 34 | warnings.simplefilter(action='ignore', category=pd.errors.PerformanceWarning) |
35 | 35 |
|
36 | 36 |
|
37 | | -""" |
38 | | -Example code that loads low latency (ll) electron and proton (+alphas) fluxes |
39 | | -(and errors) for 'ept' 'north' telescope from Apr 15 2021 to Apr 16 2021 into |
40 | | -two Pandas dataframes (one for protons & alphas, one for electrons). In general |
41 | | -available are 'sun', 'asun', 'north', and 'south' viewing directions for 'ept' |
42 | | -and 'het' telescopes of SolO/EPD. |
43 | | -
|
44 | | -from solo_epd_loader import * |
45 | | -
|
46 | | -df_protons, df_electrons, energies = \ |
47 | | -_read_epd_cdf('ept', 'north', 'll', 20210415, 20210416, |
48 | | -path='/home/userxyz/solo/data/') |
49 | | -
|
50 | | -# plot protons and alphas |
51 | | -ax = df_protons.plot(logy=True, subplots=True, figsize=(20,60)) |
52 | | -plt.show() |
53 | | -
|
54 | | -# plot electrons |
55 | | -ax = df_electrons.plot(logy=True, subplots=True, figsize=(20,60)) |
56 | | -plt.show() |
57 | | -""" |
58 | | - |
59 | | -""" |
60 | | -Example code that loads level 2 (l2) electron and proton (+alphas) fluxes |
61 | | -(and errors) for 'het' 'sun' telescope from Aug 20 2020 to Aug 20 2020 into |
62 | | -two Pandas dataframes (one for protons & alphas, one for electrons). |
63 | | -
|
64 | | -from epd_loader import * |
65 | | -
|
66 | | -df_protons, df_electrons, energies = \ |
67 | | -_read_epd_cdf('het', 'sun', 'l2', 20200820, 20200821, |
68 | | -path='/home/userxyz/solo/data/') |
69 | | -
|
70 | | -# plot protons and alphas |
71 | | -ax = df_protons.plot(logy=True, subplots=True, figsize=(20,60)) |
72 | | -plt.show() |
73 | | -
|
74 | | -# plot electrons |
75 | | -ax = df_electrons.plot(logy=True, subplots=True, figsize=(20,60)) |
76 | | -plt.show() |
77 | | -
|
78 | | -""" |
79 | | - |
80 | | - |
81 | 37 | def custom_formatwarning(message, *args, **kwargs): |
82 | 38 | # ignore everything except the message |
83 | 39 | FAIL = '\033[91m' |
|
0 commit comments