Metadata-Version: 2.4
Name: CylindiricalNearField
Version: 0.1.8
Summary: Cylindrical Near-Field Antenna Measurement Support Functions
Author: AntennaMeasurement
License: MIT
Project-URL: Repository, https://github.com/AntennaMeasurement/cnf.git
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Provides-Extra: build
Requires-Dist: pyinstaller; extra == "build"

# Antenna Measurement CNF

A Python package for cylindrical near-field antenna measurement support functions.

## Installation

```bash
python -m pip install .
```

## Usage

As a library:

```python
from CylindiricalNearField import probeRadius

probeRadius(3, [0.4, 0.6, 1.195, 0.2])  # example usage
```

As a command line tool:

```bash
amcnf
```

## Package Functions

The package provides the following functions:

- `wavelength(frequency: float) -> float`
- `measurementDistance(frequency: float, coefficient: float) -> float`
- `probeRadius(ref_distance: float, lengths: list[float]) -> float`
- `scanSizeY(D: float, P: float, Z: float, R: float, Az_max: float, El_max: float) -> float`
- `stepSizeY(scan_size: float, frequency: float) -> float`
- `samplingCountY(scan_size: float, frequency: float) -> int`
- `stepSizeAzimuth(frequency: float, MRE: float) -> float`
- `samplingCountAzimuth(Az_max: float, frequency: float, MRE: float) -> int`  

## Development

```bash
pip install -e .[test]
pytest --verbose -s
```

## Documentation

The Sphinx documentation is hosted on [Read the Docs](https://cylindirical-near-field.readthedocs.org/).
Build it locally with:

```bash
python -m pip install -e . -r docs/requirements.txt
python -m sphinx -b html docs docs/_build/html
```

See the [documentation source](docs/index.rst) for the API reference and usage.
