suncasa.eovsa.eovsa_flarelist
Attributes
Functions
|
Fetches flare data from the given wiki URL and saves it to a CSV file in the specified directory. |
|
Read EOVSA binary spectrogram file and return a dictionary with times |
|
|
|
Get eovsa flarelist from given timerange. |
|
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.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”])