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.4.1

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.4.1
File Size Uploaded
stdpipe-0.4.1.tar.gz 8.1 MB Details

Built distribution (wheel)

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

Total release size: 16.0 MB

Release files / stdpipe-0.4.1.tar.gz

Download URL stdpipe-0.4.1.tar.gz
Size 8.1 MB
Tags Source
SHA-256 checksum
How to use checksums
9c59ff8e8d383e5e3894b22051d8cfb104202db4da4213465bd5d6cdb28faaae
BLAKE2b-256 checksum
How to use checksums
f8cfb526335a1bd3b527f918b0abd44ad0c096a7d0fdff2533f3cd6b9a38e5f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 7, 2026.

Transparency log

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

Download URL stdpipe-0.4.1-py3-none-any.whl
Size 7.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c1a78fb877ac69aeb7f2abb1702e00916e30db174bc66425edc103b95e167662
BLAKE2b-256 checksum
How to use checksums
ec45232473ea05bf70dc47598b1cb9db62e463792480a9d07b448cfc8d4d59ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.0

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

0.1

1 release file

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