parsnip.ParsnipModel.predict_spectrum

ParsnipModel.predict_spectrum(light_curve, time, sample=False, count=None)

Predict the spectrum of a light curve at a given time

Parameters:
  • light_curve (Table) – Light curve

  • time (float) – Time to predict the spectrum at

  • sample (bool, optional) – If True, sample from the latent variable posteriors. Otherwise, use the MAP. By default False.

  • count (int, optional) – Number of spectra to predict, by default None (single prediction)

Returns:

Predicted spectrum at the wavelengths specified by model_wave

Return type:

ndarray