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.28.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.28.1
File Size Uploaded Provenance Actions
autoarray-2026.11.28.1.tar.gz 687.7 kB Without provenance Details for autoarray-2026.11.28.1.tar.gz

Built distribution (wheel)

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

Total release size: 1.5 MB

Release files / autoarray-2026.11.28.1.tar.gz

Download URL autoarray-2026.11.28.1.tar.gz
Size 687.7 kB
Tags Source
SHA-256 checksum
How to use checksums
470ef48ca3bfda1c2a0dc603a5519ed1c699b6d2bfc614e7477d926fdc5b987d
BLAKE2b-256 checksum
How to use checksums
702536ccad45c66dc69e240715a0253a4d0bc2d9673efee1648402fdd3513396
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.28.1-py3-none-any.whl

Download URL autoarray-2026.11.28.1-py3-none-any.whl
Size 802.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e76981cb9f6e2ca4ffcbff9a442c5a5a357cbe9bfeb6589619f931a1ec8a3931
BLAKE2b-256 checksum
How to use checksums
aa509307037bcb1658294e898ede1361c78aff0b4bf59ba6c30cd9b52107c69c
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.28.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.28.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