Commit 506c7ee5 authored by Pierre Cazenave's avatar Pierre Cazenave

Add error check for the three hourly output so we only download it when it...

Add error check for the three hourly output so we only download it when it actually exists on the HYCOM server.
parent ae7f40f3
......@@ -121,6 +121,13 @@ if nargin > 2
if varargin{v + 1}
threehourly = '/3hrly';
end
if modelTime(1) >= greg2mjulian(2008, 09, 19, 0, 0, 0)
error(['The three hourly output is not ', ...
'configured for the period beyond ', ...
'2008/09/18 in this function. Please ', ...
'disable three hourly downloads, or ', ...
'edit this function to suit your needs.'])
end
end
end
end
......
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