cspice_spkcvt |
|||

## AbstractCSPICE_SPKCVT returns the state, relative to a specified observer, of a target having constant velocity in a specified reference frame. The target's state is provided by the calling program rather than by loaded SPK files. ## I/OGiven: trgsta geometric state of a target moving at constant velocity relative to its center of motion 'trgctr', expressed in the reference frame 'trgref', at the epoch 'trgepc'. 'trgsta' is a six-dimensional vector representing position and velocity in Cartesian coordinates: the first three components represent the position of a target relative to its center of motion; the last three components represent the velocity of the target. Units are always km and km/sec. [6,1] = size(trgsta), double = class(trgsta) trgepc epoch, expressed as seconds past J2000 TDB, at which the target state 'trgsta' is applicable. For other epochs, the position of the target relative to its center of motion is linearly extrapolated from the position at 'trgepc' using the velocity component of 'trgsta'. 'trgepc' is independent of the epoch 'et' at which the state of the target relative to the observer is to be computed. [1,1] = size(trgepc), double = class(trgepc) trgctr name of the center of motion of 'trgsta'. The ephemeris of 'trgctr' is provided by loaded SPK files. Optionally, you may supply the integer ID code for the object as an integer string. For example both 'MOON' and '301' are legitimate strings that indicate the moon is the center of motion. Case and leading and trailing blanks are not significant in the string 'trgctr'. [1,c1] = size(trgctr), char = class(trgctr) or [1,1] = size(trgctr); cell = class(trgctr) trgref name of the reference frame relative to which the input state 'trgsta' is expressed. The target has constant velocity relative to its center of motion in this reference frame. Case and leading and trailing blanks are not significant in the string 'trgref'. [1,c2] = size(trgref), char = class(trgref) or [1,1] = size(trgref); cell = class(trgref) et ephemeris time at which the state of the target relative to the observer is to be computed. 'et' is expressed as seconds past J2000 TDB. 'et' refers to time at the observer's location. 'et' is independent of the target epoch 'trgepc'. [1,1] = size(et), double = class(et) outref name of the reference frame with respect to which the output state is expressed. When 'outref' is time-dependent (non-inertial), its orientation relative to the J2000 frame is evaluated in the manner commanded by the input argument 'refloc' (see description below). Case and leading and trailing blanks are not significant in the string 'outref'. [1,c3] = size(outref), char = class(outref) or [1,1] = size(outref); cell = class(outref) refloc name indicating the output reference frame evaluation locus: this is the location associated with the epoch at which this routine is to evaluate the orientation, relative to the J2000 frame, of the output frame 'outref'. The values and meanings of 'refloc' are: 'OBSERVER' Evaluate 'outref' at the observer's epoch 'et'. Normally the locus 'OBSERVER' should be selected when 'outref' is centered at the observer. 'TARGET' Evaluate 'outref' at the target epoch; letting 'ltime' be the one-way light time between the target and observer, the target epoch is et-ltime if reception aberration corrections are used et+ltime if transmission aberration corrections are used et if no aberration corrections are used Normally the locus 'TARGET' should be selected when 'outref' is 'trgref', the frame in which the target state is specified. 'CENTER' Evaluate the frame 'outref' at the epoch associated its center. This epoch, which we'll call 'etctr', is determined as follows: Let 'ltctr' be the one-way light time between the observer and the center of 'outref'. Then 'etctr' is et-ltctr if reception aberration corrections are used et+ltctr if transmission aberration corrections are used et if no aberration corrections are used The locus 'CENTER' should be selected when the user intends to obtain results compatible with those produced by cspice_spkezr. When 'outref' is inertial, all choices of 'refloc' yield the same results. Case and leading and trailing blanks are not significant in the string 'refloc'. [1,c4] = size(refloc), char = class(refloc) or [1,1] = size(refloc); cell = class(refloc) abcorr name indicating the aberration corrections to be applied to the observer-target state to account for one-way light time and stellar aberration. 'abcorr' may be any of the following: 'NONE' Apply no correction. Return the geometric state of the target relative to the observer. The following values of 'abcorr' apply to the 'reception' case in which photons depart from the target's location at the light-time corrected epoch et-ltime and *arrive* at the observer's location at 'et': 'LT' Correct for one-way light time (also called "planetary aberration") using a Newtonian formulation. This correction yields the state of the target at the moment it emitted photons arriving at the observer at 'et'. The light time correction uses an iterative solution of the light time equation. The solution invoked by the 'LT' option uses one iteration. 'LT+S' Correct for one-way light time and stellar aberration using a Newtonian formulation. This option modifies the state obtained with the 'LT' option to account for the observer's velocity relative to the solar system barycenter. The result is the apparent state of the target---the position and velocity of the target as seen by the observer. 'CN' Converged Newtonian light time correction. In solving the light time equation, the 'CN' correction iterates until the solution converges. 'CN+S' Converged Newtonian light time and stellar aberration corrections. The following values of 'abcorr' apply to the "transmission" case in which photons *depart* from the observer's location at 'et' and arrive at the target's location at the light-time corrected epoch et+ltime: 'XLT' "Transmission" case: correct for one-way light time using a Newtonian formulation. This correction yields the state of the target at the moment it receives photons emitted from the observer's location at 'et'. 'XLT+S' "Transmission" case: correct for one-way light time and stellar aberration using a Newtonian formulation This option modifies the state obtained with the 'XLT' option to account for the observer's velocity relative to the solar system barycenter. The position component of the computed target state indicates the direction that photons emitted from the observer's location must be "aimed" to hit the target. 'XCN' "Transmission" case: converged Newtonian light time correction. 'XCN+S' "Transmission" case: converged Newtonian light time and stellar aberration corrections. Neither special nor general relativistic effects are accounted for in the aberration corrections applied by this routine. Case and leading and trailing blanks are not significant in the string 'abcorr'. [1,c5] = size(abcorr), char = class(abcorr) or [1,1] = size(abcorr); cell = class(abcorr) obsrvr name of an observing body. Optionally, you may supply the ID code of the object as an integer string. For example, both 'EARTH' and '399' are legitimate strings to supply to indicate the observer is Earth. Case and leading and trailing blanks are not significant in the string 'obsrvr'. [1,c6] = size(obsrvr), char = class(obsrvr) or [1,1] = size(obsrvr); cell = class(obsrvr) the call: [state, lt] = ## 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. Use the meta-kernel shown below to load the required SPICE kernels. KPL/MK File name: spkcvt.tm This is the meta-kernel file for the header code example for the subroutine cspice_spkcvo. These kernel files can be found on the NAIF website. In order for an application to use this meta-kernel, the kernels referenced here must be present in the user's current working directory. The names and contents of the kernels referenced by this meta-kernel are as follows: File name Contents --------- -------- de421.bsp Planetary ephemeris pck00010.tpc Planet orientation and radii naif0010.tls Leapseconds earth_720101_070426.bpc Earth historical binary PCK earthstns_itrf93_050714.bsp DSN station SPK earth_topo_050714.tf DSN station FK mgs_moc_v20.ti MGS MOC instrument parameters mgs_sclkscet_00061.tsc MGS SCLK coefficients mgs_sc_ext12.bc MGS s/c bus attitude mgs_ext12_ipng_mgs95j.bsp MGS ephemeris \begindata KERNELS_TO_LOAD = ( 'de421.bsp', 'pck00010.tpc', 'naif0010.tls', 'earth_720101_070426.bpc', 'earthstns_itrf93_050714.bsp', 'earth_topo_050714.tf', 'mgs_moc_v20.ti', 'mgs_sclkscet_00061.tsc', 'mgs_sc_ext12.bc', 'mgs_ext12_ipng_mgs95j.bsp' ) \begintext Example: % % Program spkcvt_ex1 % % % This program demonstrates the use of ## ParticularsThis routine computes observer-target states for targets whose trajectories are not provided by SPK files. Targets supported by this routine must have constant velocity with respect to a specified center of motion, expressed in a caller-specified reference frame. The state of the center of motion relative to the observer must be computable using loaded SPK data. For applications in which the target has zero velocity relative to its center of motion, the CSPICE routine cspice_spkcpt { SPK, constant position target } can be used. cspice_spkcpt has a simpler interface than that of ## Required ReadingFor important details concerning this module's function, please refer to the CSPICE routine spkcvt_c. MICE.REQ FRAMES.REQ PCK.REQ SPK.REQ TIME.REQ ## Version-Mice Version 1.0.0, 11-JUN-2013, EDW (JPL) ## Index_Entriesstate of constant_velocity_target state of surface_point on extended_object state of landmark on extended_object |

Wed Apr 5 18:00:34 2017