Source code of the suncasa——CASA-based Python package for reducing, analyzing, and visualizing solar dynamic spectroscopic imaging data at radio wavelengths
This update add the function to plot the OVSAS synoptic spectrogram. It simplifies the plotting of OVRO-LWA and EOVSA spectrograms, alongside STIX and GOES light curves, for specific timestamps or time ranges. The implementation is designed to require minimal inputs, allowing users to specify just a timestamp. It also has an interactive mode if you set the interactive parameter to True, which allows you to zoom in and out of the plot. As a SoD this week, I found it useful when identifying flare/CME events.
Key Features
Minimal Input: Requires only a timestamp or a time range to generate plots.
Data Fetching: Automatically downloads the latest GOES XRS data from NOAA's server if it's unavailable via Fido.
STIX Data Integration: Utilizes stixdcpy to fetch the latest STIX data.
Full Day Spectrograms: Incorporates full-day TP spectrograms from EOVSA (produced by eovsapy) and OVRO-LWA (produced by lwasolarview), typically available on the pipeline the day after observation.
Usage Examples
Below are a few examples demonstrating how to use the updated plotting tool:
Example 1: Plotting Synoptic Spectrogram for July 31, 2024 and Save the Figure in /data1/workdir/
from suncasa.utils import ovsas_spectrogram as ovsp
from datetime import datetime
ovsp.plot(datetime(2024, 7, 31), figdir='/data1/workdir/')
Example 2: Plotting for a Specific Time Interval and Save the Figure in /data1/workdir/
This update add the function to plot the OVSAS synoptic spectrogram. It simplifies the plotting of OVRO-LWA and EOVSA spectrograms, alongside STIX and GOES light curves, for specific timestamps or time ranges. The implementation is designed to require minimal inputs, allowing users to specify just a timestamp. It also has an interactive mode if you set the
interactive
parameter toTrue
, which allows you to zoom in and out of the plot. As a SoD this week, I found it useful when identifying flare/CME events.Key Features
Usage Examples
Below are a few examples demonstrating how to use the updated plotting tool:
Example 1: Plotting Synoptic Spectrogram for July 31, 2024 and Save the Figure in
/data1/workdir/
Example 2: Plotting for a Specific Time Interval and Save the Figure in
/data1/workdir/
Example 3: Plotting OVRO-LWA Spectrogram with full-Resolution