| 1 |
Python & Matlab scripts and data to accompany National Physical Laboratory (NPL) Report MAT 58 (2021) |
| 2 |
===================================================================================================== |
| 3 |
|
| 4 |
Note: You may need to rename files to replace underscores. E.g. qfitmod6_py --> qfitmod6.py |
| 5 |
|
| 6 |
|
| 7 |
Matlab/ Octave files: |
| 8 |
OptimiseFit6.m, OptimiseFit7.m, OptimiseFit8.m, InitialFit.m and AngularWts.m (for leastsqs fits) |
| 9 |
test_qfit6.m, test_qfit6_abs.m, test_qfit7.m and test_qfit8.m (test scripts). |
| 10 |
|
| 11 |
|
| 12 |
Python files: |
| 13 |
qfitmod6.py, qfitmod7 and qfitmod8.py (for leastsqs fits and calculating unloaded Q) |
| 14 |
test_qfit6.py, test_qfit6_abs.py, test_qfit7.py and test_qfit8.py (test scripts). |
| 15 |
|
| 16 |
|
| 17 |
Data files: |
| 18 |
File Figure6b.txt contains uncalibrated S21 data for Figure 6(b) in the report (Qo=7546 is determined |
| 19 |
for A=1/0.874). |
| 20 |
|
| 21 |
File Table6c27.txt contains calibrated S11 data used in Table 6(c) for 27 MHz span. The value of |
| 22 |
Qo (862) can be determined by Method 2 assuming that the uncalibrated line is lossless (A=1.0). |
| 23 |
The 'touching circle' diameter D = 1.990 is calculated using eqn. (35)). |
| 24 |
|
| 25 |
File Figure23.txt contains uncalibrated S21 data for Figure 23. |
| 26 |
|
| 27 |
File Figure27.txt contains uncalibrated S21 data for Figure 27 (absorption/notch resonator). |
| 28 |
|
| 29 |
|
| 30 |
The code examples do not include the checks or exception handling described in |
| 31 |
MAT58 Section 2.6.1. |
| 32 |
|
| 33 |
If you make use of any of the supplied files, please cite NPL report MAT 58. |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
Creative Commons CC0 Public Domain Dedication |
| 38 |
============================================= |
| 39 |
|
| 40 |
All of the supplied data files, Python and Matlab scripts are released under the Creative |
| 41 |
Commons Licence CC0 Public Domain Dedication. |
| 42 |
|
| 43 |
To the extent possible under law, the author(s) have dedicated all copyright and related and |
| 44 |
neighbouring rights to this software to the public domain worldwide. This software is distributed |
| 45 |
without any warranty. |
| 46 |
|
| 47 |
You should have received a copy of the CC0 Public Domain Dedication along with this software. |
| 48 |
If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. |
| 49 |
|
| 50 |
|
| 51 |
Andrew Gregory, |
| 52 |
NPL, |
| 53 |
October 2021 |