LMAEstimator.compute_residuals

giant.calibration.estimators:

LMAEstimator.compute_residuals(model=None)

This method computes the observed minus computed residuals for the current model (or an input model).

The residuals are returned as a 2xn numpy array where n is the number of stars observed with units of pixels.

The computed values are determined by calls to model.project_onto_image for the camera_frame_directions for each image.

Parameters:

model (CameraModel | None) – An optional model to compute the residuals using. If None, then will use model.

Returns:

The observed minus computed residuals as a numpy array

Return type:

ndarray