Original Post
Hi,
I just implemented what''s in "A Practical Analytic Model for Daylight", and now I''m trying to compute the sun''s position as described in appendix 6 (page 26), but it don''t works. I''m using the following coordinates (Montreal CANADA, april 29 12:00pm):
Standard time: 12.0f
Julian day: 119.0f
Latitude: 45.5f
Longitude: 73.58333f
Meridian: 75.0f
All I get is a beautiful sunset instead of a sun at zenith. I revised over and over the formulas, and everything is correct according to the paper.Also, latitude, longitude and meridian are in degres for clarity, but I do the correct conversion in radians.
Any ideas?
Jean-Francois Dube