dsgp4.newton_method#

dsgp4.newton_method(tle0, time_mjd, max_iter=50, new_tol=1e-12, verbose=False, target_state=None, gravity_constant_name='wgs-84')#

This function implements the Newton-Raphson method to find the TLE elements that match a given target state. It uses the SGP4 propagator to propagate the TLE elements and compare them with the target state. The function returns the updated TLE object and the final state vector. Parameters: —————- tle0 (dsgp4.TLE): The initial TLE object to be updated. time_mjd (float): The time in MJD format. max_iter (int): The maximum number of iterations for the Newton-Raphson method. Default is 50. new_tol (float): The tolerance for convergence. Default is 1e-12. verbose (bool): If True, prints the convergence information. Default is False. target_state (torch.tensor): The target state vector to be matched. If None, the function will propagate the initial TLE object to find the target state. gravity_constant_name (str): The name of the gravity constant to be used. Default is “wgs-84”.

Returns:#

TLE: The updated TLE object. torch.tensor: The tensor of the updated elements.