Documentation for /Users/balarsen/Documents/idl/larsen/

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

euv_date/

doy2md.pro

topdoy2md

time conversion

result = doy2md(doy, year)

convert a day of year to a month day

no restrictions that I know of, could probably get rid of recursive for loop for something better

Return value

[month, day], (1 = January, ..., 12 = December) (days from 1-31)

Parameters

doy in required

the day of year (is chopped to an int) may be an array

year in required

for Pete's sake use 4-digit an arry if dirrent years or can be a scalar for all

Examples

IDL> print, doy2md(123, 2000) 5 2 IDL> print, doy2md([123,122,121, 120], 2000) 5 5 4 4 2 1 30 29 IDL> print, doy2md([123,122,121, 120], 2001) 5 5 5 4 3 2 1 30

Author information

History:

Thu Jan 24 13:38:24 2008, Brian Larsen got rid of recursive call to speed up, still cant et rid of the for loop, but got a x3 speed increase Wed Feb 7 12:03:16 2007, Brian Larsen written and tested

Statistics

Lines: 30
McCabe complexity:

File attributes

Modifcation date: Thu Dec 4 15:23:42 2008
Lines: 82
Disclaimer