Navigation and Ancillary Information Facility NIF Instrument Kernel IK June 2004.

Slides:



Advertisements
Similar presentations
Navigation and Ancillary Information Facility NIF Instrument Kernel IK April 2012.
Advertisements

Navigation and Ancillary Information Facility NIF SPICE Conventions A summary of many “standards,” lingo and common usage within SPICE April 2006.
Navigation and Ancillary Information Facility NIF April 2012.
Navigation and Ancillary Information Facility NIF Non-Toolkit Applications November 2014.
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.
You will need your think book.. Review… An angle is … Draw an angle with points A, B, C Label the angle ABC or CBA Point to the vertex of the angle. A.
Navigation and Ancillary Information Facility NIF Shape Model Subsystem Preview (DSK) November 2014.
Navigation and Ancillary Information Facility NIF Matlab Interface to CSPICE “Mice” How to Access the CSPICE library Using Matlab © November 2014 © The.
Navigation and Ancillary Information Facility NIF Leapseconds and Spacecraft Clock Kernels LSK and SCLK November 2014.
Navigation and Ancillary Information Facility NIF Introduction to Kernels October 2014.
Navigation and Ancillary Information Facility NIF Obtaining SPICE Components Offered by NAIF Emphasis on Kernels March 2010.
Navigation and Ancillary Information Facility NIF MATLAB Interface to CSPICE “Mice” How to Access the CSPICE library Using MATLAB © October 2007 © The.
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 “Comments” In SPICE Kernels Also known as “meta-data” November 2014.
Navigation and Ancillary Information Facility NIF SPICE Conventions A summary of standards, lingo and common usage within SPICE November 2014.
Navigation and Ancillary Information Facility NIF IDs and Names for Physical Objects and Reference Frames November 2014.
Part 6: Graphics Output Primitives (4) 1.  Another useful construct,besides points, straight line segments, and curves for describing components of a.
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 Preview of a Web-based GUI Interface to SPICE “WebGeocalc” The NAIF and UCD Teams August 22, 2011 SPICE.
Navigation and Ancillary Information Facility NIF Leapseconds and Spacecraft Clock Kernels LSK and SCLK April 2006.
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 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 IDL Interface to CSPICE “Icy” How to Access the CSPICE library Using Interactive Data Language (IDL)
Navigation and Ancillary Information Facility NIF IDL Interface to CSPICE “Icy” How to Access the CSPICE library Using Interactive Data Language (IDL)
Navigation and Ancillary Information Facility NIF Planetary Constants Kernel PCK March 2006.
Navigation and Ancillary Information Facility NIF NAIF IDs and Names for Physical Objects and Reference Frames March 2006.
Navigation and Ancillary Information Facility NIF Planetary Constants Kernel PCK November 2014.
Navigation and Ancillary Information Facility NIF Obtaining SPICE Components Offered by NAIF and Horizons Emphasis on Kernels November 2014.
Navigation and Ancillary Information Facility NIF Leapseconds and Spacecraft Clock Kernels LSK and SCLK June 2004.
Navigation and Ancillary Information Facility NIF Exception Handling November 2014.
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 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 NAIF IDs and Names for Physical Objects and Reference Frames June 2004.
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 Introduction to Kernels March 2010.
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 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 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 Making a CK file March 2006.
Navigation and Ancillary Information Facility NIF SPICE Conventions A summary of many “standards,” lingo and common usage within SPICE June 2004.
Navigation and Ancillary Information Facility NIF “Metadata” In SPICE Kernels Also known as “comments” January 2009.
Navigation and Ancillary Information Facility NIF Using the Frames Subsystem April 2016.
Filters– Chapter 6. Filter Difference between a Filter and a Point Operation is that a Filter utilizes a neighborhood of pixels from the input image to.
Navigation and Ancillary Information Facility NIF Finding SPICE Components An Introduction to the NAIF Server April 2006.
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.
Navigation and Ancillary Information Facility NIF “Metadata” In SPICE Kernels Also known as “comments” October 2007.
Navigation and Ancillary Information Facility NIF Using the Frames Subsystem March 2006.
Frames Kernel FK October 2007.
Engineering Geometry Engineering geometry is the basic geometric elements and forms used in engineering design. Engineering and technical graphics are.
Guide for writing a Software Testing Document
Presentation transcript:

Navigation and Ancillary Information Facility NIF Instrument Kernel IK June 2004

Navigation and Ancillary Information Facility NIF Instrument Kernels 2 The Instrument kernel serves as a repository for instrument specific information that may be useful within the SPICE context. –Specifications for an instrument’s field-of-view size, shape, and orientation. –Internal instrument timing parameters and other data relating to SPICE computations might also be placed in an I-kernel. Note: Instrument mounting alignment data are most often specified in a mission frames kernel (FK). The IK is a SPICE text kernel. Purpose

Navigation and Ancillary Information Facility NIF Instrument Kernels 3 KPL/IK Descriptive comments describing the keywords and values to follow, as well as any other pertinent information. \begindata Keyword = Value Assignments \begintext More descriptive comments. \begindata More Keyword = Value Assignments \begintext More comments, followed by more data, etc… The structure of a typical I-kernel is: Kernel Structure - Sample IK

Navigation and Ancillary Information Facility NIF Instrument Kernels 4 The requirements on keywords in an IK are the following: –Keywords must begin with INS[#], where [#] is replaced with the NAIF instrument ID code. –The total length of the keyword must be less than 32 characters. –Keywords are case-sensitive. (Keyword != KEYWORD) IKs should contain extensive comments providing the user with detailed information about the purpose of each keyword. –This documentation exists primarily to assist users in integrating I-Kernel data into their applications. –Comments should also reference the source(s) of the data I Kernel Contents

Navigation and Ancillary Information Facility NIF Instrument Kernels 5 Low Energy Magnetospheric Measurements System 1 (LEMMS1) Since the MIMI_LEMMS1 detector's FOV is circular and it's diameter is 15.0 degrees, looking down the X-axis in the CASSINI_MIMI_LEMMS1 frame, we have: (Note we are arbitrarily choosing a vector that terminates in the Z=1 plane.) ^ Y | ins | | /| | / o | |/ 7.50 | x > X \ | Z ins \ | ins \ | | | Sample IK Data The following LEMMS1 FOV definition was taken from the Cassini MIMI IK (cas_mimi_v11.ti): continues

Navigation and Ancillary Information Facility NIF Instrument Kernels 6 The Y component of one 'boundary corner' vector is: Y Component = 1.0 * tan ( 7.50 degrees ) = The boundary corner vector as displayed below is normalized to unit length: \begindata INS-82762_FOV_FRAME = 'CASSINI_MIMI_LEMMS1' INS-82762_FOV_SHAPE = 'CIRCLE' INS-82762_BORESIGHT = ( ) INS-82762_FOV_BOUNDARY_CORNERS = ( ) \begintext FOV definition from the Cassini MIMI IK (continued): Sample IK Data

Navigation and Ancillary Information Facility NIF Instrument Kernels 7 As with any SPICE kernel, call FURNSH to load it. To retrieve field of view information from the instrument kernel: CALL GETFOV ( INSTID, ROOM, SHAPE, FRAME, BSIGHT, N, BOUNDS ) or getfov_c ( instid, room, shapelen, framelen, shape, frame, bsight, &n, bounds ); Toolkit routines are used to access the data associated with each keyword. Inputs are shown on the first line; outputs are on the second line. Interface Routines - 1

Navigation and Ancillary Information Facility NIF Instrument Kernels 8 Low-level text kernel access routines may be used to retrieve any IK data items. –To extract values directly from the instrument kernel, use the following routines: »Access Double Precision Values CALL GDPOOL ( NAME, START, ROOM, N, VALUES, FOUND ) gdpool_c ( name, start, room, &n, values, &found ); »Access Integer Values CALL GIPOOL ( NAME, START, ROOM, N, IVALS, FOUND ) gipool_c ( name, start, room, &n, ivals, &found ); Interface Routines - 2

Navigation and Ancillary Information Facility NIF Instrument Kernels 9 »Access Character Values CALL GCPOOL ( NAME, START, ROOM, N, CVALS, FOUND ) gcpool_c ( name, start, room, lenout, &n, cvals, &found ); As shown above, to retrieve the data in an IK using low-level routines you must know the data type associated with the keyword of interest. –“Type” = integer, double precision, or character Interface Routines - 3

Navigation and Ancillary Information Facility NIF Instrument Kernels 10 Consider an instrument with a circular field of view. Angular Size Boundary Corner Vector Boresight Vector Instrument X Y Z (0,0,0) (0,1,4) Circular Fields of View Y X O Subtended field of view angle = arc tan (1/4)

Navigation and Ancillary Information Facility NIF Instrument Kernels 11 The following set of keywords and values describes this circular field of view. INS-11111_FOV_FRAME = 'FRAME_FOR_INS-11111' INS-11111_FOV_BOUNDARY_CORNERS = ( ) INS-11111_FOV_SHAPE = 'CIRCLE' INS-11111_FOV_BORESIGHT = ( ) Circular FOV Definition As shown on the previous page the half-angular field of view is degrees, which is arctan (1/4).

Navigation and Ancillary Information Facility NIF Instrument Kernels 12 The angular separation between the boundary corner vector and the boresight is the angular size. FORTRAN EXAMPLE C Retrieve FOV parameters. CALL GETFOV(-11111, 1, SHAPE, FRAME, BSGHT, N, BNDS) C Compute the angular size. ANGSIZ = VSEP( BSGHT, BNDS(1,1) ) C EXAMPLE /* Define the string length parameter. */ #define STRSIZ 80 /* Retrieve the field of view parameters. */ getfov_c(-11111, 1, STRSIZ, STRSIZ, shape, frame, bsght, &n, bnds); /* Compute the angular separation. */ angsiz = vsep_c( bsght, &(bnds[0][0])); Circular FOV Angular Size

Navigation and Ancillary Information Facility NIF Instrument Kernels 13 Consider an instrument with an elliptical field of view. Boundary Corner Vectors Boresight Vector Instrument X Y Z (0,0,0) (0,1,4) (2,0,4) Elliptical Fields of View Y X O O Subtended field of view angle = arc tan (1/4) = arc tan (2/4)

Navigation and Ancillary Information Facility NIF Instrument Kernels 14 The following set of keywords and values describes this elliptical field of view. INS-22222_FOV_FRAME = 'FRAME_FOR_INS-22222' INS-22222_FOV_BOUNDARY_CORNERS = ( ) INS-22222_FOV_SHAPE = 'ELLIPSE' INS-22222_FOV_BORESIGHT = ( ) Elliptical FOV Definition

Navigation and Ancillary Information Facility NIF Instrument Kernels 15 The angular sizes are the angular separations between the boresight and the boundary vectors. FORTRAN EXAMPLE C Retrieve the FOV parameters from the kernel pool. CALL GETFOV(-22222, 2, SHAPE, FRAME, BSGHT, N, BNDS) C Compute the angular separations. ANG1 = VSEP( BSGHT, BNDS(1,1) ) ANG2 = VSEP( BSGHT, BNDS(1,2) ) C The angle along the semi-major axis is the larger C of the two separations computed. LRGANG = MAX( ANG1, ANG2) SMLANG = MIN( ANG1, ANG2) Elliptical FOV Angular Size - 1

Navigation and Ancillary Information Facility NIF Instrument Kernels 16 C EXAMPLE /* Define the string length parameter. */ #define STRSIZ 80 /* Retrieve the FOV parameters from the kernel pool. */ getfov_c(-22222, 2, STRSIZ, STRSIZ, shape, frame, bsght, &n, bnds); /* Compute the angular separations. */ ang1 = vsep_c( bsght, &(bnds[0][0])); ang2 = vsep_c( bsght, &(bnds[1][0])); /* The angle along the semi-major axis is the larger of the two separations computed. */ if ( ang1 > ang2 ) { lrgang = ang1; smlang = ang2; } else { lrgang = ang2; smlang = ang1; } Elliptical FOV Angular Size - 2

Navigation and Ancillary Information Facility NIF Instrument Kernels 17 Consider an instrument with a rectangular field of view. Boundary Corner Vectors Boresight Vector Instrument X Y Z (0,0,0) (2,1,4) (-2,1,4) (-2,-1,4) (2,-1,4) Rectangular Fields of View Y X O O Subtended field of view angle = arc tan (1/4) = arc tan (2/4)

Navigation and Ancillary Information Facility NIF Instrument Kernels 18 The following set of keywords and values describes this rectangular field of view. INS-33333_FOV_FRAME = 'FRAME_FOR_INS-33333' INS-33333_FOV_BOUNDARY_CORNERS = ( ) INS-33333_FOV_SHAPE = 'RECTANGLE' INS-33333_FOV_BORESIGHT = ( ) Rectangular FOV Definition

Navigation and Ancillary Information Facility NIF Instrument Kernels 19 The angular extents of the FOV are computed by calculating the angle between the bisector of adjacent unit boundary vectors and the boresight. Instrument (0,0,0) Bisectors Rectangular FOV Angular Size - 1 sml_ang lrg_ang Subtended field of view angles

Navigation and Ancillary Information Facility NIF Instrument Kernels 20 FORTRAN EXAMPLE C Retrieve FOV parameters from the kernel pool. CALL GETFOV(-33333, 4, SHAPE, FRAME, BSGHT, N, BNDS) C Normalize the 3 boundary vectors CALL UNORM(BNDS(1,1), UNTBND(1,1), MAG) CALL UNORM(BNDS(1,2), UNTBND(1,2), MAG) CALL UNORM(BNDS(1,3), UNTBND(1,3), MAG) C Compute the averages. CALL VADD(UNTBND(1,1), UNTBND(1,2), VEC1) CALL VSCL(0.5, VEC1, VEC1) CALL VADD(UNTBND(1,2), UNTBND(1,3), VEC2) CALL VSCL(0.5, VEC2, VEC2) C Compute the angular separations ANG1 = VSEP( BSGHT, VEC1 ) ANG2 = VSEP( BSGHT, VEC2 ) C Separate the larger and smaller angles. LRGANG = MAX( ANG1, ANG2) SMLANG = MIN( ANG1, ANG2) Rectangular FOV Angular Size - 2

Navigation and Ancillary Information Facility NIF Instrument Kernels 21 C EXAMPLE /* Define the string length parameter. */ #define STRSIZ 80 /* Retrieve the FOV parameters from the kernel pool. */ getfov_c(-33333, 4, STRSIZ, STRSIZ, shape, frame, bsght, &n, bnds); /* Normalize the 3 boundary vectors. */ unorm_c(&(bnds[0][0]), &(untbnd[0][0]), &mag); unorm_c(&(bnds[1][0]), &(untbnd[1][0]), &mag); unorm_c(&(bnds[2][0]), &(untbnd[2][0]), &mag); /* Compute the averages */ vadd_c(&(untbnd[0][0]), &(untbnd[1][0]), vec1); vscl_c(0.5, vec1, vec1); vadd_c(&(untbnd[1][0]), &(untbnd[2][0]), vec2); vscl_c(0.5, vec2, vec2); /* Compute the angular separations. */ ang1 = vsep_c( bsght, vec1); ang2 = vsep_c( bsght, vec2); /* Separate the larger and smaller angles. */ if ( ang1 > ang2 ) { lrgang = ang1; smlang = ang2; } else { lrgang = ang2; smlang = ang1; } Rectangular FOV Angular Size - 3

Navigation and Ancillary Information Facility NIF Instrument Kernels 22 Consider an instrument with a trapezoidal field of view. Boundary Corner Vectors Boresight Vector Instrument X Y Z (0,0,0) (1,1,4) (-1,1,4) (-2,-1,4) (2,-1,4) Polygonal Fields of View

Navigation and Ancillary Information Facility NIF Instrument Kernels 23 The following set of keywords and values describes this trapezoidal field of view. INS-44444_FOV_FRAME = 'FRAME_FOR_INS-44444' INS-44444_FOV_BOUNDARY_CORNERS = ( ) INS-44444_FOV_SHAPE = 'POLYGON' INS-44444_FOV_BORESIGHT = ( ) Polygonal FOV Definition