Home Page History


Octave Scripts

Set of octave scripts for TF applications

allan.m, allan_cov.m, allan_modified.m, allan_overlap.m and dsplot.m are octave functions and must be added to octave path.

Add addpath('path/to/octave_scripts') to ~/.octaverc config file.

allanplot.m

compute and plot allan deviation from temporal tab spaced dataset

usage: ./allanplot.m file.dat column_i sample_rate_i gain_i ad_opt arg_save or ./allanplot.m file.dat [column_i,column_j] [sample_rate_i,sample_rate_j] [gain_i,gain_j] [ad_opt_i,ad_opt_j] arg_save

ad_opt comment
0 direct allan computation
1 drift removed ad
2 relative ad
3 relative drift removed ad

If arg_save = 1, each adev is saved in a .sig file.

allanplot_cov.m

compute and plot covariance groslambert deviation from temporal tab spaced dataset

usage: ./allanplot_cov.m file.dat column_i column_j sample_rate gain_i gain_j drift_rem_i drift_rem_j arg_save

dat2allan.m

compute Allan deviation from temporal dataset and disp the result to stdout (with tab spaced values)

example with gnuplot

set log xy
set format "%E"
plot "< dat2allan.m 'file.dat' column_i gain_i ad_opt" u 1:2:3 with yerrorlines

or

set log xy
set format "%E"
plot "< dat2allan.m 'file.dat' [column_i,column_j] [gain_i,gain_j] [ad_opt_i,ad_opt_j]" u 1:2:3 with yerrorlines

fftplot.m

compute and plot the FFT of a dataset

usage: ./fftplot.m file.dat [column_i,column_j] [gain_i,gain_j] sample_rate hpf_freq

oallanplot.m

compute and plot overlapped allan deviation from temporal tab spaced dataset

usage: ./oallanplot.m file.dat column_i sample_rate_i gain_i ad_opt or ./oallanplot.m file.dat [column_i,column_j] [sample_rate_i,sample_rate_j] [gain_i,gain_j] [ad_opt_i,ad_opt_j]

psdplot.m

compute and plot the PSD of a dataset

usage: ./psdplot.m file.dat [column_i,column_j] [gain_i,gain_j] sample_rate diff_n

The dataset is differenciated by diff_n times.

temp2allan.m

compute allan deviation and save it

usage: ./temp2allan.m file.dat [column_i,column_j] [gain_i,gain_j] [ad_opt_i,ad_opt_j]

temp2oallan.m

compute overlapped allan deviation and save it

usage: ./temp2oallan.m file.dat [column_i,column_j] [gain_i,gain_j] [ad_opt_i,ad_opt_j]


Last edited by bmarechal