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.2.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 weightmask 0.2.1
File Size Uploaded Provenance Actions
weightmask-0.2.1.tar.gz 130.6 kB With provenance Details for weightmask-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 242.1 kB

Release files / weightmask-0.2.1.tar.gz

Download URL weightmask-0.2.1.tar.gz
Size 130.6 kB
Tags Source
SHA-256 checksum
How to use checksums
04453f91f74ec66f2d2f1dad46c3313398884f990402919c632b85ef4705615e
BLAKE2b-256 checksum
How to use checksums
926ded992a725ae53f48144cfa290c6643ba15ff67138da7ded82f166e89ea13
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.2.1-py3-none-any.whl

Download URL weightmask-0.2.1-py3-none-any.whl
Size 111.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ceca665bd9e0b2bfff20edd975ab1ca1b414cec5ca4d4eba34fc537fb9cff1c1
BLAKE2b-256 checksum
How to use checksums
8c2bcdcf14d92e04eb96b74cc29339f8bec20a32f9d0aef5bb6b42c6ea195a8a
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.2.1

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