%% plasiresdat.m stores the data array that which data runs have been undertaken with
%% plasimod and can be accessed by plasires#.m.
%%

function datm=plasiresdat

% Known data sets previously calculated.
% The format of the entires is: year - res# directory - first day number - last year number
% NOTE need to use different run# directories to allow seperate runs to be stored in
% different directories to allow results from the first few days of a run to be identified and ignored
% due to being too close to initial starting conditions.
dat1=[2001 1 170 193];
dat2=[2001 2 32 41];
dat3=[];

datm=[];
z=1;
i=0;
while z
 i=i+1;
 fex=feval('exist',['dat',int2str(i)]);
 if fex>0
  eval(['datm=[datm;dat',int2str(i),'];'])
 else
  z=0;
 end
end
