Index Page
cspice_wnunid
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_WNUNID returns the window array union 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_wnunid( a, b )

   returns:

      c   SPICE window resulting from the union (in the SPICE sense) of 'a'
          and 'b'. The function output can overwrite either 'a' or 'b'.

          [2n,1] = size(c); double = class(c)

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 union on 'cov1' and 'cov2'
      %
      cov3 = cspice_wnunid( cov1, cov2 );
      fprintf( '\ncov3 =\n' )
      fprintf( '   %16.8f\n', cov3)

   MATLAB outputs:

      cov3 =
         -825768000.00000000
         1577880064.18391323

      %
      % The output can overwrite the input.
      %
      cov1 = cspice_wnunid( cov1, cov2 );
      fprintf( '\ncov1 =\n' )
      fprintf( '   %16.8f\n', cov1)

   MATLAB outputs:

      cov1 =
         -825768000.00000000
         1577880064.18391323

Particulars


   None.

Required Reading


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

   MICE.REQ
   WINDOWS.REQ

Version


   -Mice Version 1.0.1, 08-NOV-2012, EDW (JPL), SCK (JPL)

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

   -Mice Version 1.0.0, 26-JUN-2007, EDW (JPL)

Index_Entries


   union two d.p. windows


Wed Apr  5 18:00:36 2017