Commit a5d941ec authored by Pierre Cazenave's avatar Pierre Cazenave
Browse files

Add support for output file names with spaces too

parent 8024194b
......@@ -49,7 +49,7 @@ for ff = 1:nf
goback = pwd;
cd(path)
% Warn if it failed for some reason
[res, msg] = system([convsh, ' "', pp2nc_tcl, '" -i "', file{ff}, '" -o ', out]);
[res, msg] = system([convsh, ' "', pp2nc_tcl, '" -i "', file{ff}, '" -o "', out, '"']);
cd(goback)
if res ~= 0
warning('Converion of %s to NetCDF failed. Conversion output:\n%s', file{ff}, msg)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment