millerlp / Solarlib

Arduino solar position calculator
19 stars 8 forks source link

Elevation error shortly after sunrise #1

Open millerlp opened 6 years ago

millerlp commented 6 years ago

The example Solarlib_example.ino reveals an apparent error in the calculated solar elevation shortly after sunrise each morning (jumping to very negative values like -64 to -114 when they should be slightly positive). Elevation estimates before sunrise and an hour after sunrise appear to be, and agree with the ESRL predictions. Tested using the default settings (lat/lon and time) in the Solarlib_example.ino: 36.62, -121.9, 1352030400 starting time (2012-11-04 12:00).

alexandergeiler commented 6 years ago

I can cofirm that issue. Till sunrise it seems to be ok. Then for 1 hour the values are negativ. After that they are correct again.
Location mylat 49.31, mylon 8.54 Regards, Alexander