Skip to main content

Apply antenna factor and cable loss tospectrum analyzer measurements

Project description

applyaf

PyPi Version Build Status Coverage Status License Badge

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:

  1. Spectrum analyzer measurements
  2. Antenna factor data
  3. Cable loss data

Each CSV file should contain data in two columns:

  1. Frequency
  2. Amplitude

The amplitude is expected to be in dB.

Requirements

Future Improvements

Some thoughts for future improvements include:

  1. Allowing CSV data files that contain non-dB amplitudes and then convert as needed. Should this be a per-file setting?
  2. Generalize the code to handle a variable number (>3) of data to be interpolated and applied to the given data set.
  3. 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:

  1. Fork the repository
  2. Create a feature branch
  3. Add code and tests
  4. Pass lint and tests
  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

applyaf-1.4.0.tar.gz (7.7 kB view hashes)

Uploaded Source

Built Distribution

applyaf-1.4.0-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page