Apply antenna factor and cable loss tospectrum analyzer measurements
Project description
applyaf
applyaf is a Python 3.6+ module that applies frequency dependent antenna factors and cable losses to spectrum analyzer readings in order to calculate the incident field. Any duplicate frequency entries in the antenna factors or cable losses data are removed before interpolating the frequencies to match those of the spectrum analyzer readings.
Inputs
Three csv files containing the following are required inputs:
- Spectrum analyzer measurements
- Antenna factor data
- Cable loss data
Each CSV file should contain data in two columns:
- Frequency
- Amplitude
The amplitude is expected to be in dB.
Requirements
Future Improvements
Some thoughts for future improvements include:
- Allowing CSV data files that contain non-dB amplitudes and then convert as needed. Should this be a per-file setting?
- Generalize the code to handle a variable number (>3) of data to be interpolated and applied to the given data set.
- If the code is generalized, should this be wrapped into the [siganalysis][] project or left on its own?
Contributing
Contributions are welcome! To contribute please:
- Fork the repository
- Create a feature branch
- Add code and tests
- Pass lint and tests
- Submit a pull request
Development Setup
Development Setup Using pyenv
Use the following commands to create a Python 3.9.9 virtualenv using pyenv
and pyenv-virtualenv, install the requirements in the virtualenv named
applyaf
, and list the available Invoke tasks.
$ pyenv virtualenv 3.9.9 applyaf
$ pyenv activate applyaf
$ pip install -r requirements.txt
$ inv -l
License
applyaf is released under the MIT license. Please see the LICENSE.txt file for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file applyaf-1.4.0.tar.gz
.
File metadata
- Download URL: applyaf-1.4.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc01c9e176ca18b8d4332d5dd6ae7c6157eb59801f3f3d5caa88afca9722e205 |
|
MD5 | 628d6c44e3d54007c8d0e3a135783c95 |
|
BLAKE2b-256 | 6f86ea3a7e8086891ce8341d321d76e25825076411fe0fe15077bf16b37c4d58 |
File details
Details for the file applyaf-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: applyaf-1.4.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bed1480ba0d4157020795daa33fbdc44b9da8172deef336ffb9a2f910461415 |
|
MD5 | 0ae53257f9b8c4d28931599cbdd2018c |
|
BLAKE2b-256 | 1e7fa59a2c1c613bf61ae4ac991b90a87ad19fd7cdb86b3c47d72b6ea76edaff |