applyaf is a Python 3.4+ 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.
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:
The amplitude is expected to be in dB.
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?
To create a Python 3 virtualenv and then use it via virtualenvwrapper:
$ python3 -m venv ~/.virtualenv/applayf $ workon applyaf
- Anything in the
masterbranch is deployable
- To work on something new, create a descriptively named branch off of
- 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.