Commit 8dd0ada7 authored by Pierre Cazenave's avatar Pierre Cazenave

Remove the redundant check on the numeric value of the extracted year

parent 1c05a377
......@@ -20,6 +20,3 @@ function year = get_NCEP_year(file)
[~, tmp_year, ~] = fileparts(file);
tmp_year = regexp(tmp_year, '\.', 'split');
year = str2double(tmp_year(end));
if ~isnumeric(tmp_year)
error('Could not parse the NCEP year from the NCEP file name. Expecting ''uwnd.sig995.YYYY.nc'' or ''vwnd.sig995.YYYY.nc''')
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