Skip to content

Commit

Permalink
fix: ✏️ fix bug with h vs el
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Aug 8, 2022
1 parent 067d704 commit 9affaaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/sun-math.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ export class SunMath {
let el = SunMath.elevation(H, phi, dec);
const az = SunMath.azimuth(H, phi, dec);

el += SunMath.astroRefraction(h); // elevation correction for refraction
el += SunMath.astroRefraction(el); // elevation correction for refraction

return {
az,
Expand Down

0 comments on commit 9affaaf

Please sign in to comment.