StarID.project_stars¶
giant.stellar_opnav.star_identification
:
This method queries the star catalogue for predicted stars within the field of view and projects those stars onto the image using the camera model.
The star catalogue is queried using the
query_catalogue()
method and the stars are updated to the epoch specified byepoch
using the proper motion from the catalogue. Theepoch
should be specified as either a datetime object representing the UTC time the stars should be transformed to, or a float value representing the MJD year. The queried Pandas Dataframe containing the star catalogue records is stored in thequeried_catalogue_star_records
attribute.After the stars are queried from the catalogue, they are converted to inertial unit vectors and corrected for stellar aberration and parallax using the
camera_position
andcamera_velocity
values. The corrected inertial vectors are stored in thequeried_catalogue_unit_vectors
.Finally, the unit vectors are rotated into the camera frame using the
a_priori_rotation_cat2camera
attribute, and then projected onto the image using themodel
attribute. The projected points are stored in thequeried_catalogue_image_points
attribute.If requested, the formal uncertainties for the catalogue unit vectors and pixel locations are computed and stored in the
queried_weights_inertial
andqueried_weights_picture
. These are computed by transforming the formal uncertainty on the right ascension, declination, and proper motion specified in the star catalogue into the proper frame.In general this method is not called directly by the user and instead is called in the
id_stars()
method.- Parameters:
epoch (datetime | Real) – The epoch to get the star locations for
compute_weights (bool) – A boolean specifying whether to compute the formal uncertainties for the unit vectors and the pixel locations of the catalogue stars.
temperature (Real) – The temperature of the camera at the time of the image being processed
image_number (int) – The number of the image being processed