#NEWLINE# @ jcompile ( 'float64(float64, float64, float64, float64)' , nopython = True ) #NEWLINE# def atmospheric_refraction_correction( local_pressure , local_temp , topocentric_elevation_angle_wo_atmosphere , atmos_refract ) : #NEWLINE# #INDENT# switch = ( topocentric_elevation_angle_wo_atmosphere >= ( ( - 1.0 ) * ( 0.26667 + atmos_refract ) ) ) #NEWLINE# delta_e = ( ( ( ( ( local_pressure / 1010.0 ) * ( 283.0 / ( 273 + local_temp ) ) ) * 1.02 ) / ( 60 * np . tan ( np . radians ( ( topocentric_elevation_angle_wo_atmosphere + ( 10.3 / ( topocentric_elevation_angle_wo_atmosphere + 5.11 ) ) ) ) ) ) ) * switch ) #NEWLINE# return delta_e