mirror of
https://gitlab.astro-wise.org/micado/atmosphericmodel.git
synced 2026-10-29 20:51:05 +00:00
Added uncertainty calculation independent of refractivity model and small bugfixes
This commit is contained in:
1 parent
ee7134da7d
commit
3ff1af98e0
18 files changed
+353
-3
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user