% *********************************************************************
% *********************************************************************
% ***  Parameter m-file for run_Calwater_2015.m                     ***
% ***  Original by LB, Jul 2006                                     ***
% ***  Updated by BWB, Apr 2015                                     ***
% *********************************************************************
% *********************************************************************
%
% This routine sets the parameters for the cruise.

%% set os-specific variables
sep = '/';  % mac/unix
% sep = '\';  % Windows

%% cruise ID and paths
cruise = 'CalWater_2015';    % Cruise name
ship = 'RHB';                % Research vessel
data_drive = '/Users/byronb/Raw_Data_Files.noindex/'; % cruise data root

% data paths relative to data_drive
way_raw_data_flux = [data_drive,cruise,sep,ship,sep,'flux',sep,'Raw',sep];
way_proc_data_flux = [data_drive,cruise,sep,ship,sep,'flux',sep,'Processed',sep];
way_images_flux = [data_drive,cruise,sep,ship,sep,'flux',sep,'Raw_Images',sep];
way_proc_images_flux = [data_drive,cruise,sep,ship,sep,'flux',sep,'Processed_Images',sep];

% procturb subdirectory for saving corrected wind plots
path_windPlots = [way_proc_data_flux,'procturb',sep,'WindPlots',sep];

% procturb subdirectory for saving corrected wind data
path_uvwStreamData = [way_proc_data_flux,'procturb',sep,'uvwStream',sep];

% procturb subdirectory for saving motion data
path_motionData = [way_proc_data_flux,'procturb',sep,'motion',sep];

%% Adjustments & postcalibrations for flux observations
tsnake_adjustment = -2; %degC;
ta_im_adjustment = 0;
ta_etl_adjustment = 0;
t_case1_adjustment = 0;
t_dome1_adjustment = 0;
t_case2_adjustment = 0;
t_dome2_adjustment = 0;

%% Sonic configuration
sonicmodel = 'WindMasterPro'; % Sonic model
fsonic = 10;                  % frequency (Hz)
rotationsonic = false;        % rotate 30 deg = true
outputsonic = 1;    % Ts output: 0 = speed of sound, 1 = degC

%% Licor configuration
flicor = 10;    %frequency (Hz)

%% Clear sky model configuration
k1 = 0.1;     % aerosol optical depth, band 1
k2 = 0.1;     % aerosol optical depth, band 2
oz = 0.2;     % column ozone
iv = 3.5;     % column water vapor (cm), if not calculated from obs.

%% Track map limits
Lonmin = -160;
Lonmax = -110;
Latmin = 15;
Latmax = 45;

%% Other parameters
% as measured on 01/13/2015
% waterline to base of tower = 7.16 m.
zu = 18.16;         %wind speed measurement height (m): 7.16m + 11m
zt = 16.5;          %air T measurement height (m)
zq = 16.5;          %air q measurement height (m)
zP = 10;            %psd pressure sensor height

zu_ship = 15;      % ship SCS sensor heights
zt_ship = 15;
zq_ship = 15;
zP_ship = 15;
