function days = dpyear(year)
%
% Returns the number of days in a given year. 
%
% $Id: dpyear.m,v 1.4 1998/11/09 20:19:22 dbyrne Exp $

% $Log: dpyear.m,v $
% Revision 1.4  1998/11/09 20:19:22  dbyrne
% *** empty log message ***
%
% Revision 1.1  1998/05/17 14:10:45  dbyrne
% *** empty log message ***
%
% Revision 1.1  1997/12/03 21:06:29  jimg
% Added.
%

if (isleap(year))
    days = 366;
else
    days = 365;
end

return;