Camera.update_attitude_from_function

giant.camera:

Camera.update_attitude_from_function()[source]

This method is used ot overwrite the attitude information stored in all images that are turned on with information from the attitude_function.

For each turned on image, the attitude function is queried with the observation_date attribute of the image and the resulting Rotation object is set as the new rotation_inertial_to_camera for that image. The image attitude are updated regardless of their exposure type as long as they are turned on.

When we update the attitude for an image using this method we set the OpNavImage.pointing_post_fit flag to False for the corresponding image.

Raises:

ValueError if the attitude_function is not callable.