Target-of-Opportunity Follow-up of a TDE#

TDE End-to-End Simulation starts from a whole population, Monte Carlo sampled and screened against a real SurveySchedule. A target-of-opportunity (ToO) follow-up is the opposite problem: one specific TDE, at a position and redshift already known (from an alert, say), that gets pointed at directly on whatever cadence is chosen – no schedule, no windowed sampling, no Event.

simulate_photometry() is built for exactly this: given a sky position and whatever time grid and exposure time the caller wants evaluated, it runs the same noise model a real survey simulation uses (a batched SourceSpectrum plus get_snr()), with no schedule in the loop. This example follows one TDE weekly across its whole ~200-day duration and builds its UV light curves.

Choosing the target#

A target of opportunity is a specific object, not a population draw. TidalDisruptionEvent still supplies the right SED model (VanVelzenTDESED) and a conservative duration window; only its parameters are fixed here, to one concrete realization (via a seed, for reproducibility), rather than left to be sampled for a whole population. Milky Way foreground dust is resolved the same way a real survey simulation resolves it – resolve_ebv() against the real sky map – since it depends only on sky position, not on when the TDE happens to be observed.

import numpy as np
from astropy import units as u
from astropy.coordinates import SkyCoord
from astropy.time import Time
from m4opt.synphot.background import GalacticBackground

from uvex_transients.dust import dust_map, log_attenuation, resolve_ebv
from uvex_transients.missions import uvex_fast as uvex
from uvex_transients.transients.TDEs import TidalDisruptionEvent
from uvex_transients.utils.plotting import get_band_color, plot_band_light_curve, resolve_fig_axes, set_plot_style

set_plot_style()

tde = TidalDisruptionEvent()

coord = SkyCoord(ra=195.3 * u.deg, dec=27.8 * u.deg)
redshift = 0.03
luminosity_distance = tde.cosmology.luminosity_distance(redshift)
ebv = float(resolve_ebv(dust_map(), coord))

params = {name: value[0] for name, value in tde.sed.sample_parameters(1, rng=12345).items()}
print(f"E(B-V) at target: {ebv:.3f}")
print("SED parameters:", {name: f"{value:.3g}" for name, value in params.items()})
E(B-V) at target: 0.007
SED parameters: {'amplitude': '1.2e+43 erg / s', 'sigma_rise': '16.8 d', 'tau_decline': '33.6 d', 'temperature': '1.82e+04 K'}

A weekly cadence#

No schedule to query – just pick the times to observe. tde.duration_limit is a conservative upper bound on how long this class of event stays relevant; weekly visits across that whole window is a plausible real follow-up cadence for something this slow.

CADENCE = 7 * u.day
EXPTIME = 900 * u.s

t = np.arange(0, tde.duration_limit.to_value(u.day), CADENCE.to_value(u.day)) * u.day
print(f"{len(t)} visits, one every {CADENCE}.")
29 visits, one every 7.0 d.

Simulating photometry, with no zodiacal light#

A real ToO trigger time isn’t known in advance, so there’s no meaningful obstime to feed a season-dependent background term like zodiacal light. Passing background=GalacticBackground() explicitly simulates against dust (already folded into the source flux itself, via ebv) plus the Milky Way’s diffuse UV glow only, and leaves observer_location/obstime at their placeholder defaults – both irrelevant to GalacticBackground(), so there is nothing else to supply. See simulate_photometry()’s own docstring for exactly when that placeholder default is (and isn’t) safe.

 t   band         snr                ab_mag
 d
---- ---- -------------------- ------------------
 0.0  FUV  0.13119952630297602  28.52920612584359
 0.0  NUV  0.23870518463335083  28.56410664174313
 7.0  FUV -0.09419558182510325                nan
 7.0  NUV  -0.8818992494882213                nan
14.0  FUV   0.8614324604056147 26.470672895561606
14.0  NUV    0.517422297658175 27.677354796301074

The light curves#

The noiseless theory curve (mag_bandpass(), averaged over each band’s throughput) alongside the simulated weekly visits: detections above SNR=5 as points with error bars, fainter visits as downward-pointing upper limits – the same plotting convention used at the end of TDE End-to-End Simulation.

Weekly ToO follow-up (z=0.03, 29 visits)

Bonus: what zodiacal light would have cost#

Suppose the trigger date had been known – say, this TDE actually went off on a specific night. Comparing that against the Galactic-only run above shows what assuming background=GalacticBackground() glossed over: passing background=None (the default) uses uvex’s own detector background, Galactic and zodiacal light together, and now real observer_location/obstime values (from observer_location) are needed too, since zodiacal light actually depends on both.

FUV: median SNR 38.6 (Galactic only) vs 38.6 (+ zodiacal)
NUV: median SNR 74.6 (Galactic only) vs 74.2 (+ zodiacal)

Total running time of the script: (0 minutes 0.673 seconds)

Gallery generated by Sphinx-Gallery