diff --git a/ellipsoide.py b/ellipsoide.py index 189b49b..906da4e 100644 --- a/ellipsoide.py +++ b/ellipsoide.py @@ -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: