comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: DAY OF YEAR
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: DAY OF YEAR [message #17459 is a reply to message #17452] Mon, 25 October 1999 00:00 Go to previous messageGo to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
Ben Tupper <tupper@seadas.bigelow.org> writes:

> Howdy,

> Haje Korth wrote:

>> Hi folks,
>> Sometimes RSI is driving me nuts with introducing new stuff and making
>> old stuff obsolete.
>> Can anybody tell me with their new date/time format code, how to print
>> the day of the year (doy). It should be something like:
>> a=julday(month,day,year,hour,min,sec)
>> print,a,format='(c(???????))'
>>

> You could calculate the DOY with the following.

> IDL> Today = JulDay(10,26,1999)
> IDL> BenchMark = JulDay(1,1,1999)
> IDL> print,Today-BenchMark
> 298

> Note that this DOY implies that Jan 1 is D0Y 0... which is ok for somefolks but
> not others. I can't think of the need for it, but sometimes the first DOY is
> considered DOY 1. (Just when I was getting used to counting from Zero and
> having only nine fingers!)


The *OFFICIAL* (:^]) definition of day-of-year, as used by NASA and as outlined
in the ISO-8601 standard, begins with January 1st as DOY=001.

Bill Thompson
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: (no subject)
Next Topic: Dicom-object with sequence objects

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 13:42:25 PDT 2025

Total time taken to generate the page: 0.40138 seconds