add paths of ac-calibration tools and plotting functions


In [ ]:
import sys
sys.path.append('../..')

import pyotc

create PSDMeasurement object - holding the power spectra of one calibration


In [ ]:
directory = '../exampleData/height_calibration_single_psds/'
fname = 'B01_1000.dat'

pm = pyotc.PSDMeasurement(warn=False)
pm.load(directory, fname)

create PSDfit object and fit the psds


In [ ]:
fmin = 0
fmax = 45e3
pf = pyotc.PSDFit(pm, bounds=(fmin, fmax))

In [ ]:
pf.setup_fit(lp_filter=True, lp_fixed=False, f3dB=8000, alpha=0.3)

In [ ]:
pf.fit_psds(fitreport=True)

In [ ]:
fig = pf.plot_fits(showLegend=False)
fig

In [ ]:
pf.print_pc_results()

In [ ]:
pf.print_ac_results()

In [ ]:
pf.write_results_to_file()

In [ ]: