This is the Phased Array Project.
Python utilities for working with phased array radars.
This is a hobby project for getting familiar with phased array radar beamforming.
Install
Install the normal way:
pip install phased_array
Basic usage
An example that creates a ULA and plots the array factor with Vispy.
You must have a Vispy backend installed to see this; e.g. pip install pyqt6
import vispy.plot as vp
import phased_array
import numpy as np
# spacing between elements
d = 0.05
# number of elements
n = 8
# wavelength
λ = 0.1
# pointing azimuth angle
az = 30
# create a uniform linear array
arr = phased_array.PhasedArray.ula(d, n)
# generate complex weights for pointing at az
weights = arr.weights_at_azel(λ, az, 0)
# sample array factor from -90 to +90.
x = np.linspace(-90, 90, 300)
θ = np.radians(x)
ϕ = np.zeros_like(θ)
af = arr.array_factor(λ, weights, θ, ϕ)
fig = vp.Fig()
plot = fig[0, 0]
af_db = 20 * np.log10(np.abs(af))
af_db -= np.max(af_db)
print("HERE")
plot.plot(
(x, af_db),
marker_size=0.0,
color="blue",
width=2.0,
xlabel="Angle (°)",
ylabel="Array Factor (dB)",
)
print("THERE")
plot.camera.set_range(y=[-40, 0])
print("AHHHHH")
fig.show(run=True)
For a planar array example, see the notebook
Metadata
Release files for phased_array 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| phased_array-0.0.1.tar.gz | 237.6 kB | Without provenance | Details for phased_array-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| phased_array-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for phased_array-0.0.1-py3-none-any.whl |
Total release size: 242.9 kB
Release files / phased_array-0.0.1.tar.gz
| Download URL | phased_array-0.0.1.tar.gz |
|---|---|
| Size | 237.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e18c9349a054317fc1418494c71827716ba44f74faeadec5455539c83e2798f6
|
|
BLAKE2b-256 checksum How to use checksums |
95d5bbf5752703b85f9d65a2d55594bf839098edf5dcbc6e6e9c76f7c3dd0d86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / phased_array-0.0.1-py3-none-any.whl
| Download URL | phased_array-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d453743c339b3a31855df8256a5feee1e720e98291e6e48812a1f4dc047a384f
|
|
BLAKE2b-256 checksum How to use checksums |
87ef437c1335fa59b63bf2666245ce14bd39e6982e675966d1fc7853687f2af9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for phased_array 0.0.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.