Navigation and Ancillary Information Facility NIF Derived Quantities October 2014.

Slides:



Advertisements
Similar presentations
The Ellipsoid Faculty of Applied Engineering and Urban Planning
Advertisements

Navigation and Ancillary Information Facility NIF April 2012.
Navigation and Ancillary Information Facility NIF Non-Toolkit Applications April 2012.
Navigation and Ancillary Information Facility NIF Writing an Icy Based Program June 2004.
Navigation and Ancillary Information Facility NIF Writing an Mice (MATLAB) Based Program November 2014.
General Relativity Physics Honours 2008 A/Prof. Geraint F. Lewis Rm 557, A29 Lecture Notes 2.
Navigation and Ancillary Information Facility NIF Shape Model Subsystem Preview (DSK) November 2014.
An Overview of Reference Frames and Coordinate Systems in the SPICE Context October 2014.
Navigation and Ancillary Information Facility NIF Fundamental Concepts October 2014.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
Navigation and Ancillary Information Facility NIF SPICE Geometry Finder (GF) Subsystem Searching for times when specified geometric conditions occur October.
Navigation and Ancillary Information Facility NIF “Camera-matrix” Kernel CK (Orientation or Attitude Kernel) Emphasis on reading CK files January 2009.
Navigation and Ancillary Information Facility NIF Fundamental Concepts March 2006.
Navigation and Ancillary Information Facility NIF SPICE Geometry Finder (GF) Subsystem Searching for times when specified geometric conditions occur November.
Navigation and Ancillary Information Facility NIF IDs and Names for Physical Objects and Reference Frames November 2014.
Class 19: 3D Cartesian Coordinate Computations GISC March 2009.
Two-Body Systems.
Navigation and Ancillary Information Facility NIF “Camera-matrix” Kernel CK (Orientation or Attitude Kernel) Emphasis on reading CK files October 2014.
Navigation and Ancillary Information Facility NIF Derived Quantities November 2014.
Navigation and Ancillary Information Facility NIF Shape Model Preview An overview of Current Status of and Further Development Plans for the SPICE Digital.
Navigation and Ancillary Information Facility NIF Summary of Key Points January 2009.
Navigation and Ancillary Information Facility NIF Summary of Key Points October 2014.
Navigation and Ancillary Information Facility NIF The Event Finder April 2005 (A preview of work in progress)
Navigation and Ancillary Information Facility NIF “Camera-matrix” Kernel CK (Orientation or Attitude Kernel) Emphasis on reading CK files March 2006.
Navigation and Ancillary Information Facility NIF Writing a CSPICE (C) Based Program November 2014.
Navigation and Ancillary Information Facility NIF Event Finding Subsystem Preview Capabilities, Current Status and Plans January 2009.
Navigation and Ancillary Information Facility NIF Shape Model Subsystem Preview Capabilities, Current Status and Plans January 2009.
Navigation and Ancillary Information Facility NIF Planetary Constants Kernel PCK March 2006.
Navigation and Ancillary Information Facility NIF Planetary Constants Kernel PCK November 2014.
A Quick Tour of the Universe (and this course) Part 2.
Navigation and Ancillary Information Facility NIF Exception Handling November 2014.
ADCS Review – Attitude Determination Prof. Der-Ming Ma, Ph.D. Dept. of Aerospace Engineering Tamkang University.
Navigation and Ancillary Information Facility NIF Instrument Kernel IK January 2009.
Navigation and Ancillary Information Facility NIF Using C-kernels to Capture Instrument Articulation June 28, 2002 Scott Turner
Navigation and Ancillary Information Facility NIF Dynamic Reference Frames November 2014.
Navigation and Ancillary Information Facility NIF Introduction to WebGeocalc October 2014 SPICE components and services are not restricted under ITAR and.
Navigation and Ancillary Information Facility NIF Writing a CSPICE Based Program October 2007.
Navigation and Ancillary Information Facility NIF Getting Started Using SPICE April 2006.
Navigation and Ancillary Information Facility NIF Writing an Icy (IDL) Based Program January 2009.
Navigation and Ancillary Information Facility NIF Instrument Kernel IK November 2014.
Navigation and Ancillary Information Facility NIF SPICE System Development Plans March 2006.
Navigation and Ancillary Information Facility NIF Planetary Constants Kernel PCK January 2009.
Navigation and Ancillary Information Facility NIF Planetary Constants Kernel PCK October 2014.
Comparing Two Motions Jehee Lee Seoul National University.
Navigation and Ancillary Information Facility NIF SPICE Toolkit Common Problems November 2014.
Navigation and Ancillary Information Facility NIF Using Module Headers April 2006.
Navigation and Ancillary Information Facility NIF Derived Quantities October 2007.
Navigation and Ancillary Information Facility NIF Frames Kernel FK March 2006.
Navigation and Ancillary Information Facility NIF SPICE Event Finding Subsystem October 2007.
Navigation and Ancillary Information Facility NIF Instrument Kernel IK March 2006.
Navigation and Ancillary Information Facility NIF Instrument Kernel IK November 2014.
Navigation and Ancillary Information Facility NIF SPICE Geometry Finder (GF) Subsystem Searching for times when specified geometric events occur September.
Navigation and Ancillary Information Facility NIF Writing a SPICE (FORTRAN) Based Program November 2014.
Navigation and Ancillary Information Facility NIF SPICE Toolkit Common Problems October 2007.
Navigation and Ancillary Information Facility NIF Instrument Kernel IK June 2004.
Plate_renderer (optional) N. Hirata 1. plate_renderer Tool for simulating Hayabusa's observations developed by N. Hirata – Implementing a light scattering.
Navigation and Ancillary Information Facility NIF Using the Frames Subsystem April 2016.
Navigation and Ancillary Information Facility NIF Frames Kernel FK March 2010.
Navigation and Ancillary Information Facility NIF Writing an Mice (MATLAB) Based Program October 2007.
Navigation and Ancillary Information Facility NIF Writing a SPICE-based Fortran Program October 2007.
Map Projections RG 620 May 16, 2014 Institute of Space Technology, Karachi RG 620 May 16, 2014 Institute of Space Technology, Karachi.
Navigation and Ancillary Information Facility NIF Using the Frames Subsystem March 2006.
Writing an Icy (IDL) Based Program
Fundamental Concepts April 2013.
Dynamic Reference Frames
Shape Model Subsystem Preview (DSK)
Position Coordinate Transformations
Frames Kernel FK October 2007.
Planetary Constants Kernel PCK
Presentation transcript:

