suncasa.eovsa.eovsa_flarelist

Attributes

EO_WIKI_URLs

Functions

fetch_flare_data_from_wiki(eo_wiki_urls, ...)

Fetches flare data from the given wiki URL and saves it to a CSV file in the specified directory.

rd_datfile(file)

Read EOVSA binary spectrogram file and return a dictionary with times

moving_average(data, window_size)

get_eoflarelist([timerange, work_dir, file_out])

Get eovsa flarelist from given timerange.

run_eoflare_pipeline([flarelist_csv, to_web])

Module Contents

suncasa.eovsa.eovsa_flarelist.EO_WIKI_URLs = ['https://www.ovsa.njit.edu/wiki/index.php/2017',...[source]
suncasa.eovsa.eovsa_flarelist.fetch_flare_data_from_wiki(eo_wiki_urls, given_date_strp, outcsvfile)[source]

Fetches flare data from the given wiki URL and saves it to a CSV file in the specified directory.

Parameters: - eo_wiki_url: URL of the EO wiki page to fetch data from. - given_date_strp: A tuple of datetime objects specifying the start and end dates to filter the data. - outcsvfile: path to the resulting CSV file.

Returns: - None

suncasa.eovsa.eovsa_flarelist.rd_datfile(file)[source]

Read EOVSA binary spectrogram file and return a dictionary with times in Julian Date, frequencies in GHz, and cross-power data in sfu.

Return Keys:

‘time’ Numpy array of nt times in JD format ‘fghz’ Numpy array of nf frequencies in GHz ‘data’ Numpy array of size [nf, nt] containing cross-power data

Returns empty dictionary ({}) if file size is not compatible with inferred dimensions

suncasa.eovsa.eovsa_flarelist.moving_average(data, window_size)[source]
suncasa.eovsa.eovsa_flarelist.get_eoflarelist(timerange=None, work_dir='./', file_out='EOVSA_flare_list_from_wiki_sub.csv')[source]

Get eovsa flarelist from given timerange. On pipeline or ovsa server.

Parameters: timerange:

Example: final_csv_file = get_eoflarelist(timerange=[“2024-01-01 20:00:00”, “2024-01-01 21:00:00”])

suncasa.eovsa.eovsa_flarelist.run_eoflare_pipeline(flarelist_csv=None, to_web=True)[source]