% *********************************************************************
% *********************************************************************
% ***  Parameter m-file flux_parameters_*.m               	        ***
% ***  Written by LB on July 06, modified BWB 09 2014	            ***
% ***                         			                            ***
% ***  Note: - Windows path character      '\'                      ***
% *** 	       Mac-Unix path character     '/'                      ***
% *********************************************************************
% *********************************************************************
%
%% This routine sets the parameters for the cruise.

%################## Cruise informations  ########################################
cruise='HiWinGS_2013';
ship='Knorr';

% Ludo's root paths for Windows...
% Data are written to DAS in D:\cruise_yyyy\ship\instrument\Raw directory
% data_drive='D:\Data\';
% data_drive='C:\data\CRUISES\';
% Lacie_drive='G:\';

%########################### Data file paths ##########################
% adjust these paths as needed for your file system

% Mac paths...
% directory path for folders of daily raw data with YYDDD name format
way_raw_data_flux = '/Volumes/User/bblomquist/Documents/Cruises/HiWinGS_2013/Knorr/flux/Raw/';

% Set path to .../Scientific_analysis/flux/ containing procturb folder for da output
% The procturb subdirectory should have subfolders 'da', 'sp', 'co', 'cr', 'WindPlots',
% 'uvwStream', 'SpectraPlots', 'daily' and 'total'.  These are populated with files
% during motion correction and flux calculations.
% The .../Scientific_analysis/flux/ folder also contains fxyz.txt used by nau_correct.
drive_root = '/Volumes/User/bblomquist/Documents/Cruises/HiWinGS_2013/Analysis_BWB/';

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

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

% Ludo's paths...  Windows file system, used by other routines, not relevant to Mirai
% way_raw_data_flux=[data_drive cruise  '\' ship '\flux\Raw\'];      	% Raw data path
% way_proc_data_flux=[data_drive cruise  '\' ship '\flux\Processed\'];  % Processed data path
% way_spec_data_flux=[data_drive cruise  '\' ship '\flux\Processed\' ];
% way_images_flux=[data_drive cruise  '\' ship '\flux\Raw_Images\' ];

% %##################%  ceilo files %##################################
% way_images_ceilo=[data_drive cruise  '\' ship '\ceilometer\Raw_Images\']; % daily saved impates
% way_raw_data_ceilo=[data_drive cruise  '\' ship '\ceilometer\Raw\'];  % Raw Data 
% way_proc_data_ceilo=[data_drive cruise  '\' ship '\ceilometer\Processed\']; % Processed Data
% 
% %##################%  Mailbox files %################################
% way_raw_images_mb=[data_drive cruise  '\' ship '\radiometer\Mailbox\Raw_Images\'];  %daily saved images
% way_proc_images_mb=[data_drive cruise  '\' ship '\radiometer\Mailbox\Processed_Images\'];  %processed images
% way_raw_data_mb=[data_drive cruise  '\' ship '\radiometer\Mailbox\Raw\mailboxdata\'];  % Raw Data 
% way_proc_data_mb=[data_drive cruise  '\' ship '\radiometer\Mailbox\Processed\']; % Processed Data

%################## W-band radar files  ###############################
% way_raw_images_wband=[data_drive cruise  '\' ship '\radar\Wband\Raw_Images\'];  %daily saved images
% way_proc_images_wband=[data_drive cruise  '\' ship '\radar\Wband\Processed_Images\'];  %processed images
% way_raw_data_wband=[data_drive cruise  '\' ship '\radar\Wband\Raw\'];  % Raw Data 
% way_proc_data_wband=[data_drive cruise  '\' ship '\radar\Wband\Processed\']; % Processed Data
% way_raw_motion_wband=[data_drive cruise  '\' ship '\radar\wband\Raw\'];
% way_cloud_data_wband=[data_drive cruise  '\' ship '\radar\Wband\Processed\'];


%##################%  balloon files %##################################
% way_raw_images_balloon=[data_drive cruise  '\' ship '\balloon\Raw_Images\'];  %daily saved images
% way_proc_images_balloon=[data_drive cruise  '\' ship '\Processed_Images\'];  %processed images
% way_raw_data_balloon=[data_drive cruise  '\' ship '\balloon\Raw\edt\'];  % Raw Data 
% way_proc_data_balloon=[data_drive cruise  '\' ship '\balloon\Processed\']; % Processed Data


%##################%  Lacie backup directory %#########################
% way_backup_data=[Lacie_drive cruise  '\' ship '\'];      % Data back-up path on external hard disk

%Other paths not in use are commented out (not really necessary, but helps for clarity
%##################%  mwr files %######################################
% way_raw_images_mwr=[data_drive cruise  '\' ship '\radiometer\90Ghz\Raw_Images\'];   %daily saved images path
% way_raw_data_mwr=[data_drive cruise  '\' ship '\radiometer\90GHz\Raw\Sci\'];        % Raw Data 
% way_proc_data_mwr=[data_drive cruise  '\' ship '\radiometer\90GHz\Processed\']; % Processed Data

% ########## Adjustments & postcalibrations for temperature############
tsnake_adjustment = 0;   % degC;
ta_im_adjustment = 0;
ta_etl_adjustment = 0;

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

%################## Licor configuration  ##############################
flicor = 10;              % frequency (Hz)
 
%################## Clear sky model configuration #####################
k1 = 0.05;                % aerosol optical depth, band 1
k2 = 0.05;                % 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 ###################################
%HiWinGS 2013
Lonmin=-75;
Lonmax=-20;
Latmin=30;
Latmax=70;

%##################  Other parameters  ################################
% Measured on 08/2013
% zus=15.93;               % wind speed measurement height (m)
% zts=14;                  % air T measurement height (m)
% zqs=14;                  % air q measurement height (m)

zu = 16;
zu_ship = 15;    % ~ sensors height
zt = 14;
zt_ship = 15;
zq = 14;
zq_ship = 15;

%Licor is 15 m
%Byron's sonic is 16.28 m
%Riegl is 14.37 m
