tr_ctd control_file
This utility interpolates CTD data at Adcp transducer depth and profile times or positions, creating a list of temperature and salinity values. These can then be used to calibrate the speed of sound.
For each time range listed in the control file, tr_ctd will read CTD profiles from a CODAS database and interpolate temperature and salinity values at the given transducer depth. It will then regrid these values to the specified ADCP positions or times and print them to the output files.
The control file must define the following parameters:
Year base to be used for converting time into decimal days. This
value must correspond to the dates listed in the file specified
by parameter nav_file.
Name (with path) of CTD database containing the profiles to
process.
Name of file containing ADCP profile times and positions. It has
the same format as the output from getnav.
Estimated transducer depth in meter.
Keyword specifying the interpolation axis of CTD data. Possible
values are time, longitude and
latitude. If CTD data have been collected with a CTD
SeaSoar together with ADCP data, then time is probably
the best choice. If calibration of sound speed must be carried
out with data from a separate section, position values along the
section must be chosen.
Base name (with path) for output files.
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.
Number of profiles to step within the CTD database.
When regriding CTD profile data to transducer depth, a call to
fill_gaps is performed. If the distance from the next
good data to transducer depth is too large, vertical filling is
not a good idea, but horizontal interpolation with adjacent
profiles will give a better result. You can adjust this by
specifying the maximal allowed vertical gap (in the units of CTD
pressure) for vertical filling.
Specify this for converting longitude values between -180 and
+180 degree before using them.
This keyword is mandatory and terminates the list of selected options.
Finally, the control file is terminated by a list of time ranges. See time_rng(5) for the syntax of these.
Two files are generated. They have the name specified by parameter output, but the one with suffix tem contains interpolated temperature values, while the one with suffix sal contains interpolated salinity values. The format of these files is the same and has the following columns: