Skip to main content

The BazinBlackBody package (BBB)

Time-Wavelength fit to find fast rising transients. BazinBlackBody or ExponentialBlackBody

The algorithm is motivated and defined here

The input is either a ZTF or LSST alert structure, and the output is the temperature T and rise rate kr or k, and perhaps the fall rate kf. The k and kr are rise rate in mags per day, and T is black body temperature in kiloKelvin. How to use the package:

  • Copy the settings_bbb_template.py into your own settings.py. Most of this is intended for using the 'annotate' feature of BBB, which pulls filtered alerts from Lasair, runs BBB, then pushes them back to Lasair as annotations.

  • Decide which survey you will use: LSST or ZTF. This decides the schema that BBB will use to get its inputs from the alert packet. What is wanted are in the first column, and the idiosyncratic survey name in other columns.

name ZTF LSST
MJD mjd midpointMjdTai
Object diaObject
Sources diaSourceList candidates
Forced forcedphot diaForcedSourcesList
Band index fid band
Flux converted from magpsf psfFlux
Flux error converted from sigmapsf psfFluxError
Forced Flux forcediffimflux psfFlux
Forced Flux error forcediffimfluxunc psfFluxErr

Now the code can be called as follows:

import BBBEngine
BE = BBBEngine.BBB('ZTF', verbose=True)
(dicte, dictb) =  BE.make_fit(alert)
if dicte:
    BE.plot(alert, dicte, 'image/%s.png'%objectId)
if dictb:
    BE.plot(alert, dictb, 'image/%s.png'%objectId)

In addition to the survey names (mandatory), and the verbose flag, the class instantiation can have other parameters for the initial conditions of the fitting process:

nforced=4, ebv=0, A=10000, T=8, t0=-6, kr=1, kf=0.1

Where

  • nforced is the number of forced phot points utilised before discovery
  • ebv is the E(B-V) extinction, default zero
  • A is the overall scale (in nanoJanskies for LSST and microJanskies for ZTF)
  • and T is the initial guess for the temparature in kiloKelvins
  • and kr and kf are initial guesses for the rise rate per day and the fall rate per day.

The return from make_fit may contain two dictionaries, one for the Exponential-Blackbody fit to the lightcurve (linear in magnitude), and the other the result of the Bazin-Blackbody fit.

Metadata

Release files for BazinBlackBody 0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for BazinBlackBody 0.8
File Size Uploaded Provenance Actions
bazinblackbody-0.8.tar.gz 20.1 kB Without provenance Details for bazinblackbody-0.8.tar.gz

Release files / bazinblackbody-0.8.tar.gz

Download URL bazinblackbody-0.8.tar.gz
Size 20.1 kB
Tags Source
SHA-256 checksum
How to use checksums
84c67f6870cf2b1500875ef5024b0b602c41808d80b243a7dd03a8de64789021
BLAKE2b-256 checksum
How to use checksums
e572a0f701b170f53d7c050bfff9280552a07ce7359c221a785a740017b4cf5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Security for BazinBlackBody 0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page