function stc02_devel_log
% stc02_devel_log: Sandbox/scratch test script for ctdcal devel
% 
% DESCRIPTION: This script is a diary created from the commands issued
% during the development of ctdcal.  It is not guaranteed to run without
% error from beginning to end.  Rather, it is a summary of commands that
% have worked in specific situations.  It is a log of ideas that may or may not
% have found their way into the final product.  Use with caution.  
%
% My convention was to comment out lines which worked but only need to 
% be run once at the beginning of the calibration project. I left lines uncommented
% which may be run  multiple times without changing the outcome.
% 
% 
% AUTHOR: Derrick Snowden
%         NOAA/AOML/PhOD
%         Mon Sep 27 19:14:31 EDT 2004
% 

%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%
% EXAMPLES: 
%

% Only do this once.  Comment out after the date following...
% Mon Sep 27 19:15:13 EDT 2004 @10 /Internet Time/
% Setup stc02/ directory in 
% /doris/snowden/CTD/test/
% make_cruise_dir('/doris/snowden/CTD/test/','stc02')
% The results are listed below
%%% cd stc02
%%% ls
% bottle/      ctdcalpath.m  log/     oxy/        register_cruise.m  tmp/
% calibrated/  figures/      mfiles/  proc_data/  salts/

% for testing purposes and to minimize path conflicts I will rename the two mfiles 
% in the stc02 directory
%%%  ! mv ctdcalpath.m stc02calpath.m
%%%  ! rm register_cruise.m 
%%% ! ln -s /doris/snowden/devel/ctdcal/demos/register_cruise.m /doris/snowden/CTD/test/stc02/register_stc02.m
% register_cruise was renamed.   This is different than the 
% normal installation and is specific to development only.

% Add the following line to the stc02calpath.m file
% addpath /doris/snowden/CTD/test 
% so that the log file is in the path.


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The following lines may need to be run more than once.
% Register cruise
%%% register_cruise or register_stc02
%%% stc02calpath

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Not yet tested.
% Copy data into directory tree by hand first then use update_calibration_data
%  Alternatively, edit the register_cruise.m file to point to the right data location
% cd /doris/snowden/CTD/test/stc02 
% ! rmdir proc_data
% !  ln -s /doris/snowden/CTD/Data/stc02/proc_data/
% ! rmdir raw_data
% !  ln -s /doris/snowden/CTD/Data/stc02/raw_data/
% ! rmdir salts
% !  ln -s /doris/snowden/CTD/Data/stc02/salts/
% ! rmdir oxy
% !  ln -s /doris/snowden/CTD/Data/stc02/oxy/
% ! rmdir bottle
% !  ln -s /doris/snowden/CTD/Data/stc02/bottle/

% Load the database ...
load_btl('stc02')
load_cnv('stc02')
load_bl('stc02') % I need to get this from Carlos.
load_oxy('stc02') % This may have a problem with filenames.  
% There are more *.oxy files due to some bad titrations  see ALT1001.oxy which is 
% trash I think.

% AUTOSAL stuff is its own beast.  load_salts is the wrapper but it may need to be modified
% to address cruise specific things.  It'll get better.  
% For the stc02 calibration I performed the following steps since the file naming conventions 
% were non standard.  I copied the *n.txt files to salts/*.dat and the *.raw files to salts/*.raw.
% Then the *n.txt files were renamed to have a *.dat extension which better adhered to the way
% other cruises were handled.

% TODO: it would be nice to have a loading script that copies the files needed into a working directory locally.


% The actual function which does everything related to parsing and loading that autosal
% analysis files is load_salts.  Rename load_salts from the CTDCALDIR as load_salts_wward3 
% and place it in the CRUISEDIR/mfiles directory.  Edit it and follow the directions in the
% comments 
% NOTE: There are at least two files with the 
salts = load_salts_stc02('stc02');

% For stc02 this won't complete until I find the stc02065.bl file that is not corrupted.  
% look on the cruise cd since it is not on doris or phodnet.
make_cond_sumfile('stc02'); % Needs editing

% Begin the fitting





return


