% ------------------------------------------------------------------
% Major script file for processing log files from `scan_nbr' and 
% `scan_nav'. 
%
%
%
%Time:<Last updated on 98/10/29 at 15:10:58 by jaccard@pc34.gfi.uib.no>
%File:</home1/jaccard/data1/codas3/gfi/matlab/matlab50/scan_bin.m>


% ------------------------------------------------------------------
% Define global variables and build new matlab path.
%
% Idea taken from `setup.m' for editing profiles. The file 
% `codasgfi.m' is used to find path to gfi matlab scripts.
% 
% DO NOT EDIT THIS!
% ------------------------------------------------------------------

if exist('scanglob') ~=2 | ~isdef(who, 'NDATA'),
  scanpath('scan_bin');
  scanglob;
end

% ------------------------------------------------------------------
% User specific variables:
%
% EDIT FOLLOWING LINES:
%
%   YEAR_BASE: Year base for decimal days (4 digits). 
%   CRUISE_ID: Identification string for the cruise.
%   INSTITUTE: Identification string for your institution.
%   LOGFILE  : Name of the log file containing the header.
%   BINFILE  : Name of the binary file containing the data.
%   ASCFILE  : Name of the ascii output file in which information about the
%              data will be automatically written.
%   PSFILE   : Name of the postscript file for plots. A number will be
%              appended to this name for each subsequent plot.
%   NLINES   : Specifies the number of lines after which an information
%              message about scanning status should be given to the user.
%              This is just used to show the user that the scripts are
%              running correctly.
%   NPINGS   : Number of pings to read for each sub statistics.
%   NCATP    : Number of pings to display when viewing data.
%   NPLOTP   : Number of pings to display on plots.
%   NPSDP    : Number of pings to use for subsections of spectral
%              analysis.
%   ASC      : If not zero, a lot more information will be output in
%              the ascii output file.
% ------------------------------------------------------------------

YEAR_BASE = 1998;
CRUISE_ID = 'VEINS - SVINOY';
INSTITUTE = 'Geophysical Institute, University of Bergen';
LOGFILE   = '/data1/jaccard/CODAS/HM9714/adcp/scan/svin3.nbr.log.000';
BINFILE   = '/data1/jaccard/CODAS/HM9714/adcp/scan/svin3.nbr.log.000';
ASCFILE   = '/data1/jaccard/CODAS/HM9714/adcp/scan/svin3.nbr.asc.000';
PSFILE    = '/data1/jaccard/CODAS/HM9714/adcp/scan/svin3.nbr.ps';
NLINES    = 100;
NPINGS    = 500;
NCATP     = 20;
NPLOTP    = 250;
NPSDP     = 1000;
ASC       = 0;

% ------------------------------------------------------------------
% NO MORE EDITING BELOW:
%
% Initial logfile scanning.
% ------------------------------------------------------------------

initp;









