Skip to content

time_series_overview

Stack many epochs of the same target into one master spectrum and render a dynamic-spectrum heatmap, a 3D surface and an animated frame-by-frame view — the three complementary visualisations of spectral variability.

Kind analysis
Status reference - reviewed and adopted as the reference way to make this measurement
Version 1.0.0
Source bundled

Variables

This recipe declares no variables: it runs as is.

Steps

# Algorithm Parameters
1 stack_spectra Stack spectra (median, robust) method='median'
2 plot_dynamic_spectrum Dynamic spectrum (heatmap) title='dynamic spectrum'
3 plot_3d_surface_plotly 3D surface title='stacked spectra — 3D surface'
4 plot_animation_plotly Animation across epochs title='stacked spectra — animation'

Run it

spectro pipeline time_series_overview --input spectrum.fits
spectro preset show time_series_overview      # variables and steps
from spectro_kernel import WorkContext
from spectro_kernel.pipeline import PipelineBuilder

pipeline = PipelineBuilder().from_preset("time_series_overview").build()
result = pipeline.execute(ctx)        # ctx holds the spectrum / frames
print(result.history[-1])             # pipeline:<name> vX.Y.Z + variables
{
  "tool": "run_preset",
  "arguments": {
    "session_id": "<session_id>",
    "preset_name": "time_series_overview"
  }
}