function res=jd2day(year,num)
% convert julian day to calendar day
% input:
%       year
%       num - Julian day (DAY of YEAR)
% output:
%       res - vector include: day, month year
x0=datenum(year,1,1);
x=x0+num-1;
res1=datevec(x);
res=res1(1:3);