% *********************************************************************
% *********************************************************************
% ***  Parameter m-file flux_eval_XXX.m.               	    ***
% ***  Written by LB on July 06			                    ***
% ***                         			                    ***
% ***  Note: - Do not forget to put the character '\' at the end    ***
% *** 	   of each path!                                        ***
% ***        - Comment style is '%'	                                ***
% *********************************************************************
% *********************************************************************
%
%This routine sets the parameters for the cruise.

%################## Cruise informations  ##################################################################
cruise='STRATUS_2015';     % Cruise name, for example 'STRATUS_2009', 'TOTO_1969', etc...
ship='Cabo_de_Hornos';     % Research vessel
% data_drive='D:\Data\';
data_drive = '/Users/byronb/Raw_Data_Files.noindex';
% Lacie_drive='H:\';

% Data are being written to DAS in D:\cruise_yyyy\ship\instrument\Raw directory
%################## Flux programs and files %####################################
way_raw_data_flux = fullfile(data_drive,cruise,ship,'flux','Raw');          % Raw data path
way_proc_data_flux = fullfile(data_drive,cruise,ship,'flux','Processed');   % Processed data path
way_spec_data_flux = fullfile(data_drive,cruise,ship,'flux','Processed');
way_images_flux = fullfile(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 flux observations
tsnake_adjustment = 0;   % degC;
ta_im_adjustment = 0;
ta_etl_adjustment = 0;

%################## Sonic configuration  ##################################################################
sonicmodel = 'R3A';             % Sonic model
fsonic = 10;                    % frequency (Hz)
rotationsonic = true;          % 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 #########################################################
% STRATUS_2015
Lonmin = -90;
Lonmax = -65;
Latmin = -35;
Latmax = -15;

%##################  Other parameters  #####################################################
% Waterline to base of tower = 7.16 m.  Assume tower is 10m and sonic volume is 1m
% above top of tower.  Assume T/TH is 3 m below sonic volume.
% Verify tower distances on 4/xx/2015:
zus = 15.6;                % wind speed measurement height (m)
zts = 14.1;                % air T measurement height (m)
zqs = 14.1;                % air q measurement height (m)

