Commit 8746b57f authored by Pierre Cazenave's avatar Pierre Cazenave

Minor formatting changes and fix the check on the times obtained from the OPeNDAP server

parent 5eaf61ec
......@@ -112,7 +112,7 @@ for aa=1:length(fields)
% Get the data time and convert to Modified Julian Day.
data_time = loaddap([ncep.(fields{aa}),'?time']);
data_attributes.(fields{aa}) = loaddap('-A',[ncep.(fields{aa})]);
timevec = datevec((data_time.time)/24+365);
data.time = greg2mjulian(timevec(:,1), timevec(:,2), timevec(:,3), ...
timevec(:,4), timevec(:,5), timevec(:,6));
......@@ -123,8 +123,8 @@ for aa=1:length(fields)
data.time = data.time(data_time_mask);
% Check the times
%[yyyy,mm,dd,hh,MM,ss] = mjulian2greg(data.time(1))
%[yyyy,mm,dd,hh,MM,ss] = mjulian2greg(data.time(end))
% Clip the data to the model domain
data_lon = loaddap([ncep.(fields{aa}),'?lon']);
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