ajylla / SPOT

Solar Particle Onset Tool
1 stars 4 forks source link

Add SOHO/ERNE-HET functionality #8

Closed jgieseler closed 2 years ago

jgieseler commented 2 years ago

This PR adds functionality for SOHO/ERNE-HET and fixes some flake8 linting.

Requires soho-loader from June 16th or newer! Install with: pip install git+https://github.com/jgieseler/soho-loader

ERNE doesn't provide electrons, so they will not be available (i.e., species only 'p'). data_level is always 'l2'.

Example on how to run:

from functions import *
path = '/home/gieseler/uni/soho/data'

event_onset = Event(spacecraft='soho', sensor='erne', data_level='l2', species='p', 
                    start_date=datetime.date(2021,10,28),
                    end_date=datetime.date(2021,10,29), data_path=path)

# print energy channels:
print(event_onset.current_energies['channels_dict_df_p'])

event_onset.analyse(viewing='', bg_start=0, bg_length=5, channels=[3,4], resample_period='1min', 
                    yscale='log', cusum_window=30)