Lasair
Short version
Lasair is built for real-time filtering over enriched alert objects. Its distinctive feature is Sherlock, a sky-context classifier that uses host and catalog information to produce compact labels that users can query in filters.
How it uses Rubin alerts
| Topic | Plain-English answer |
|---|---|
| Stream role | Rubin lists Lasair as a full-stream broker. |
| Packet fidelity | Active Kafka filters can return selected fields, a lite light curve, or a full alert record for matching alerts; Lasair documents that full Kafka alert records exclude cutout images. |
| Cutouts | Yes through object/API views. The API docs say object records can include cutout URLs for the images shown on the object page. |
| Value added | Sherlock context classes, host association, light-curve features, TNS/crossmatch context, external annotations, and user filters. |
| Serving shape | Web UI, REST/API client, object pages, SQL filters, active Kafka streams, notebooks, and shared or user-defined filters. |
Classifier and context
| Aspect | Detail |
|---|---|
| Logic | Context classifier plus user-defined filters and annotations. |
| Inputs | Alert history, host association, Gaia, Pan-STARRS, SDSS, 2MASS, AGN/CV catalogs, GLADE, NED, TNS, and other context. |
| Model family | Sherlock is documented as a boosted decision tree over sky-context and host information. |
| Output | Compact context classes such as AGN, CV, NT, SN, VS, BS, ORPHAN, and UNCLEAR. |
| State | Object/context-level; Sherlock classes and annotations can be used directly in SQL filters. |
Technical notes
| Area | Detail |
|---|---|
| filtering model | Lasair lets users write SQL filters against broker-enriched object records. Filters can be run interactively, saved, shared, or turned into active streams. |
| staged workflow | Public docs describe starting with SQL-like queries, then moving toward local code or active streaming filters as the workflow matures. |
| client repo | lsst-uk/lasair_api is a Python client package. It exposes methods for cone searches, SQL-style database queries, object-page data, Sherlock object/position context, stream listing, annotation, and Kafka consumer/producer workflows. |
| examples repo | lsst-uk/lasair-examples contains notebooks and scripts for working with LSST-facing Lasair, including active-stream consumption examples. |
| alert streams | Active filters can push machine-readable Kafka records. Lasair documents plain selected-field records, lite light-curve records, and full alert records without cutout images. |
| Sherlock | Sherlock associates transients with nearby catalog and host context, then produces compact sky-context classes. |
| catalog context | Public docs mention Gaia, Pan-STARRS, SDSS, 2MASS, AGN catalogs, CV catalogs, GLADE, and NED among the context sources. |
| annotations | Lasair can combine broker-side context with user or external annotations. |
| output style | The broker is strong for fast, interpretable filtering; it is not mainly a large probability-vector service. |
How to use it
| Mode | Status | Notes |
|---|---|---|
| web UI | Yes | Web access and object inspection are central to Lasair. |
| API | Yes | REST API docs are public. |
| SQL filters | Yes | SQL filtering is a core interface. |
| Python client | Yes | The public lasair client package wraps cone search, query, object, Sherlock, stream, and annotation methods. |
| Kafka stream | Yes | Active filters can produce Kafka records for selected alert subsets. |
| archive / bulk export | Unknown | No public bulk-export workflow is documented. |
Good fits
| Science case | Fit | Why |
|---|---|---|
| lensed AGN | Likely | Host/context association and SQL filters are useful for lens candidate screens. |
| lensed SNe | Likely | Real-time filters and context classes support fast transient narrowing. |
| anomalous transients | Likely | Feature-driven filters and external annotations enable custom candidate logic. |
| variable stars | Likely | Sherlock classes, light-curve features, and filters are relevant. |
| solar system | Unknown | No dedicated solar-system workflow is documented in this guide. |
Notes for users
- Lasair's public classifier is mainly contextual, not a broad probability-calibrated photometric taxonomy.
- For score vectors or model-feature tables, ALeRCE or Fink-style products may be a better fit.
- Full-alert Kafka records are for selected active filters, not a promise that one user can pull every alert and every cutout through Lasair.
Sources
- Rubin Observatory, alerts and brokers: https://rubinobs.org/for-scientists/data-products/alerts-and-brokers
- Lasair website: https://lasair.lsst.ac.uk/
- Lasair Sherlock docs: https://lasair.readthedocs.io/en/main/core_functions/sherlock.html
- Lasair quick start: https://lasair.readthedocs.io/en/develop/quickstart.html
- Lasair approach: https://lasair-lsst.readthedocs.io/en/main/about.html
- Lasair filter docs: https://lasair.readthedocs.io/en/main/core_functions/make_filter.html
- Lasair API docs: https://lasair.readthedocs.io/en/develop/core_functions/rest-api.html
- Lasair API client docs: https://lasair-lsst.readthedocs.io/en/main/core_functions/client.html
- Lasair alert-stream docs: https://lasair-lsst.readthedocs.io/en/main/core_functions/alert-streams.html
- Lasair API client repo: https://github.com/lsst-uk/lasair_api
- Lasair examples repo: https://github.com/lsst-uk/lasair-examples