In various scripts, the events variable is saved to a .mat file. However, this command doesn't work if the events variable is > 2gb, which may happen if you're using >~5000 stations in your array.
This is because MATLAB's save function saves an empty variable if the input file is > 2gb. This is a very minor issue.
Whenever saving the event variable, the following lines can be used instead of the original line, which is: save(matfilename,'event')
%
s = whos('event');
if s.bytes > 2e+9;
save(matfilename,'event','-v7.3') % Uses compression
else
save(matfilename,'event')
end
%
The exact syntax for matfilename varies slightly depending on what part of the script you're at, so this may need to be modified slightly in run_autowinpick, etc.
In various scripts, the events variable is saved to a .mat file. However, this command doesn't work if the events variable is > 2gb, which may happen if you're using >~5000 stations in your array.
This is because MATLAB's save function saves an empty variable if the input file is > 2gb. This is a very minor issue.
Whenever saving the event variable, the following lines can be used instead of the original line, which is: save(matfilename,'event')
%
s = whos('event');
if s.bytes > 2e+9;
save(matfilename,'event','-v7.3') % Uses compression
else
save(matfilename,'event')
end
%
The exact syntax for matfilename varies slightly depending on what part of the script you're at, so this may need to be modified slightly in run_autowinpick, etc.