CSPICE_WNEXPD expands each of the intervals of a double
precision window.
Given:
left amount to subtract from each left interval endpoint in the
input 'window'
[1,1] = size(left); double = class(left)
right amount to add to each right interval endpoint in the input
'window'
[1,1] = size(right); double = class(right)
window SPICE window containing zero or more intervals.
[2m,1] = size(window); double = class(window)
the call:
window_f = cspice_wnexpd( left, right, window)
returns:
window_f SPICE window containing zero or more intervals, representing
the original 'window' with each of its intervals expanded by
'left' units on the left and 'right' units on the right
[2n,1] = size(window_f); double = class(window_f)
'window_f' can overwrite 'window'.
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.
%
% Let 'window' expand the intervals
%
window = [ [ 1; 3 ]; [ 7; 11 ]; [ 23; 27 ]; [ 29; 29 ]; ];
%
% Apply the following series of calls
%
window = cspice_wnexpd( 2, 1, window )
window = cspice_wnexpd( 2, 2, window )
window = cspice_wnexpd( 2, 1, window )
MATLAB outputs:
window =
1
4
5
12
21
30
Representing the intervals:
[ 1, 4 ] [ 5, 12 ] [ 21, 30 ]
window =
1
6
7
14
23
32
Representing the intervals:
[ 1, 6 ] [ 7, 14 ] [ 23, 32 ]
window =
3
5
9
13
25
31
Representing the intervals:
[ 3, 5 ] [ 9, 13 ] [ 25, 31 ]
None.
For important details concerning this module's function, please refer to
the CSPICE routine wnexpd_c.
MICE.REQ
WINDOWS.REQ
Mice Version 1.0.1, 12MAR2012, EDW (JPL), SCK (JPL)
Edited I/O section to conform to NAIF standard for Mice documentation.
Mice Version 1.0.0, 24JUL2007, EDW (JPL)
expand the intervals of a d.p. window
