This function:
apply_response_matching_code
= 0
= 1
use_old_code
= 1
= 0
use_phys
= 1
= 0
compute_spectra
= 0
= 1
do_thermal_mass_corrections
= 0
= 1
add_chi_micro_MHA_v3
Microconductivity processing is done on long chunks of data (multiple profiles) without gaps in data longer than 1 second. It requires at least 2000 samples (at 16 Hz, that’s 2 minutes of data)
Assumes microconductivity sampling rate is 320 Hz. For older, pre-SOM versions of the epsi/fctd boards, use 160 Hz instead of 320.
remove_sbe_preemphasisMHA
DoOneChi_MHA_v3
Computes chi for the time period specified by tlim using the parameters in chi_param following steps in the appendix of Alford Pinkel 2000
FCTD_Default_ChiParam:
fslow: 16 %Not used
fs: 160 %Used in chi_from_variance but default should be 320
gain: 22
offset: 2.7200
dTdC: 10
nsec: 0.5000
dt_sec: 2
kmin: 2
kmax: 200
min_spd: 0.5000
D: 1.4000e-07
version: '0.2'
plotit: 0
Integrates the filtered d(ucond)/dz spectrum from kmin = 1 cpm to kmax = 12.5 cpm
Calculate chi from the P/sinc2 spectrum, between kmin and kmax:
chi1=6*D*dTdC^2*sum(pcorr(ichi),'omitmissing')*dk;