sharpr |
Table of contents
ProcedureSHARPR ( Sharpen a rotation ) SUBROUTINE SHARPR ( ROT ) AbstractAdjust the columns of a matrix that is "nearly" a rotation so that they are numerically unit length and orthogonal, going from left to right in the usual printed presentation of a matrix. Required_ReadingNone. KeywordsMATRIX DeclarationsIMPLICIT NONE DOUBLE PRECISION ROT ( 3, 3 ) Brief_I/OVARIABLE I/O DESCRIPTION -------- --- -------------------------------------------------- ROT I-O The rotation matrix to be sharpened. Detailed_InputROT is a 3x3 matrix that is nearly a rotation matrix. Detailed_OutputROT is the input after sharpening the columns. ParametersNone. ExceptionsError free. 1) This routine is not meant to be used on singular or near- singular matrices (in other words, matrices with determinant close to zero). If the input matrix is singular, the output matrix may not be a rotation matrix. In any case, the results should be considered unreliable in this case. No error handling is done for invalid input matrices. FilesNone. ParticularsThis routine "sharpens" the orthogonality of a potential rotation matrix. It is intended for use in those situations in which you have a rotation matrix that may be derived from single precision inputs or that may have experienced round off errors in its construction. ExamplesSuppose that you have a rotation matrix that needs to be converted to a quaternion. The SPICE matrix to quaternion conversion routine M2Q performs error checks on the input matrix and signals an error if it does not meet the checks for a quaternion. By calling this routine you can ensure that your rotation matrix (provided it's non-singular) will pass the restrictions imposed by M2Q. CALL SHARPR ( ROT ) CALL M2Q ( ROT, Q ) Restrictions1) See the $Exceptions section above. Literature_ReferencesNone. Author_and_InstitutionN.J. Bachman (JPL) J. Diaz del Rio (ODC Space) W.L. Taber (JPL) VersionSPICELIB Version 1.1.1, 26-OCT-2021 (JDR) Edited the header to comply with NAIF standard. Removed unnecessary $Revisions section. SPICELIB Version 1.1.0, 13-OCT-2005 (NJB) Updated to remove non-standard use of duplicate arguments in VHAT call. Some header updates were made. SPICELIB Version 1.0.0, 16-SEP-1999 (WLT) |
Fri Dec 31 18:36:48 2021