Skip to main content

weightmask

CI PyPI Python License: MIT

weightmask reads a detrended FITS or MEF science image and writes a per-pixel weight, quality mask, inverse-variance map, and sky.

Those products are for any measurement that should ignore bad pixels and down-weight the rest: coaddition, shape measurement, forced photometry, profile fitting, and difference imaging.

Install

pip install weightmask

Python 3.10+. The canonical weightmask.yml is bundled in the wheel and sdist. Copy it into a working directory with:

python -c "from weightmask.config import copy_default_config; copy_default_config('weightmask.yml')"

Pixi (development):

git clone https://github.com/astroai/weightmask.git
cd weightmask
pixi install

Details: installation.

Run

weightmask science.fits --config weightmask.yml --flat_image flat.fits \
  -o weight.fits --output_mask mask.fits

Docs

License

MIT

Metadata

Release files for weightmask 0.3.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 weightmask 0.3.0
File Size Uploaded Provenance Actions
weightmask-0.3.0.tar.gz 120.5 kB With provenance Details for weightmask-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 228.1 kB

Release files / weightmask-0.3.0.tar.gz

Download URL weightmask-0.3.0.tar.gz
Size 120.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4d13786a8c2e55feda0b6db8171b4f15a398bff39a7afcc5233048a345daa8ff
BLAKE2b-256 checksum
How to use checksums
2bca65758f1772f56d770f7dac935f1c35cea99caed383d397f42603c0f957eb
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 Oct 15, 2026.

Transparency log

Release files / weightmask-0.3.0-py3-none-any.whl

Download URL weightmask-0.3.0-py3-none-any.whl
Size 107.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4212aa8bdb85d858d9aba0210500f02cbc9b9b838c3faad331a39e3e2f436790
BLAKE2b-256 checksum
How to use checksums
e634413838de65d3ebbeb7e3a7b2dd04e3e8a82b8c9819fa85adfabfceeb4a5b
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 Oct 15, 2026.

Transparency log

Security for weightmask 0.3.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 weightmask-0.3.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 15, 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