Closed theo-armour closed 8 years ago
@theo-armour I forked the repository to check the numbers for the math errors. I will send a pull-request for your review if I can get it to work.
@mostaphaRoudsari
Not to worry. I'm on to it.
And it's interesting. SunCalc.js provides azimuth and altitude with the origin being at the location of the observer on the face of the earth. So imagine you are on the earth and looking out. You would see the analemmas as depicted in the current series. What we are looking for, however, is a different set of coordinates - those pertaining to an observer in outer space looking at the globe as a whole.
I am looking at your code and the original NOAA code - written it's own peculiar JavaScript way.
There's another bunch of issues relating to the way JavaScript handles time and getting drawing drawing maps. And these aspects are crucial in me being able to test various hypothesis.
So. perhaps, wait a day or two and I will have made a good amount of progress and will have new stuff to show.
Theo
@theo-armour,
Thanks. Interesting. I don't fully understand your explanation about SunCalc. Solar azimuth and altitude are pretty standard definitions and it's strange if a library changes the definition!
I'll hold on this then. It was a chance to learn from your code about THREE.js. I'm looking forward to your update. :)
@theo-armour,
Sorry! I couldn't stop myself to check SunCalc.js. I just sent a PR for your review.
Happi PI day
A lot of today was about cleaning up the code. But some nice things happened too. There's now a fairly easy way to get the local time at a remote location given lat, lon and UTC.
The big remaining issue is drawing analemmas correctly. No real effort was put into this issue today but the work helped clear the decks and set up the terrain for finding the problem and solving it.
The interesting question will be finding out if it is a silly error on our part or an issue with SunCalc.js
My entire lifetime experience with analemas is less than a week old. Going through the issues, however, is a fun challenge and a great learning experience
Analemma 2D
Features
Latest update: 2016-03-14 /R3
Issues
Analemma 3D
Features
Latest update: 2016-03-14 / R3
Issues
Time Remote Given Lat Lon UTC
Features
Latest update: 2016-03-14 / R3
SunCalc Sandbox
Features
Latest update: 2016-03-14 / R7