parsnip.plot_sne_space
- parsnip.plot_sne_space(light_curve, model, name, min_wave=10000.0, max_wave=0.0, time_diff=0.0, min_time=-10000.0, max_time=100000.0, source=None, kernel=5, flux_scale=0.5, label_wave=9000.0, label_offset=0.2, figsize=(5, 6))
Compare a ParSNIP spectrum prediction to a real spectrum from sne.space
- Parameters:
light_curve (
Table) – Light curvemodel (
ParsnipModel) – ParSNIP Model to use for the predictionname (str) – Name of the light curve on sne.space
min_wave (float, optional) – Ignore any spectra that don’t have data bluer than this wavelength, by default 10000.
max_wave (float, optional) – Ignore any spectra that don’t have data redder than this wavelength, by default 0.
time_diff (float, optional) – Minimum time between spectra, by default 0.
min_time (float, optional) – Ignore any spectra before this time, by default -10000.
max_time (float, optional) – Ignore any spectra after this time, by default 100000.
source (str, optional) – Ignore any spectra not from this source, by default None
kernel (int, optional) – Smooth the spectra by a median filter kernel of this size, by default 5
flux_scale (float, optional) – Scale the flux by this amount, by default 0.5
label_wave (float, optional) – Show labels with the times of each spectrum at this wavelength, by default 9000.
label_offset (float, optional) – Y offset to use for the labels, by default 0.2
figsize (tuple, optional) – Figure size, by default (5, 6)