Standard Cuts and Yields#

How many of the detected events can be characterized: observed often enough, brightly enough and early enough to be classified?

A detection alone is not much. This page applies a set of standard cuts to the detected events of every transient type, and reports what is left as the expected number of UVEX events. The cuts are relatively relaxed, since they pick events that UVEX will get UV coverage of and that can probably be classified, but probably not early. Every setting is at the top of the page, so the same page answers the question for a different selection.

Everything is read from the event summary table of the latest release, through SummaryReport.

from dataclasses import replace

import matplotlib.pyplot as plt

from uvex_transients.utils.plotting import set_plot_style
from uvex_transients.utils.summary_report import POPULATION_GROUPS, STANDARD_POPULATIONS, SummaryReport

set_plot_style()

Configuration#

The three cuts are the same for every type, apart from the longest allowed gap between the last non-detection and the first detection, which is set per type. Change any of them and the funnels, yields and figures below follow.

#: An event needs at least this many detections.
MIN_DETECTIONS = 2

#: The highest-SNR measurement of an event must be brighter than this AB magnitude.
PEAK_MAG_LIMIT = 23.0

#: The longest gap, in days, from the last constraining non-detection to the first detection, per type.
MAX_GAP = {key: spec.max_gap for key, spec in STANDARD_POPULATIONS.items()}
# MAX_GAP["tde"] = 15.0  # for example, to pin the explosion of a TDE down twice as tightly

POPULATIONS = {key: replace(spec, max_gap=MAX_GAP[key]) for key, spec in STANDARD_POPULATIONS.items()}

try:
    report = SummaryReport.from_release(POPULATIONS, min_detections=MIN_DETECTIONS, peak_mag_limit=PEAK_MAG_LIMIT)
except (ConnectionError, LookupError, OSError, ValueError) as err:
    report = None
    print(f"Skipping this page's analysis, the release data is not available: {err}")
else:
    print(f"{len(report.summary):,} detected events in the release's summary table.")
12,291 detected events in the release's summary table.

The cuts#

The cuts are cumulative:

  • Repeat detections: at least MIN_DETECTIONS epochs with SNR above threshold, since a lone detection is hard to tell apart from noise or an artifact.

  • Bright peak: the highest-SNR measurement is brighter than PEAK_MAG_LIMIT.

  • Bracketed explosion: the gap between the last constraining non-detection (one whose rise to the first detection is significant at 3 sigma, so a marginal non-detection does not count) and the first detection is below a limit per type, so that the explosion time is pinned down. An event with no constraining non-detection has no bracket and is dropped.

The default gap is set at roughly the time each type takes to rise, so that its explosion is pinned down while it is still bright:

Type

Max gap (days)

Reasoning

Type Ia

14

Type Ia SNe reach peak roughly two to three weeks after explosion.

Type Ib, Ic, Ic-BL

10

Stripped-envelope SNe reach peak in about two weeks. The broad-lined Ic is taken to be the same.

Type IIP, IIb

7

The UV is brightest in the first days to weeks, during shock breakout and cooling, and the shock-cooling peak of a IIb arrives within about a week.

SLSN-I

60

SLSNe rise slowly, over roughly 30 to 100 days in the rest frame (longer in the observer frame).

TDE

30

TDEs rise over a few weeks, so a month brackets the rise itself.

LFBOT

5

LFBOTs rise in a few days and fade over a few weeks.

Kilonova

3

The UV emission fades within days, so the explosion has to be pinned down to a few days for the event to still be bright when it is found.

Cut funnels#

How many events of each type survive each cut, in expected UVEX events: the Monte Carlo events that reach a stage times \(\mu_0 / n\), with \(n\) the number generated and \(\mu_0\) the number that exist in UVEX’s footprint and observing window. The first bar is therefore \(\mu_0\). Black error bars are the Monte Carlo uncertainty on each stage and the pale band is the rate uncertainty, which scales every stage by the same factor. One funnel per group of types, to keep the bars legible.

if report is not None:
    for name, keys in POPULATION_GROUPS.items():
        group = SummaryReport(
            report.summary,
            {key: report.populations[key] for key in keys},
            min_detections=MIN_DETECTIONS,
            peak_mag_limit=PEAK_MAG_LIMIT,
        )
        group.plot_funnel().axes[0].set_title(f"Detection funnel: {name}")

plt.show()
  • Detection funnel: Type I SNe
  • Detection funnel: Type II SNe
  • Detection funnel: SLSNe
  • Detection funnel: Exotic transients

Characterized events per type#

The expected number of events that pass every cut. This is the same figure as the detected events, now for the selected ones: the black error bars are the Monte Carlo uncertainty and the pale band is the rate uncertainty.

if report is not None:
    report.plot_yields()

plt.show()
plot characterization

The numbers behind the bars, with the fraction of the events generated that is selected:

if report is not None:
    report.yield_table().pprint_all()
