Hello Derez,
Just an idea, would it be possible to incorporate Zenith into the Sunrise/set function, such as
ast.Sun(18,3,2012,36.198,135.86,9,108)
(Day,Month,Year,Lat,Lon,zone,zenith)
In astronomy it is also often useful to privode Julian Date, such as
ast.Sun(2456005.0487,36.198,135.86,9,108)
(JD,Lat,Lon,zone,zenith)
or for B4A:
ast.Sun(DateTime.Now,36.198,135.86,9,108)
(Ticks,Lat,Lon,zone,zenith)
It is of course up to you and your time. Your rise/set
functions are already superb and accurate!
In case you are planning to further develop the Astro library then we could join
forces and possibly embrace further functions, such as
Maximum elevation of Sun/Moon
Current Zodiac position
Azimuth/altitude
Hour angle
Light distance (for the curious)
Occurance of next full and new moons (for fishers)
Golden hours (for photographers)
etc.
I do all these computations in Basic code, but with the aid of
a library, source code can be much simplified and probably run a bit faster.
Cheers
Robert