load_sbe control_file
This utility loads CTD data from SBE files. These are ASCII output files from package SEASOFT for SeaBird CTD. Optionally, a database with the content of bottle data can also be loaded. The producer definition file ctd_hm.def (or similar) is required in order to create the CTD database, and ctdbothm.def for the database with bottle data. This utility is a modified copy load_ctd in the CODAS package.
Unfortunately, automatic time and position stamping at acquisition time is very badly resolved by package SEASOFT. Sometime, it is even necessary to turn it off and enter data by hand. This implies that any kind of format can be encountered. In order to avoid problems, header files should be scanned for correct time and position format. This can be done with scan_sbe(1). The following formats are implemented:
Time is read from field System UpLoad Time which must contain the following space separated elements:
The first three character of the English month name. The
first character must be in upper case letter, the two other
one in lower case.
The number of the day.
The year in four digits.
Hour.
Minutes.
Seconds.
Latitude is read from field Latitude which is made up
like dd mm ss H or H dd mm ss, where
H is the hemisphere, i.e. N or S. The
character separating these elements (a space in this case) is
not important.
Longitude format is similar to the one required for latitude,
except of course the hemisphere character. It is read from the
field Longitude.
The station number is read from field Station.
The bottom depth is read from field Depth.
The control file must define the following parameters:
Name of CTD database to create.
Name (with path) of producer definition file for creating the
database.
The name of the ship (max 11 characters).
Cruise identification (max 11 characters).
Smallest value for pressure in dbar.
Largest value for pressure in dbar.
Pressure increment in dbar.
Name of file (with path) containing list of header files to parse
successively. These are files with suffix hdr.
Name of file (with path) containing list of CTD data files to parse successively. These have the same base name as the header files, but have suffix asc.
Parameters START_PRESSURE, MAX_PRESSURE and PRESSURE_INCREMENT define the grid for CTD data in the database. Only the values closest to these grid points are saved, i.e. no interpolation or extrapolation is carried out.
In addition to the parameters listed above, the following options are available:
This key word can be used to improve the clarity of the control
file and specify the beginning of options. It has no effect.
Specify this for loading data from the bottle files into a separate database. The following options must be defined:
Name (with path) of database for bottle data.
Name (with path) of producer definition file for CTD bottle
database.
File containing list of bottle files to process
successively. These have the same base name as header files,
however with suffix btl.
This keyword is mandatory and terminates the list of selected sub-options.
This keyword is mandatory and terminates the list of selected options.
The specified database files.
load_ctd(1) and
load_ctd.c is unknown