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_in
str The filename to process.
- options
str The command-line options for Maxfilter.
- fname_out
str|None Output filename to use to store the result on the local machine. None will output to a temporary file.
- host
str The SSH/scp host to run the command on.
- fname_pos
str|None The
-hp fname_posto use with MaxFilter.- stdoutfile-like |
None Where to send stdout.
- stderrfile-like |
None Where to send stderr.
- prefix
str The text to prefix to messages.
- work_dir
str Where to store the temporary files.
- throw_errorbool
If True, throw an error if the command fails. If False, return anyway, including the code.
- fname_in
- Returns: