grss.fit.fit_simulation.FitSimulation#
- class grss.fit.fit_simulation.FitSimulation(x_init, obs_df, cov_init=None, n_iter_max=10, de_kernel=441, nongrav_info=None, events=None, simulated_obs=None)#
- Bases: - object- Class to perform an orbit fit simulation. - __init__(x_init, obs_df, cov_init=None, n_iter_max=10, de_kernel=441, nongrav_info=None, events=None, simulated_obs=None)#
- Constructor of the FitSimulation class. - Parameters:
- x_init (dict) – Initial guess of the state vector. 
- obs_df (pandas DataFrame) – Observation data for the orbit fit 
- cov_init (array, optional) – Initial covariance matrix, by default None 
- n_iter_max (int, optional) – Number of maximum iterations to correct the orbit estimate, by default 10 
- de_kernel (int, optional) – SPICE kernel version, by default 441 
- nongrav_info (dict, optional) – Dictionary containing the non-gravitational parameters, by default None 
- events (list, optional) – List of lists containing impulsive maneuvers, by default None 
- simulated_obs (dict, optional) – Dictionary containing simulated observation data, by default None 
 
- Returns:
- None – None 
- Return type:
- NoneType 
 
 - Methods - __init__(x_init, obs_df[, cov_init, ...])- Constructor of the FitSimulation class. - filter_lsq([verbose])- Performs a least-squares fit on the observations. - plot_summary([auto_close])- Plots a summary of the orbit fit calculations. - print_summary([iter_idx, out_stream])- Prints a summary of the orbit fit calculations at a given iteration. - save(filename)- Saves the FitSimulation log to a file. - filter_lsq(verbose=True)#
- Performs a least-squares fit on the observations. - Parameters:
- verbose (bool, optional) – Flag for printing the iteration information while fitting, by default True. 
- Returns:
- None – None 
- Return type:
- NoneType 
 
 - plot_summary(auto_close=False)#
- Plots a summary of the orbit fit calculations. - Parameters:
- auto_close (bool, optional) – Flag to automatically close the figure, by default False 
- Returns:
- None – None 
- Return type:
- NoneType 
 
 - print_summary(iter_idx=None, out_stream=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)#
- Prints a summary of the orbit fit calculations at a given iteration. - Parameters:
- iter_idx (int, optional) – The iteration number to print the summary for, by default -1. 
- Returns:
- None – None 
- Return type:
- NoneType 
 
 - save(filename)#
- Saves the FitSimulation log to a file. - Parameters:
- filename (str) – The filename to save the log to. 
- Returns:
- None – None 
- Return type:
- NoneType