Added uncertainty calculation independent of refractivity model and small bugfixes

This commit is contained in:
yosata committed 2022-11-13 16:15:41 +01:00
1 parent ee7134da7d
commit 3ff1af98e0
18 files changed
+353 -3

No files matched your search

+3 -3
View File
@@ -336,7 +336,7 @@ def slalib_refraction(l, zenith, conditions='STANDARD', T=288.15, p=101325,
_phi = np.deg2rad(lat) # From degrees to radians
R = []
if type(l) == float or type(l) == int:
if isinstance(l, float) or isinstance(l, int):
l = [l]
if use_pyslalib:
try:
@@ -345,13 +345,13 @@ def slalib_refraction(l, zenith, conditions='STANDARD', T=288.15, p=101325,
print('pySLALIB package not found! Try installing it first.')
for wl in l:
# If using original slalib (e.g. PySLALIB)
Refrac = slalib.sla_refro(_zenith, h, T, _P, RH, wl, phi, tlr, eps)
Refrac = slalib.sla_refro(_zenith, h, T, _P, RH, wl, _phi, tlr, eps)
R.append(np.degrees(Refrac))
# If using internal slalib port
else:
for wl in l:
Refrac = sla_refro(_zenith, h, T, _P, RH, wl, phi, tlr, eps)
Refrac = sla_refro(_zenith, h, T, _P, RH, wl, _phi, tlr, eps)
R.append(np.degrees(Refrac))
if len(l) == 1: