CME Solar Flares
Make solar drift plots and annotate CMEs.
This script plots solar drift (angle + time) per station, annotates CMEs that overlap the observation times (CACTus), and appends matches to a spreadsheet with persistent clickable hyperlinks across runs.
Outputs (defaults)
Plots →
/home/jovyan/shared/auto_solar_drift_check/cme_flares_cands/<DATE>/Spreadsheet Columns: date, time, stations, t0, dt0, CME number, CME link (hyperlinked)
You can override the output root with --output-root.
- ska_sci_ops_data_analysis.cme_solar_flares.make_plots_for_date_range(start_date: str, end_date: str, *, base_glob: str = '/home/jovyan/shared/test_executions/AcquireBeamformed/multiple_{date}_*/*/*.hdf5', annotate_cmes: bool = True, srd_flux_col: int = 1, srd_max_sfu: float = 20000.0, output_root: Path = PosixPath('/home/jovyan/shared/auto_solar_drift_check/cme_flares_cands'))
Generate solar drift plots for a contiguous range of UTC dates.
- Parameters:
start_date – Start date in
YYYY-MM-DDformat.end_date – End date in
YYYY-MM-DDformat.base_glob – Glob template used to locate input HDF5 files.
annotate_cmes – If
True, query and annotate CACTus CMEs.srd_flux_col – Zero-based index of SRD flux column after time.
srd_max_sfu – Maximum allowed SRD flux value in SFU.
output_root – Root directory for outputs.
- Raises:
ValueError – If date strings are invalid or range is reversed.
- Returns:
Dictionary with generated plot paths and output directories.
- Return type: