Home > ctdcal > demos > stc02_devel_log.m

stc02_devel_log

PURPOSE ^

stc02_devel_log: Sandbox/scratch test script for ctdcal devel

SYNOPSIS ^

function stc02_devel_log

DESCRIPTION ^

 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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function stc02_devel_log
0002 % stc02_devel_log: Sandbox/scratch test script for ctdcal devel
0003 %
0004 % DESCRIPTION: This script is a diary created from the commands issued
0005 % during the development of ctdcal.  It is not guaranteed to run without
0006 % error from beginning to end.  Rather, it is a summary of commands that
0007 % have worked in specific situations.  It is a log of ideas that may or may not
0008 % have found their way into the final product.  Use with caution.
0009 %
0010 % My convention was to comment out lines which worked but only need to
0011 % be run once at the beginning of the calibration project. I left lines uncommented
0012 % which may be run  multiple times without changing the outcome.
0013 %
0014 %
0015 % AUTHOR: Derrick Snowden
0016 %         NOAA/AOML/PhOD
0017 %         Mon Sep 27 19:14:31 EDT 2004
0018 %
0019 
0020 %
0021 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0022 
0023 %
0024 % EXAMPLES:
0025 %
0026 
0027 % Only do this once.  Comment out after the date following...
0028 % Mon Sep 27 19:15:13 EDT 2004 @10 /Internet Time/
0029 % Setup stc02/ directory in
0030 % /doris/snowden/CTD/test/
0031 % make_cruise_dir('/doris/snowden/CTD/test/','stc02')
0032 % The results are listed below
0033 %%% cd stc02
0034 %%% ls
0035 % bottle/      ctdcalpath.m  log/     oxy/        register_cruise.m  tmp/
0036 % calibrated/  figures/      mfiles/  proc_data/  salts/
0037 
0038 % for testing purposes and to minimize path conflicts I will rename the two mfiles
0039 % in the stc02 directory
0040 %%%  ! mv ctdcalpath.m stc02calpath.m
0041 %%%  ! rm register_cruise.m
0042 %%% ! ln -s /doris/snowden/devel/ctdcal/demos/register_cruise.m /doris/snowden/CTD/test/stc02/register_stc02.m
0043 % register_cruise was renamed.   This is different than the
0044 % normal installation and is specific to development only.
0045 
0046 % Add the following line to the stc02calpath.m file
0047 % addpath /doris/snowden/CTD/test
0048 % so that the log file is in the path.
0049 
0050 
0051 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0052 % The following lines may need to be run more than once.
0053 % Register cruise
0054 %%% register_cruise or register_stc02
0055 %%% stc02calpath
0056 
0057 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0058 % Not yet tested.
0059 % Copy data into directory tree by hand first then use update_calibration_data
0060 %  Alternatively, edit the register_cruise.m file to point to the right data location
0061 % cd /doris/snowden/CTD/test/stc02
0062 % ! rmdir proc_data
0063 % !  ln -s /doris/snowden/CTD/Data/stc02/proc_data/
0064 % ! rmdir raw_data
0065 % !  ln -s /doris/snowden/CTD/Data/stc02/raw_data/
0066 % ! rmdir salts
0067 % !  ln -s /doris/snowden/CTD/Data/stc02/salts/
0068 % ! rmdir oxy
0069 % !  ln -s /doris/snowden/CTD/Data/stc02/oxy/
0070 % ! rmdir bottle
0071 % !  ln -s /doris/snowden/CTD/Data/stc02/bottle/
0072 
0073 % Load the database ...
0074 load_btl('stc02')
0075 load_cnv('stc02')
0076 load_bl('stc02') % I need to get this from Carlos.
0077 load_oxy('stc02') % This may have a problem with filenames.
0078 % There are more *.oxy files due to some bad titrations  see ALT1001.oxy which is
0079 % trash I think.
0080 
0081 % AUTOSAL stuff is its own beast.  load_salts is the wrapper but it may need to be modified
0082 % to address cruise specific things.  It'll get better.
0083 % For the stc02 calibration I performed the following steps since the file naming conventions
0084 % were non standard.  I copied the *n.txt files to salts/*.dat and the *.raw files to salts/*.raw.
0085 % Then the *n.txt files were renamed to have a *.dat extension which better adhered to the way
0086 % other cruises were handled.
0087 
0088 % TODO: it would be nice to have a loading script that copies the files needed into a working directory locally.
0089 
0090 
0091 % The actual function which does everything related to parsing and loading that autosal
0092 % analysis files is load_salts.  Rename load_salts from the CTDCALDIR as load_salts_wward3
0093 % and place it in the CRUISEDIR/mfiles directory.  Edit it and follow the directions in the
0094 % comments
0095 % NOTE: There are at least two files with the
0096 salts = load_salts_stc02('stc02');
0097 
0098 % For stc02 this won't complete until I find the stc02065.bl file that is not corrupted.
0099 % look on the cruise cd since it is not on doris or phodnet.
0100 make_cond_sumfile('stc02'); % Needs editing
0101 
0102 % Begin the fitting
0103 
0104 
0105 
0106 
0107 
0108 return
0109 
0110

Generated on Fri 08-Oct-2004 11:57:17 by m2html © 2003