04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Section 7. Installation<br />

'If it is a leap year, use this section.<br />

If (LeapYear = True) Then<br />

Select Case DOY<br />

Case Is < 32<br />

Month = 1<br />

Date = DOY<br />

Case Is < 61<br />

Month = 2<br />

Date = DOY + -31<br />

Case Is < 92<br />

Month = 3<br />

Date = DOY + -60<br />

Case Is < 122<br />

Month = 4<br />

Date = DOY + -91<br />

Case Is < 153<br />

Month = 5<br />

Date = DOY + -121<br />

Case Is < 183<br />

Month = 6<br />

Date = DOY + -152<br />

Case Is < 214<br />

Month = 7<br />

Date = DOY + -182<br />

Case Is < 245<br />

Month = 8<br />

Date = DOY + -213<br />

Case Is < 275<br />

Month = 9<br />

Date = DOY + -244<br />

Case Is < 306<br />

Month = 10<br />

Date = DOY + -274<br />

Case Is < 336<br />

Month = 11<br />

Date = DOY + -305<br />

Case Is < 367<br />

Month = 12<br />

Date = DOY + -335<br />

EndSelect<br />

'If it is not a leap year, use this section.<br />

Else<br />

Select Case DOY<br />

Case Is < 32<br />

Month = 1<br />

Date = DOY<br />

Case Is < 60<br />

Month = 2<br />

Date = DOY + -31<br />

Case Is < 91<br />

Month = 3<br />

Date = DOY + -59<br />

217

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!