@ Batch File Processing
@ The format for SBEBatch is:
@ sbebatch filename parameters

@ MODULE	PROCESS NAME
@ Align CTD 	Alignctd
@ ASCII In 	Asciiin
@ ASCII Out 	Asciiout
@ Bin Average 	Binavg
@ Bottle Summary 	Bottlesum   *
@ Buoyancy 	Buoyancy
@ Cell Thermal Mass 	Celltm
@ Data Conversion 	Datcnv
@ Derive 	Derive
@ Filter 	Filter
@ Loop Edit 	Loopedit
@ Mark Scan 	Markscan
@ SeaPlot 	Seaplot
@ Section 	Section
@ Split 	Split
@ Strip 	Strip
@ Translate 	Trans
@ Wild Edit 	Wildedit
@ Window Filter 	Wfilter

@ PARAMETER	DESCRIPTION
@ /cString	Use String as instrument configuration (.con) file. String must include full path and file name.
@ /iString	Use String as input file name. String must include full path and file name.
@ /oString	Use String as output directory (not including file name).
@ /fString	Use String as output file name (not including directory).
@ /aString	Append String to output file name (before file name extension).
@ /pString	Use String as Program Setup (.psa) file. String must include full path and file name.

@ To process data using a batch file:
@ 1	Run each software module, entering the desired choices in the File Setup and Data Setup dialog boxes (for SeaPlot, enter the desired choices in the File Setup, Plot Setup, and Axis Setup tabs). Upon completing setup, press Save or Save As on the File Setup tab. The configuration is stored in the Program Setup File (.psa).
@ 2	Create a batch file to process the data.

@ Example : Process Several Files, and Overwrite All Intermediate Files
@ Process all data files in c:\seabird\data. The data files are c:\seabird\cast1.dat and c:\seabird\cast2.dat, and the .con file is c:\seabird\cast.con.
@Set up each software module, entering desired choices in Setup dialog boxes. In the File Setup dialog boxes, delete the output file name (this allows program to base output file name on input file name and any appended text). Set the output file path as c:\seabird.

@ Create a batch file named batch_ctd in c:\seabird, which contains:

@ Lines starting with @ are comment lines
@ Comment lines have no effect on the results
datcnv  /i%1\data\*.dat  /p%1\datcnv.psa /c%1\data\Fichier.con /a_dc /o%1\out
filter  /i%1\out\*_dc.cnv  /p%1\Filter.psa /a_fl /o%1\out
@ alignctd  /i%1\out\*_fl.cnv  /p%1\AlignCTD.psa /a_ali /o%1\out
celltm  /i%1\out\*_fl.cnv  /p%1\CellTM.psa /a_ctm /o%1\out
loopedit  /i%1\out\*_ctm.cnv  /p%1\LoopEdit.psa /a_lo /o%1\out
binavg  /i%1\out\*_lo.cnv   /p%1\BinAvg.psa /a_bav /o%1\out
derive  /i%1\out\*_bav.cnv  /p%1\Derive.psa /c%1\data\Fichier.con /a_dv  /o%1\out
split  /i%1\out\*_dv.cnv   /p%1\Split.psa /a_spli /o%1\out
asciiout  /i%1\out\*_spli.cnv  /p%1\ascii.psa  /o%1\asc
seaplot  /i%1\out\d*_spli.cnv /p%1\SeaPlot.psa /o%1\jpeg

@ execute sbebatch c:\seabird\batch_ctd c:\seabird

