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+. Copy weightmask.yml into the working directory; it is not bundled in the wheel.

Pixi (development):

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

Details: docs/installation.md.

Run

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

Docs

License

MIT

Release files for weightmask 0.1.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.1.0
File Size Uploaded
weightmask-0.1.0.tar.gz 72.1 kB Details

Built distribution (wheel)

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

Total release size: 144.3 kB

Release files / weightmask-0.1.0.tar.gz

Download URL weightmask-0.1.0.tar.gz
Size 72.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3e513f2d72e7bb12b1417388fab97caf81da4b3c62ab6f8b81f13f15053f3147
BLAKE2b-256 checksum
How to use checksums
eed40e7e40f50aa13b946f6ec3a35edfa31ce929fc63a419dfadd18dcf0e0615
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 Sep 8, 2026.

Transparency log

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

Download URL weightmask-0.1.0-py3-none-any.whl
Size 72.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad0ba0d33e51ccd9634dda5fa5935e526ebbebfa1731da7ad34882d993b5a9be
BLAKE2b-256 checksum
How to use checksums
7c88a3cde0c0020cfbcf3063bc4c359d3ae414776d84fe5c399b4c618aff4f9e
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 Sep 8, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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