%**************************************************************************
%long_coil_anal_param
%This file contains the parameters used by the long coil analysis
%program.
%
%Zachary Wolf
%9/05/08

function [param] = long_coil_anal_param()

%Input file parameters
INPUT_FILE_DIR = 'C:\Magdata\Long Coil\';
INPUT_FILE_NAME = 'ufint_integrals_summary_5_10_2016.txt';
INPUT_FILE_TYPE = 'VAR_GAP';  %'ONE_GAP', 'VAR_GAP'

%Measurement parameters
MEAS_TYPE = 'ALL';

%Measurement data correction information
%I_corr = CORR_MULT * I + CORR_ADD + CORR_ADD_FILE
CORR_REQUIRED = false;                     %Logical variable whether to apply a correction to the measured field integrals
CORR_MULT = 1;                             %Multiplicative correction factor for integral
%CORR_ADD = -8.3657e-5;  %Subtract I1x from Earth field     %Additive constant correction for integral (Tm or Tm^2)
%CORR_ADD = -2.0166e-4;  %Subtract I2x from Earth field     %Additive constant correction for integral (Tm or Tm^2)
%CORR_ADD = 1.5671e-4;  %Subtract I1y from Earth field     %Additive constant correction for integral (Tm or Tm^2)
CORR_ADD = 3.8063e-4;  %Subtract I2y from Earth field     %Additive constant correction for integral (Tm or Tm^2)
%CORR_ADD = -5.3179e-5;  %Subtract I1x_outside from Earth field     %Additive constant correction for integral (Tm or Tm^2)
%CORR_ADD = -1.2944e-4;  %Subtract I2x_outside from Earth field     %Additive constant correction for integral (Tm or Tm^2)
%CORR_ADD = 9.4041e-5;  %Subtract I1y_outside from Earth field     %Additive constant correction for integral (Tm or Tm^2)
%CORR_ADD = 2.2958e-4;  %Subtract I2y_outside from Earth field     %Additive constant correction for integral (Tm or Tm^2)
CORR_ADD_FILE = 'none';                    %No correction from a file
%CORR_BXY_ADD_FILE = 'c:\Magdata\Earth Field Correction\earth_field_corr.dat';  %Name of file containing additive correction data for field integrals, 'none' for no correction

%Setup parameters
%COIL_LENGTH = 4.7498;  %(m)
%UND_START_POS = 1.51384;  %(m)
%UND_END_POS = COIL_LENGTH - 1.54686;  %(m)

%Make the parameter structure
param.input_file_dir = INPUT_FILE_DIR;
param.input_file_name = INPUT_FILE_NAME;
param.input_file_type = INPUT_FILE_TYPE;
param.meas_type = MEAS_TYPE;
param.corr_required = CORR_REQUIRED;
param.corr_mult = CORR_MULT;
param.corr_add = CORR_ADD;
param.corr_add_file = CORR_ADD_FILE;
%param.coil_length = COIL_LENGTH;
%param.und_start_pos = UND_START_POS;
%param.und_end_pos = UND_END_POS;
