dsgp4.util.initialize_tle#
- dsgp4.util.initialize_tle(tles, gravity_constant_name='wgs-84', with_grad=False)#
This function takes a single dsgp4.tle.TLE object or a list of dsgp4.tle.TLE objects and initializes the SGP4 propagator. This is a necessary step to be ran before propagating TLEs (e.g. before calling propagate function).
Parameters:#
tles (
dsgp4.tle.TLE
orlist
ofdsgp4.tle.TLE
): TLE object or list of TLE objects to be initialized gravity_constant_name (str
): name of the gravity constant to be used (default: “wgs-84”) with_grad (bool
): whether to use gradients or not (default: False)Returns:#
tle_elements (
torch.tensor
): tensor of TLE parameters (especially useful to retrieve gradients, when with_grad is True)