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.20.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.20.1
File Size Uploaded Provenance Actions
autoarray-2026.11.20.1.tar.gz 661.9 kB Without provenance Details for autoarray-2026.11.20.1.tar.gz

Built distribution (wheel)

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

Total release size: 1.4 MB

Release files / autoarray-2026.11.20.1.tar.gz

Download URL autoarray-2026.11.20.1.tar.gz
Size 661.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a0f30cf08a41395a101709a9768d0b2d80d46b5ea576f43eede2f5a6fbe05881
BLAKE2b-256 checksum
How to use checksums
7b02d6b362b4080259e8b90f0eeeef1d3ac39c3d5dd13fb23ddd0695e4b9d3ba
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.20.1-py3-none-any.whl

Download URL autoarray-2026.11.20.1-py3-none-any.whl
Size 773.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35a233c5cab8e7448623648e6f34d9d2d04b175ebb10f4ec16ec1c3ca984cb78
BLAKE2b-256 checksum
How to use checksums
a0be5ff866fe344fe3623e15bf23d6e1ef6c599666ef6e9a7007eeafc8461542
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.20.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.20.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