Re: DAY OF YEAR [message #17452] |
Tue, 26 October 1999 00:00 |
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>
<p>>Note that this DOY implies that Jan 1 is D0Y 0... which is ok for somefolks
but
<br>>not others. I can't think of the need for it, but sometimes
the first DOY is
<br>>considered DOY 1. (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> </blockquote>
Aha! That may explain why some oceanographers (satellite-kind)
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>--
Ben Tupper
Bigelow Laboratory for Ocean Science
tupper@seadas.bigelow.org
Pemaquid River Company
pemaquidriver@tidewater.net</pre>
</html>
|
|
|
Re: DAY OF YEAR [message #17459 is a reply to message #17452] |
Mon, 25 October 1999 00:00  |
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  |
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> </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> 298
<p>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!)
<br>
<pre>--
Ben Tupper
Bigelow Laboratory for Ocean Science
tupper@seadas.bigelow.org
Pemaquid River Company
pemaquidriver@tidewater.net</pre>
</html>
|
|
|