Index Page
cspice_wnintd
A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X 

Abstract
I/O
Examples
Particulars
Required Reading
Version
Index_Entries

Abstract


   CSPICE_wnintd returns the window array intersection of two double precision
   window arrays.

I/O


   Given:

      a   SPICE window containing zero or more intervals.

          [2l,1] = size(a); double = class(a)

      b   SPICE window containing zero or more intervals.

          [2m,1] = size(b); double = class(b)

   the call:

      c = cspice_wnintd( a, b )

   returns:

      c   the double precision window intersection (in the SPICE sense)
          of 'a' and 'b'

          'c' can overwrite 'a' or 'b'.

Examples


   Any 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.

      SPK1 = 'de405_2000-2050.bsp';
      SPK2 = 'jup100.bsp';

      %
      % Retrieve the coverage for body 3 from SPK1
      %
      cov1 = cspice_spkcov( SPK1, 3, 10 );
      fprintf( 'cov1 =\n' )
      fprintf( '   %16.8f\n', cov1)

   MATLAB outputs:

      cov1 =
          -43135.81608719
         1577880064.18391323

      %
      % Retrieve the coverage for body 3 from SPK2
      %
      cov2 = cspice_spkcov( SPK2, 3, 10 );
      fprintf( 'cov2 =\n' )
      fprintf( '   %16.8f\n', cov2)

   MATLAB outputs:

      cov2 =
         -825768000.00000000
         752241600.00000000

      Perform a windows array intersection on 'cov1' and 'cov2'

      cov3 = cspice_wnintd( cov1, cov2 );
      fprintf( 'cov3 =\n' )
      fprintf( '   %16.8f\n', cov3)

   MATLAB outputs:

     cov3 =
         -43135.81608719
        752241600.00000000

      The output can overwrite the input.

      cov1 = cspice_wnintd( cov1, cov2 );
      fprintf( 'cov1 =\n' )
      fprintf( '   %16.8f\n', cov1)

   MATLAB outputs:

     cov1 =
         -43135.81608719
        752241600.00000000

Particulars


   None.

Required Reading


   For important details concerning this module's function, please refer to
   the CSPICE routine wnintd_c.

   MICE.REQ
   WINDOWS.REQ

Version


   -Mice Version 1.0.1, 12-MAR-2012, EDW (JPL), SCK (JPL)

      Edited I/O section to conform to NAIF standard for Mice documentation.

   -Mice Version 1.0.0, 09-JUL-2007, EDW (JPL)

Index_Entries


   intersect two d.p. windows


Wed Apr  5 18:00:36 2017