Re: DAY Number in an Year
- From: Paul Van Delst <Paul.vanDelst@xxxxxxxx>
- Date: Thu, 29 Sep 2005 11:01:37 -0400
ttw@xxxxxxxxxxxxxxx wrote:
In 2003, I suggested: FUNCTION juldate (year,month,day) c c Converts DAY/MONTH/YEAR to a Julian date transformed to 2000 c IMPLICIT NONE c INTEGER juldate, day, month, year c
juldate=367*year-7*(year+(month+9)/12)/4-3*((year+(month-9)/7)/100
1 +1)/4+275*month/9+day-730516 END
The constant 730516 can be adjusted to match any date desired as the starting point or to change Gregorian dates to Julian.
But the OP uses day-of-year, not Julian date. I thought they were totally different beasties?
cheers,
paulv
-- Paul van Delst CIMSS @ NOAA/NCEP/EMC .
- References:
- DAY Number in an Year
- From: prasad413in
- Re: DAY Number in an Year
- From: ttw
- DAY Number in an Year
- Prev by Date: Re: NEWBIE QUESTION
- Next by Date: Re: NEWBIE QUESTION
- Previous by thread: Re: DAY Number in an Year
- Next by thread: Re: DAY Number in an Year
- Index(es):
Relevant Pages
|