DOY2EX takes a day of year and a year and returns the seven element array containing the date. IDL> daytim = doy(doy, year)