Purpose

Window the CCD down to a position centered on the LRISb
pointing origin.


Usage

windowb [-default] xpix ypix width height

Arguments

-default = use the default values which are set for
the blue pointing origin/MIRA
xpix = starting x pixel as measured in figdisp
ypix = starting y pixel as measured in figdisp
width = width in x (pixels)
xpix = height in y (pixels)

Output

None

Restrictions

None

Exit values

0 = normal completion
1 = wrong number of arguments

Example

1) Use only the left most CCD
windowb 0 1 2048 4096
2) Use only the right most CCD
windowb 2048 1 2048 4096

Modification history

23 Nov 2006 MK Original version
(Happy Thanks Giving! 5.0 Mag earthquake)
-----------------------------------------------------------------------
check for the default flag
Alter some of the imput params so that the math works for windowing.
a bit strainge but it appears to work. 0<x<4095, 1<y<4096
check to determine whether the window is too big or does not fit
on the array.
check to ensure the specified window does not fall in both CCDs.
check which CCD the window is located and select the appropriate CCD
perform the operation...