uvex_transients.models.supernovae.Ia.TypeIaSED.simulate_photometry#

TypeIaSED.simulate_photometry(t: PhysicalInput, exptime: Quantity, detector: Detector, coord: SkyCoord, *, background: SourceSpectrum | None = None, bands: list | None = None, observer_location: EarthLocation | None = None, obstime: Time | None = None, redshift: PhysicalInput | None = None, luminosity_distance: Quantity | None = None, angular_diameter_distance: Quantity | None = None, proper_distance: Quantity | None = None, cosmology: FLRW | None = None, ebv: float | Quantity | FloatArray | None = None, dust_law: str | None = None, in_model: ndarray | None = None, average_exposure: bool = False, n_sigma: float | None = None, sys_err: float | Mapping[str, float] | None = None, rng: RNGInput = None, noise_seed: int | FloatArray | None = None, noise_observation_keys: FloatArray | None = None, **parameters: ParameterValue) → QTable#

Simulate noisy synthetic photometry of this model at given times, against a real detector.

The noise-aware counterpart to mag()/flux()/as_source_spectrum(): those give the noiseless truth; this reports a synthetic measurement, one Gaussian realization of the true flux at each requested time and band at that time and band’s own implied uncertainty, with the magnitudes and bounds worked out from it. The measurement itself is measure_photometry(); this lays it out as a table.

Deliberately independent of any SurveySchedule or Event: t/exptime are whatever times and exposures the caller wants evaluated (for example a target of opportunity’s own cadence), not ones a schedule was queried for.

Parameters:
Returns:

One row per (time, band), sorted by t then band, with columns t, exptime, band, snr (the measured SNR, flux / flux_err), flux/flux_err (Jy), flux_upper/flux_lower (Jy, flux ± n_sigma*flux_err), ab_mag/mag_err, mag_upper/mag_lower – the n_sigma interval transformed to magnitude, brighter bound first – and in_model. See simulate_photometry() for the exact semantics of every column. If sys_err is given, snr/flux_err/mag_err (and everything derived from them) reflect the combined shot-noise-plus-systematic uncertainty.

Return type:

astropy.table.QTable

Raises:

ValueError – As for measure_photometry().