Population Intrinsic UVEX events Selected / generated   Fraction (90% CI)                Expected selected events
---------- --------------------- -------------------- ---------------------- ------------------------------------------------
   Type Ia               170,407            15 / 8358 0.18% (0.11% to 0.28%)         306 (+165 / -117 MC, +23.5 / -23.5 rate)
   Type Ib                52,029             0 / 2678 0.00% (0.00% to 0.11%)                         < 58.2 (90% upper limit)
   Type Ic                23,786             1 / 1196 0.08% (0.00% to 0.40%)      19.9 (+74.3 / -18.9 MC, +10.1 / -10.6 rate)
Type Ic-BL                14,851              0 / 730 0.00% (0.00% to 0.41%)                         < 60.8 (90% upper limit)
  Type IIP            22,169,966          59 / 221247 0.03% (0.02% to 0.03%) 5,912 (+1,431 / -1,206 MC, +1,749 / -1,981 rate)
  Type IIb             7,538,332          13 / 188496 0.01% (0.00% to 0.01%)           520 (+307 / -212 MC, +236 / -249 rate)
    SLSN-I                25,531            54 / 1270 4.25% (3.36% to 5.30%)         1,086 (+269 / -227 MC, +406 / -588 rate)
       TDE                49,400          305 / 49607 0.61% (0.56% to 0.68%)           304 (+30.1 / -28 MC, +58.8 / -98 rate)
     llGRB                13,952            5 / 14063 0.04% (0.01% to 0.07%)       4.96 (+5.47 / -3.01 MC, +10.6 / -4.1 rate)
     LFBOT                 1,149          102 / 11618 0.88% (0.74% to 1.03%)      10.1 (+1.79 / -1.58 MC, +2.52 / -9.18 rate)
  Kilonova                  54.3              0 / 588 0.00% (0.00% to 0.51%)                        < 0.276 (90% upper limit)

How often is each event detected?#

The percentage of the characterized events that are detected at least \(N\) times. The cut on repeat detections keeps every curve at 100% up to \(N =\) MIN_DETECTIONS, and the rest of the curve is how much more than that is available.

Type I SNe, Type II SNe, SLSNe, Exotic transients

Example light curves#

One characterized event of each type, rebuilt from the release’s event catalog and observed with synthetic photometry against the schedule. Filled squares are detections, open triangles are upper limits, and the lines are the noiseless model. This needs the event catalog and the survey schedule as well, and the schedule is fetched fresh, so it can differ from the one the release was run against.

events = schedule = None
if report is not None:
    try:
        from uvex_transients.simulation import EventCatalog
        from uvex_transients.surveys import get_schedule
        from uvex_transients.utils import get_results

        events = EventCatalog.from_disk(get_results(["events"])["events"])
        schedule = get_schedule()
    except (ConnectionError, LookupError, OSError, ValueError) as err:
        print(f"Skipping the example light curves, a data product is not available: {err}")

if events is not None:
    from uvex_transients.missions import uvex_fast as uvex
    from uvex_transients.transients.kilonovae import Kilonova
    from uvex_transients.transients.LFBOTs import LuminousFastBlueOpticalTransient
    from uvex_transients.transients.llgrb import LowLuminosityGRB
    from uvex_transients.transients.supernovae import (
        MagnetarSLSNe,
        TypeIaSNe,
        TypeIbSNe,
        TypeIcBLSNe,
        TypeIcSNe,
        TypeIIbSNe,
        TypeIIPSNe,
    )
    from uvex_transients.transients.TDEs import TidalDisruptionEvent

    transients = {
        "ia_sne": TypeIaSNe(),
        "ib_sne": TypeIbSNe(),
        "ic_sne": TypeIcSNe(),
        "icbl_sne": TypeIcBLSNe(),
        "iip_sne": TypeIIPSNe(),
        "iib_sne": TypeIIbSNe(),
        "slsne": MagnetarSLSNe(),
        "tde": TidalDisruptionEvent(),
        "llgrb": LowLuminosityGRB(),
        "lfbot": LuminousFastBlueOpticalTransient(),
        "kilonova": Kilonova(),
    }
    for key in report.populations:
        try:
            report.plot_example_event(key, events, transients, schedule, uvex)
        except ValueError as err:
            print(err)

plt.show()
  • Type Ia event 255174 (z=0.080, 12 observations)
  • Type Ic event 242731 (z=0.073, 9 observations)
  • Type IIP event 295182 (z=0.234, 40 observations)
  • Type IIb event 205255 (z=0.661, 9 observations)
  • SLSN-I event 296163 (z=0.473, 12 observations)
  • TDE event 257301 (z=0.396, 21 observations)
  • llGRB event 139729 (z=0.839, 25 observations)
  • LFBOT event 329015 (z=0.718, 27 observations)
Downloading final_catalog.ecsv:   0%|          | 0.00/2.41M [00:00<?, ?B/s]
Downloading final_catalog.ecsv:  42%|████▏     | 1.00M/2.41M [00:00<00:00, 8.22MB/s]
Downloading final_catalog.ecsv: 100%|██████████| 2.41M/2.41M [00:00<00:00, 14.4MB/s]
No Type Ib events survived the selection.
No Type Ic-BL events survived the selection.
No Kilonova events survived the selection.

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

Gallery generated by Sphinx-Gallery