Navigation and Ancillary Information Facility NIF Derived Quantities October 2014

Navigation and Ancillary Information Facility NIF Derived Quantities 2 Derived quantities are produced using data from kernels –These are the primary reason that SPICE exists! Examples are: –Lighting conditions –Surface intercept (LAT/LON) –General geometry –Coordinate system conversions –Matrix and vector operations and a special category: –Windows in time when certain events occur The SPICE Toolkit contains many routines that assist with the computations of derived quantities. –Some are fairly low level, some are quite high level. –More are being added as time permits. What are Derived Quantities?

Navigation and Ancillary Information Facility NIF Derived Quantities 3 High-level geometric quantities – These are the most interesting ones! –Lighting angles, sub-points, intercept points, season, geometric condition, geometric event finder Geometric event finder Geometric Objects –Planes –Ellipses –Ellipsoids –Rays Coordinate Systems –Spherical: latitude/longitude, co-latitude/longitude, right ascension/declination; Geodetic, Cylindrical, Rectangular, Planetographic Vector/Matrix Routines –Vector and vector derivative arithmetic –Matrix arithmetic A Quick Tour The lists on the following pages are just a subset of what’s available in the Toolkit.

Navigation and Ancillary Information Facility NIF Derived Quantities 4 Illumination angles (phase, incidence, emission) –ILUMIN* Illumination angles with any ephemeris object as the source –ILLUMG (only in Fortran toolkits) Subsolar point –SUBSLR* Subobserver point –SUBPNT* Surface intercept point –SINCPT* Longitude of the sun (L s ), an indicator of season –LSPCN Phase angle between body centers –PHASEQ Terminator on an ellipsoid –EDTERM High-level Geometric Quantities * These routines supercede the now deprecated routines ILLUM, SUBSOL, SUBPT and SRFXPT

Navigation and Ancillary Information Facility NIF Derived Quantities 5 Ray in field-of-view? –FOVRAY Ephemeris object within field-of-view? –FOVTRG Determine occultation condition –OCCULT Geometric Condition

Navigation and Ancillary Information Facility NIF Derived Quantities 6 Most SPICE routines are used to determine a quantity at a specified time. The SPICE Geometry Finder (GF) subsystem takes the opposite approach: find times, or time spans, when a specified geometric condition or event occurs. –This is such a large topic that a separate tutorial (“geometry_finder”) has been written for it. Geometric Event Finder

Navigation and Ancillary Information Facility NIF Derived Quantities 7 Ellipsoids –nearest point –surface ray intercept –surface normal –limb –slice with a plane –altitude of ray w.r.t. to ellipsoid Planes –intersect ray and plane Ellipses –project onto a plane –find semi-axes of an ellipse –NEARPT, SUBPNT, DNEARP –SURFPT, SINCPT –SURFNM –EDLIMB –INELPL –NPEDLN –INRYPL –PJELPL –SAELGV FunctionRoutine Geometric Objects

Navigation and Ancillary Information Facility NIF Derived Quantities 8 Coordinate Transformation –Transform state vector between two coordinate systems –Latitudinal to/from Rectangular –Planetographic to/from Rectangular –R.A. Dec to/from Rectangular –Geodetic to/from Rectangular –Cylindrical to/from Rectangular –Spherical to/from Rectangular Routine –XFMSTA –LATREC RECLAT –PGRREC RECPGR –RADREC RECRAD –GEOREC RECGEO –CYLREC RECCYL –SPHREC RECSPH Position and State Coordinate Transformations General purpose API Single purpose APIs

Navigation and Ancillary Information Facility NIF Derived Quantities 9 Function – – v x w – v/|v| – v x w / | v x w| – v + w – v - w – av [+ bw [+ cu]] – angle between v and w – |v| Routine – VDOT, DVDOT – VCROSS, DVCRSS – VHAT, DVHAT – UCROSS, DUCRSS – VADD, VADDG – VSUB, VSUBG – VSCL, [VLCOM, [VLCOM3]] – VSEP – VNORM v w v || v | v w VPROJ, VPERP TWOVEC, FRAME Vectors

Navigation and Ancillary Information Facility NIF Derived Quantities 10 Routine –MXV –MXM –MTXV –MTXM –MXMT –VTMV –XPOSE –INVERSE, INVSTM Matrices Function –M x v –M x M –M t x v –M t x M –M x M t –v t x M x v –M t –M -1 Selected Matrix-Vector Linear Algebra Routines M = Matrix V = Vector X = Multiplication T = Transpose

Navigation and Ancillary Information Facility NIF Derived Quantities 11 Function Routines Euler angles a x a y a z b x b y b z c x c y c z x y zx y z x y zx y z x y zx y z a x a y a z b x b y b z c x c y c z 0 EUL2M, M2EUL RAXISA, AXISAR ROTATE, ROTMAT Rotation axis and angle Matrix Conversions Q2M, M2Q Euler angles and Euler angle rates or rotation matrix and angular velocity vector Transform between 6x6 state transformation matrix a x a y a z b x b y b z c x c y c z 3x3 rotation matrix EUL2XF, XF2EUL RAV2XF, XF2RAV Transform between a x a y a z b x b y b z c x c y c z 3x3 rotation matrix Transform between a x a y a z b x b y b z c x c y c z 3x3 rotation matrix Transform between SPICE Style Quaternion (Q 0,Q 1,Q 2,Q 3 )

Navigation and Ancillary Information Facility NIF Derived Quantities 12 Coordinate Transformation –Transform state vector between two coordinate systems –Latitudinal to/from Rectangular –Planetographic to/from Rectangular –R.A. Dec to/from Rectangular –Geodetic to/from Rectangular –Cylindrical to/from Rectangular –Spherical to/from Rectangular Routine –XFMSTA –DRDLAT DLATDR –DRDPGR DPGRDR –DRDLAT DLATDR –DRDGEO DGEODR –DRDCYL DCYLDR –DRDSPH DSPHDR Velocity Coordinate Transformations - 1 General purpose API Single purpose Jacobian matrix APIs

Navigation and Ancillary Information Facility NIF Derived Quantities 13 Examples of Velocity Coordinate Transformations Using full state vector transformation API CALL SPKEZR ( TARG, ET, REF, CORR, OBS, STATE, LT ) CALL XFMSTA ( STATE, ‘RECTANGULAR’, ‘SPHERICAL’, ‘ ’, OUTSTATE ) Using velocity-only (Jacobian) APIs –Transform velocities from rectangular to spherical coordinates using the SPICE Jacobian matrix routines. The SPICE calls that implement this computation are: CALL SPKEZR ( TARG, ET, REF, CORR, OBS, STATE, LT ) CALL DSPHDR ( STATE(1), STATE(2), STATE(3), JACOBI ) CALL MXV ( JACOBI, STATE(4), SPHVEL ) –After these calls, the vector SPHVEL contains the velocity in spherical coordinates: specifically, the derivatives ( d (r) / dt, d (colatitude) / dt, d (longitude) /dt ) –Caution: coordinate transformations often have singularities, so derivatives may not exist everywhere. »Exceptions are described in the headers of the SPICE Jacobian matrix routines. »SPICE Jacobian matrix routines signal errors if asked to perform an invalid computation. This example is for rectangular to spherical

