[Kstars-devel] Atmospheric Refraction trouble

Akarsh Simha akarshsimha at gmail.com
Sat Jul 21 01:31:08 UTC 2012


> Maybe it works only because of the existence of the below-altCrit
> bug. The bug makes sure we use a function with the opposite slope
> later, so maybe it comes back and converges after many more cycles
> than it should actually take.

No, my hypothesis was wrong. Here's some output from kDebug():

kstars(9075) SkyPoint::unrefract: Yes, we are in that detestable unrefract method again. We have our seed alt =  4.97733  and initial h1 =  4.81554
kstars(9075) SkyPoint::unrefract: After iteration: h0 =  4.81554  h1 =  4.8115
kstars(9075) SkyPoint::unrefract: After iteration: h0 =  4.8115  h1 =  4.8114
kstars(9075) SkyPoint::unrefract: After iteration: h0 =  4.8114  h1 =  4.8114

So it's not going to the negative altitudes below the horizon to
resurface back to the right answer. Possibly, it's just that I don't
understand Alexey's code well.

Regards
Akarsh


More information about the Kstars-devel mailing list