suncasa.dspec.sources.ecallisto

Functions

get_dspec(filenames[, doplot, vmax, vmin, norm, cmap])

Read one or more e-Callisto spectrogram FITS files and return a combined spectrogram dictionary.

Module Contents

suncasa.dspec.sources.ecallisto.get_dspec(filenames, doplot=False, vmax=None, vmin=None, norm=None, cmap='viridis')[source]

Read one or more e-Callisto spectrogram FITS files and return a combined spectrogram dictionary. Optionally display a quicklook plot.

Parameters:
  • filenames (str or list of str) – Path(s) to e-Callisto FITS file(s).

  • doplot (bool) – Whether to plot the dynamic spectrum.

  • vmax (float) – Color scale limits.

  • vmin (float) – Color scale limits.

  • norm (matplotlib.colors.Normalize) – Custom normalization for the color scale.

  • cmap (str or colormap) – Colormap name or object.

Returns:

{

‘spectrogram’: 2D array [nfreq, total_ntimes], ‘spectrum_axis’: 1D array of frequencies [MHz], ‘time_axis’: 1D array of MJD values

}

Return type:

dict