Skip to main content

STDPipe - Simple Transient Detection Pipeline

AKA: random codes noone else will ever use

STDPipe is a set of Python routines for astrometry, photometry and transient detection related tasks, intended for quick and easy implementation of custom pipelines, as well as for interactive data analysis.

Design principles

  • implemented as a library of routines covering most common tasks
  • operates on standard Python objects: NumPy arrays for images, Astropy Tables for catalogs and object lists, etc
  • does not try to re-implement the things already implemented in other Python packages
  • conveniently wraps external codes that do not have their own Python interfaces (SExtractor, SCAMP, PSFEx, HOTPANTS, Astrometry.Net, ...)
    • wrapping is transparent: all data passed from Python, all options customizable from Python, all (or most of) outputs available back
    • everything operates on temporary files, nothing is kept after the run unless explicitly asked for

Features

  • pre-processing - should be handled before in an instrument-specific way
    • bias/dark subtraction, flatfielding, masking
  • object detection and photometry
    • SExtractor, SEP, or photutils (pure Python) for detection
    • aperture, optimal extraction (Naylor 1998), and PSF fitting photometry
    • grouped fitting for crowded fields
  • astrometric calibration
    • Astrometry.Net for blind WCS solving
    • quad-hash pattern matching for refinement (pure Python, no external deps, default method)
    • SCAMP or Astropy-based code for refinement (alternative)
  • photometric calibration
    • Vizier catalogues, passband conversion (PS1 to Johnson, Gaia to Johnson, ...)
    • spatial polynomial + color term + intrinsic scatter
  • image reprojection and stacking
    • Lanczos interpolation with automatic oversampling and flux conservation (pure Python, default)
    • SWarp wrapper (alternative)
  • image subtraction
    • HiPS templates
    • PanSTARRS DR1 or Legacy Survey templates
    • HOTPANTS + custom noise model
    • ZOGY
  • transient detection and classification
    • noise-weighted detection, cutout adjustment, ...
    • feature-based real/bogus classification (no TensorFlow required)
    • CNN-based real/bogus classification (optional, requires TensorFlow)
  • auxiliary functions
    • PSF estimation, simulated stars, FITS header utilities, plotting, ...
  • light curve creation (soon)
    • spatial clustering, color regression, variability analysis, ...

Installation

STDpipe is available at https://github.com/karpov-sv/stdpipe and is mirrored at https://gitlab.in2p3.fr/icare/stdpipe

The package is in constant development, so to keep track of the changes the suggested way of installing it is by cloning the repository

git clone https://github.com/karpov-sv/stdpipe.git

and then installing from it in development (or "editable") mode by running the command

cd stdpipe
python3 -m pip install -e .

This way you may update the repository or apply local patches, and it will immediately be reflected in the installed package.

Apart of Python requirements that will be installed automatically, STDPipe also (optionally) makes use of the following external software:

Most of them may be installed from your package manager. E.g. on Debian or Ubuntu systems it may look like that:

sudo apt install sextractor scamp psfex swarp

or, on Miniconda/Anaconda, like that:

conda install -c conda-forge astromatic-source-extractor astromatic-scamp astromatic-psfex astromatic-swarp

You may also check more detailed installation instructions here.

Usage

Please consult the documentation for STDPipe for the basic usage patterns and description of its API. You may check the examples inside notebooks/ folder, especially the tutorial that demonstrates basic steps of a typical image processing.

Metadata

Release files for stdpipe 0.5.0

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

Source distribution (sdist)

Source distribution for stdpipe 0.5.0
File Size Uploaded Provenance Actions
stdpipe-0.5.0.tar.gz 8.4 MB With provenance Details for stdpipe-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stdpipe 0.5.0
File Interpreter ABI Platform Actions
stdpipe-0.5.0-py3-none-any.whl Python 3 none any Details for stdpipe-0.5.0-py3-none-any.whl

Total release size: 16.6 MB

Release files / stdpipe-0.5.0.tar.gz

Download URL stdpipe-0.5.0.tar.gz
Size 8.4 MB
Tags Source
SHA-256 checksum
How to use checksums
7b73d5e214b518e7025220ecd0ddc9362d3deb061b7eb69050cc469c963e9fd8
BLAKE2b-256 checksum
How to use checksums
88996d096992c54eea3d7f513bb008003b45d11bd352ecd413979fdf53767813
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Release files / stdpipe-0.5.0-py3-none-any.whl

Download URL stdpipe-0.5.0-py3-none-any.whl
Size 8.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
9a278e278742d9b1244ee707c5e7f6dabedb8b20a72674e96b4ea0144b82cf64
BLAKE2b-256 checksum
How to use checksums
57db7adb80162f1d0a29ca4490ca013eac309b8fc6fe3c7cb3059ba3d5a1f6c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Security for stdpipe 0.5.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for stdpipe-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

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