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.

me next to you / and you next to me

Metadata

Release files for autoarray 2026.11.30.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.30.1
File Size Uploaded Provenance Actions
autoarray-2026.11.30.1.tar.gz 689.4 kB Without provenance Details for autoarray-2026.11.30.1.tar.gz

Built distribution (wheel)

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

Total release size: 1.5 MB

Release files / autoarray-2026.11.30.1.tar.gz

Download URL autoarray-2026.11.30.1.tar.gz
Size 689.4 kB
Tags Source
SHA-256 checksum
How to use checksums
81d7f10cd6e66747ddc0638574ec36e038d981f6a1b18ad61c156b20e7b69c9f
BLAKE2b-256 checksum
How to use checksums
bcf7329e607030d67c1539fb741392d7eacce9edd9ab3e2b3ef3c328715ba9e6
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.30.1-py3-none-any.whl

Download URL autoarray-2026.11.30.1-py3-none-any.whl
Size 804.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd90bebca7156e6e1301c868ca7c95b81f82ca9e9f71d8eea1dccc4103a1b485
BLAKE2b-256 checksum
How to use checksums
0e687dec0812b5f95b42008bb9fd844371a03fd83a859c50507b17963b1ddb79
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.30.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.30.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