mnefun.run_sss_command

mnefun.run_sss_command(fname_in, options, fname_out, host='kasga', port=22, fname_pos=None, stdout=-1, stderr=-1, prefix='', work_dir='~/', throw_error=True, verbose=None)

Run Maxfilter remotely and fetch resulting file.

Parameters:
fname_instr

The filename to process.

optionsstr

The command-line options for Maxfilter.

fname_outstr | None

Output filename to use to store the result on the local machine. None will output to a temporary file.

hoststr

The SSH/scp host to run the command on.

fname_posstr | None

The -hp fname_pos to use with MaxFilter.

stdoutfile-like | None

Where to send stdout.

stderrfile-like | None

Where to send stderr.

prefixstr

The text to prefix to messages.

work_dirstr

Where to store the temporary files.

throw_errorbool

If True, throw an error if the command fails. If False, return anyway, including the code.

Returns:
stdoutstr

The standard output of the maxfilter call.

stderrstr

The standard error of the maxfilter call.

codeint

Only returned if throw_error=False.