Notes on Celestial Navigation

CNREF - Estimate the refraction of a celestial body

Description: Estimates the refraction to be applied (along with semidiameter if required) to the apparent height of a celestial object. The calculated refraction is to be subtracted from the apparent height.

Inputs:

HaThe apparent height of the celestial object

Outputs:

RefractionThe estimated refraction (to be subtracted)

Sample execution:

Ha? 30,0

Refraction: 0° 01.7'

(For explanation of notation, conventions etc, see python-programs).



Copyright (C) 2024 Ian Staniforth

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.


# CNREF - Calculate refraction for an object at a given apparent height

from math import *
from CN_LIB import *

ha = stod("Ha? ")

r = Cot(ha+(7.31/(ha+4.4)))/60

print("")
print("Refraction: "+dtos(r))