Commit 60e1dbfa authored by Pierre Cazenave's avatar Pierre Cazenave

Fix check on the year value

parent e8d84bf9
......@@ -20,6 +20,6 @@ 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)
if ~isnumeric(year)
error('Could not parse the NCEP year from the NCEP file name. Expecting '''' or ''''')
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