calc_gamma
- ssapy.compute.calc_gamma(r, t)[source][source]
Calculate the gamma angle between position and velocity vectors in the ITRF frame.
Parameters: r (numpy.ndarray): The position vectors in the GCRF frame, shaped (n, 3), where n is the number of vectors. t (numpy.ndarray or astropy.time.Time): The times corresponding to the position vectors. Can be an array of GPS seconds or an Astropy Time object.
Returns: numpy.ndarray: An array of gamma angles in degrees between the position and velocity vectors for each time point.
Notes: - This function first converts the given position vectors from the GCRF frame to the ITRF frame. - It then calculates the angle between the position and velocity vectors at each time point in the ITRF frame. - If the input time array is an Astropy Time object, it converts it to GPS time before processing.