skip to navigation
skip to content

Not Logged In

applyaf 0.2

Apply antenna factor and cable loss tospectrum analyzer measurements

Latest Version: 0.2.2

applyaf

applyaf is a Python (2.6+/3.3+) 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

applyaf is developed using Scott Chacon’s GitHub Flow. To contribute, fork applyaf, create a feature branch, and then submit a pull request. GitHub Flow is summarized as:

  • Anything in the master branch is deployable
  • To work on something new, create a descriptively named branch off of master (e.g., new-oauth2-scopes)
  • Commit to that branch locally and regularly push your work to the same named branch on the server
  • When you need feedback or help, or you think the brnach is ready for merging, open a pull request.
  • After someone else has reviewed and signed off on the feature, you can merge it into master.
  • Once it is merged and pushed to master, you can and should deploy immediately.

License

applyaf is released under the MIT license. Please see the LICENSE.txt file for more information.

 
File Type Py Version Uploaded on Size
applyaf-0.2.tar.gz (md5) Source 2014-08-07 6KB
  • Downloads (All Versions):
  • 6 downloads in the last day
  • 59 downloads in the last week
  • 215 downloads in the last month