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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: DAY OF YEAR [message #17452] Tue, 26 October 1999 00:00
Ben Tupper is currently offline  Ben Tupper
Messages: 186
Registered: August 1999
Senior Member
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
William Thompson wrote:
<blockquote TYPE=CITE>&nbsp;
<p>>Note that this DOY implies that Jan 1 is D0Y 0... which is ok for somefolks
but
<br>>not others.&nbsp;&nbsp; I can't think of the need for it, but sometimes
the first DOY is
<br>>considered DOY 1.&nbsp;&nbsp;&nbsp; (Just when I was getting used
to counting from Zero and
<br>>having only nine fingers!)
<p>The *OFFICIAL* (:^]) definition of day-of-year, as used by NASA and
as outlined
<br>in the ISO-8601 standard, begins with January 1st as DOY=001.
<br>&nbsp;</blockquote>
Aha!&nbsp;&nbsp; That may explain why some oceanographers (satellite-kind)&nbsp;
use JAN 1st as DOY 001 and other oceanographers (dipnet-kind) prefer JAN
1st as DOY 000.
<br>Thanks for the info.
<p>Ben
<pre>--&nbsp;
Ben Tupper

Bigelow Laboratory for Ocean Science
tupper@seadas.bigelow.org

Pemaquid River Company
pemaquidriver@tidewater.net</pre>
&nbsp;</html>
Re: DAY OF YEAR [message #17459 is a reply to message #17452] Mon, 25 October 1999 00:00 Go 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
Re: DAY OF YEAR [message #17461 is a reply to message #17459] Mon, 25 October 1999 00:00 Go to previous message
Ben Tupper is currently offline  Ben Tupper
Messages: 186
Registered: August 1999
Senior Member
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Howdy,
<p>Haje Korth wrote:
<blockquote TYPE=CITE>Hi folks,
<br>Sometimes RSI is driving me nuts with introducing new stuff and making
<br>old stuff obsolete.
<br>Can anybody tell me with their new date/time format code, how to print
<br>the day of the year (doy). It should be something like:
<br>a=julday(month,day,year,hour,min,sec)
<br>print,a,format='(c(???????))'
<br>&nbsp;</blockquote>
You could calculate the DOY with the following.
<p>IDL> Today = JulDay(10,26,1999)
<br>IDL> BenchMark = JulDay(1,1,1999)
<br>IDL> print,Today-BenchMark
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 298
<p>Note that this DOY implies that Jan 1 is D0Y 0... which is ok for somefolks
but not others.&nbsp;&nbsp; I can't think of the need for it, but sometimes
the first DOY is considered DOY 1.&nbsp;&nbsp;&nbsp; (Just when I was getting
used to counting from Zero and having only nine fingers!)
<br>&nbsp;
<pre>--&nbsp;
Ben Tupper

Bigelow Laboratory for Ocean Science
tupper@seadas.bigelow.org

Pemaquid River Company
pemaquidriver@tidewater.net</pre>
&nbsp;</html>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: (no subject)
Next Topic: Dicom-object with sequence objects

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

Current Time: Wed Oct 08 13:44:22 PDT 2025

Total time taken to generate the page: 0.00499 seconds