Fehler in der Umrechnung korrigiert

This commit is contained in:
2026-02-05 11:36:44 +01:00
parent c15de91154
commit fb4faf9aa4

View File

@@ -335,14 +335,14 @@ class EllipsoidTriaxial:
Z = self.b * sin(beta) * sqrt(k**2 + k_**2 * sin(lamb)**2)
return np.array([X, Y, Z])
def cart2ell_yFake(self, point: NDArray) -> Tuple[float, float]:
def cart2ell_yFake(self, point: NDArray, delta_y: float = 1e-4) -> Tuple[float, float]:
"""
Bei Fehlschlagen von cart2ell
:param point: Punkt in kartesischen Koordinaten
:param delta_y: Startwert für Suche nach kleinstmöglichem delta_y
:return: ellipsoidische Breite und Länge
"""
x, y, z = point
delta_y = 1e-4
best_delta = np.inf
while True:
try: