Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
Day of Year... Too lazy for a two-line solution...
Hi IDL Wizards, I handle all date manipulation in my routines using JULDAY(), CALDAT, and the C() format code. Going from Day-of-Year to Julian Date is easy: Julian_Date = JULDAY(1,Day_Of_Year,Year,0,0,0) Getting Day-of-Year back out requires this, *unless you can do better*: CALDAT,Julian_Date,Null,Null,Year Day_Of_Year = Julian_Date - JULDAY(12,31,Year-1,0,0,0) I would really like a one-line solution with no stray variables. Anyone have one? --Edward H.