grss.fit.fit_optical.get_optical_obs#
- grss.fit.fit_optical.get_optical_obs(body_id, optical_obs_file=None, t_min_tdb=None, t_max_tdb=None, debias_lowres=True, deweight=True, eliminate=False, num_obs_per_night=5, verbose=False, accept_weights=False)#
Assemble the optical observations for a given body into an array for an orbit fit.
- Parameters:
body_id (str/int) – Target id, numbers are interpreted as asteroids, append ‘P’ for comets, start with comet type and a ‘/’ for comet designations
optical_obs_file (str, optional) – Filepath to the optical observations file, by default None
t_min_tdb (float, optional) – Minimum time (MJD TDB) for observations to be included, by default None
t_max_tdb (float, optional) – Maximum time (MJD TDB) for observations to be included, by default None
debias_lowres (bool, optional) – Flag to debias the observations using the low resolution scheme, by default False
deweight (bool, optional) – Flag to deweight the observations, by default True
eliminate (bool, optional) – Flag to eliminate too many observations from the same night, by default False
num_obs_per_night (int, optional) – Effective/Maximum number of effective observations per night, by default 5
verbose (bool, optional) – Flag to print out information about the observations, by default False
accept_weights (bool, optional) – Flag to accept the weights from the input file, by default False
- Returns:
obs_df – Optical observation data for the given body with the desired biasing and weighting
- Return type:
pandas DataFrame
- Raises:
ValueError – If deweight and eliminate are both True.
ValueError – If deweight and eliminate are both False.