ctdclient.model.runseasave module¶
- class ctdclient.model.runseasave.RunSeasave[source]¶
Bases:
objectCalls the seasave.exe with the specified command line arguments. In preparation for this, the Seasave.psa will be configured with the paths to XMLCON and hex file.
- Parameters:
current_filename (Path) – The file name of the new file
bottles (BottleClosingDepths) – The water bottle information
platform (str) – CTD platform descriptor
cast (str) – CTD cast number
operator (str) – The name of the CTD operator
station (str) – The DSHIP station information
downcast (bool = True) – Whether to close water bottles on downcast
autostart (bool = True) – Whether to skip confirmations inside seasave and just run
- run(downcast=True, autostart=True)[source]¶
Executes the seasave.exe with given command line arguments.
- Parameters:
downcast – Whether to close water bottles on downcast
autostart – Whether to skip confirmations inside seasave and just run
- Return type:
Popen
- update_psa(current_filename, bottles, platform, cast, operator, station, autostart=False)[source]¶
Writes custom metadata and water bottle depths to SeasavePsa.
- Parameters:
current_filename (
Path) – The file name of the new filebottles (
BottleClosingDepths) – The water bottle informationplatform (
str) – CTD platform descriptorcast (
str) – CTD cast numberoperator (
str) – The name of the CTD operatorstation (
str) – The DSHIP station informationdowncast (bool = True) – Whether to close water bottles on downcast
autostart (
bool) – Whether to skip confirmations inside seasave and just run
- Return type:
bool
- set_seasave_command_line_parameters(downcast=True, autostart=False)[source]¶
Builds command line argument list for usage in the run method.
- Parameters:
downcast (bool = True) – Whether to close water bottles on downcast
autostart (bool = True) – Whether to skip confirmations inside seasave and just run
- Return type:
list