Navigation and Ancillary Information Facility NIF Examples On the next several pages we present examples of using some of the “derived quantity” APIs. Derived Quantities 14

Navigation and Ancillary Information Facility NIF Derived Quantities 15 Given the direction of an instrument boresight in a bodyfixed frame, return the illumination angles (incidence, phase, emission) at the surface intercept on a tri-axial ellipsoid phase incidence emission Computing Illumination Angles instrument boresight direction target-observer vector

Navigation and Ancillary Information Facility NIF Derived Quantities 16 CALL GETFOV to obtain boresight direction vector CALL SINCPT to find intersection of boresight direction vector with surface CALL ILUMIN to determine illumination angles emission phase incidence Computing Illumination Angles instrument boresight direction target-observer vector

Navigation and Ancillary Information Facility NIF Derived Quantities 17 Determine the intersection of the apparent line of sight vector between Earth and Cassini with Saturn’s ring plane and determine the distance of this point from the center of Saturn. Computing Ring Plane Intercepts

Navigation and Ancillary Information Facility NIF Derived Quantities 18 CALL SPKEZR to get light time corrected position of spacecraft as seen from earth at time ET in J2000 reference frame SCVEC. CALL SPKEZR to get light time corrected position of center of Saturn at time ET as seen from earth in J2000 frame SATCTR. CALL PXFORM to get rotation from Saturn body-fixed coordinates to J2000 at light time corrected epoch. The third column of this matrix gives the pole direction of Saturn in the J2000 frame SATPOL. CALL NVP2PL and use SATCTR and SATPOL to construct the ring plane RPLANE. CALL INRYPL to intersect the earth-spacecraft vector SCVEC with the Saturn ring plane RPLANE to produce the intercept point X. CALL VSUB to get the position of the intercept with respect to Saturn XSAT (subtract SATCTR from X) and use VNORM to get the distance of XSAT from the center of Saturn. Computing Ring Plane Intercepts-2 This simplified computation ignores the difference between the light time from Saturn to the earth and the light time from the ring intercept point to the earth. The position and orientation of Saturn can be re-computed using the light time from earth to the intercept; the intercept can be re-computed until convergence is attained. This computation is for the reception case; radiation is received at the earth at a given epoch “ET”.

Navigation and Ancillary Information Facility NIF Derived Quantities 19 Create a dynamic frame with one axis pointing from earth to the light time corrected position of the Cassini orbiter. Use the CN correction for this position vector. (This gives us a frame in which the direction vector of interest is constant.) Temporarily change the radii of Saturn to make the polar axis length 1 cm and the equatorial radii 1.e6 km. This can be done either by editing the PCK or by calling BODVCD to fetch the original radii, then calling PDPOOL to set the kernel pool variable containing the radii to the new values. This flat ellipsoid will be used to represent the ring plane. Use SINCPT to find the intercept of the earth-Cassini ray with the flat ellipsoid. Use the CN correction. SINCPT returns both the intercept in the IAU_SATURN frame and the earth-intercept vector. Use VNORM to get the distance of the intercept from Saturn’s center. Restore the original radii of Saturn. If PDPOOL was used to update the radii in the kernel pool, use PDPOOL again to restore the radii fetched by BODVCD. Computing Ring Plane Intercepts-3 An alternate approach

Navigation and Ancillary Information Facility NIF Derived Quantities 20 Determine when the spacecraft will be occulted by an object (such as a natural satellite) as seen from an observer (such as earth). Computing Occultation Events Spacecraft motion Direction to the observer A body such as a satellite

Navigation and Ancillary Information Facility NIF Derived Quantities 21 Select a start epoch, stop epoch and step size. –Start and stop epochs can bracket multiple occultation events –Step size should be smaller than the shortest occultation duration of interest, and shorter than the minimum interval between occultation events that are to be distinguished, but large enough to solve problem with reasonable speed. –Insert search interval into a SPICE window. This is the “confinement window.” CALL GFOCLT to find occultations, if any. The time intervals, within the confinement window, over which occultations occur will be returned in a SPICE window. –GFOCLT can treat targets as ellipsoids or points (but at least one must be an ellipsoid). –GFOCLT can search for different occultation or transit geometries: full, partial, annular, or “any.” Find Occultation Ingress/Egress Spacecraft motion Direction to the observer A body such as a satellite