function ep2shutterlook(NumOfDays) % EP2SHUTTERLOOK - Opens the files \oasis\eqpac\ep2\shutter and plots the % shutter operations % % Requires: READEQPAC % Peter Strutton % 29 Dec 1998; Brian Schlining % Prompt for input if no input arguments are specified if ~nargin NumOfDays = str2num(input('How many days of data would you like to view? ','s')); end % Set the path to the data file depending on what type of machine this function is run from switch computer case 'PCWIN' % Assumes the pwd is /oasis/epqac/brian/ %PathS = ['..\ep2\']; PathS = ['//tsunami.shore.mbari.org/oasis/eqpac/ep2/']; otherwise % Assigns an absolute path in UNIX PathS = ['/hosts/tsunami/oasis/eqpac/ep2/']; end loc = '2S 170W'; FileLoc = [PathS 'shutter']; X = readeqpac(FileLoc, NumOfDays); fig1 = figure; set(fig1,'Name','Shutter diagnostics') plot(X(:,1),X(:,2:9)) legend('Operations','Open attempts', 'Close attempts', 'Total errors', 'Timeouts', 'Collisions', 'Redundants', 'Oasis errors',0); ylabel(['Shutter diagnostics at ' loc]); xlabel('Date'); if NumOfDays < 50 dtick = 6; else dtick = 3; end datetick('x',dtick) setfontsize(7)