function res=day2jd(year,month,day)
% conver the date to julian day
% input : 
%       year
%       month
%       day
% output:
%       Julian day (DAY of Year)

x0=datenum(year,1,1);
num=datenum(year,month,day);
res=num-x0+1;