dayofclimyear.c File Reference

Compute day of year of 366-day climatological year given a day and a month. More...

#include <clim.h>
Include dependency graph for dayofclimyear.c:

Go to the source code of this file.

Functions

int dayofclimyear (int day, int month)
 Compute day of year of 366-day climatological year given a day and a month.

Detailed Description

Compute day of year of 366-day climatological year given a day and a month.

Definition in file dayofclimyear.c.


Function Documentation

int dayofclimyear ( int  day,
int  month 
)

Compute day of year of 366-day climatological year given a day and a month.

Parameters:
[in] day Day of the month.
[in] month Month of the year.

Definition at line 59 of file dayofclimyear.c.

Referenced by find_the_days(), and remove_seasonal_cycle().

00059                                   {
00065   int daysinmonth[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
00066   int m;
00067   int dayofclimy = 0;
00068 
00069   for (m=0; m<=(month-2); m++)
00070     dayofclimy += daysinmonth[m];
00071   dayofclimy += day;
00072 
00073   return dayofclimy;
00074 }


Generated on 12 May 2016 for DSCLIM by  doxygen 1.6.1