cspice_dvcrss |
|||

## AbstractCSPICE_DVCRSS calculates the cross product of the position components of two state vectors and the time derivative of this cross product. ## I/OGiven: s1 a SPICE state(s); s1 = (r1, dr1 ). -- dt [6,n] = size(s1); double = class(s1) s2 a second SPICE state(s); s2 = (r2, dr2 ). -- dt [6,n] = size(s2); double = class(s2) An implicit assumption exists that 's1' and 's2' are specified in the same reference frame. If this is not the case, the numerical result has no meaning. the call: dvcrss = ## ExamplesAny numerical results shown for this example may differ between platforms as the results depend on the SPICE kernels used as input and the machine specific arithmetic implementation. One can construct non-inertial coordinate frames from apparent positions of objects or defined directions. However, if one wants to convert states in this non-inertial frame to states in an inertial reference frame, the derivatives of the axes of the non-inertial frame are required. Define a reference frame with the apparent direction of the sun as seen from earth as the primary axis (x). Use the earth pole vector to define with the primary axis a primary plane of the frame. % % Load SPK, PCK, and LSK kernels, use a meta kernel for convenience. % cspice_furnsh( 'standard.tm' ) % % Define the earth body-fixed pole vector (z). The pole % has no velocity in the earth fixed frame "IAU_EARTH." % z_earth = [ 0, 0, 1, 0, 0, 0 ]'; % % Calculate the state transformation between IAU_EARTH and J2000 % at an arbitrary epoch. % utc = 'Jan 1, 2009'; et = cspice_str2et( utc ); trans = cspice_sxform( 'IAU_EARTH', 'J2000', et ); % % Transform the earth pole vector from the IAU_EARTH frame to J2000. % z_j2000 = trans * z_earth; % % Calculate the apparent state of the sun from earth at the epoch % 'et' in the J2000 frame. % target = 'Sun'; observer = 'Earth'; [state, ltime] = cspice_spkezr( target, et, 'J2000', 'LT+S', observer ); % % Define the z axis of the new frame as the cross product between % the apparent direction of the sun and the earth pole. 'z_new' cross % 'x_new' defines the y axis of the derived frame. % x_new = cspice_dvhat( state ) % % Calculate the z direction in the new reference frame then % calculate the normal of the vector and derivative of % the normal to determine the z unit vector. % z_new = ## ParticularsIn this discussion, the notation V1 x V2 indicates the cross product of vectors V1 and V2. With s1 = (r1,v1) and s2 = (r2,v2) then d dvcrss = [ r1 x r2 , -- (r1 x r2) ] dt ## Required ReadingFor important details concerning this module's function, please refer to the CSPICE routine dvcrss_c. MICE.REQ ## Version-Mice Version 1.0.0, 09-NOV-2010, EDW (JPL) ## Index_Entriescompute the derivative of a cross product |

Wed Apr 5 18:00:31 2017