Skip to main content

PyAutoArray: Arrays, Grids and Masks for Astronomy

PyAutoArray provides arrays, masks, coordinate grids and numerical tools for astronomical imaging and interferometer data. It powers the data handling and image reconstruction in PyAutoGalaxy and PyAutoLens.

If you want to model galaxies or gravitational lenses, start with PyAutoGalaxy or PyAutoLens. Use PyAutoArray directly when you need these building blocks in your own Python code.

Getting Started

Install the package:

pip install autoarray

Create a two-dimensional array with a pixel scale:

import autoarray as aa

image = aa.Array2D.no_mask(
    values=[[1.0, 2.0], [3.0, 4.0]],
    pixel_scales=0.1,
)

Create a circular mask and a grid of coordinates for its unmasked pixels:

mask = aa.Mask2D.circular(
    shape_native=(50, 50),
    pixel_scales=0.1,
    radius=2.0,
)

grid = aa.Grid2D.from_mask(mask=mask)

Explore Further

Community and Contributing

Ask questions, suggest improvements and share your work in PyAutoLabs Discussions, or chat with us on Slack.

To contribute, see the contribution guide.

License

See the license.

Metadata

Release files for autoarray 2026.11.12.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 autoarray 2026.11.12.1
File Size Uploaded Provenance Actions
autoarray-2026.11.12.1.tar.gz 646.4 kB Without provenance Details for autoarray-2026.11.12.1.tar.gz

Built distribution (wheel)

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

Total release size: 1.4 MB

Release files / autoarray-2026.11.12.1.tar.gz

Download URL autoarray-2026.11.12.1.tar.gz
Size 646.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c714d81552603cb46a50262e3810ebac28b961c37a3dfcbcf241f9e1c57307c7
BLAKE2b-256 checksum
How to use checksums
98380d6910e0d62e6d5e09364e6d49f4ff615239e2a02efa6fece8923960f5b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.16

Release files / autoarray-2026.11.12.1-py3-none-any.whl

Download URL autoarray-2026.11.12.1-py3-none-any.whl
Size 760.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bdb3b15eda9adf0f7a265cd9eb06e8fda5b064150a5d4c98ba6d80920beb5229
BLAKE2b-256 checksum
How to use checksums
36bfa6e0967d3616853ade63ae26abfc0dbb6688609d4884d6df9ff274e7a2c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.16

Security for autoarray 2026.11.12.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

2026.11.12.1 This release

2 release files No provenance

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