<?xml version="1.0"?>
<!DOCTYPE Gui SYSTEM "gui.dtd">
<Gui>
 <Window keyword="multwin" width="1024" height="700">
  <CommandArea keyword="CommandArea">
   <Screen keyword="SCREEN01" title="SCREEN01" rows="1" columns="1" minCellWidth="8" minCellHeight="12">
    <Label keyword="LABEL_WIN_HDR_X" alignment="left">WIN_HDR_X=</Label>
    <Field keyword="WIN_HDR_X" type="int" maxLength="2" editable="yes" sensitive="yes"/>
    <Label keyword="LABEL_WIN_HDR_Y" alignment="left">WIN_HDR_Y=</Label>
    <Field keyword="WIN_HDR_Y" type="int" maxLength="2" editable="yes" sensitive="yes"/>
    <Array keyword="WIN_COOR_X" type="float" maxLength="10" columnName="WIN_COOR_X" editable="yes" sensitive="yes"/>
    <Array keyword="WIN_COOR_Y" type="float" maxLength="10" columnName="WIN_COOR_Y" editable="yes" sensitive="yes"/>
    <ArraySet keyword="COOR_X_ARRAYSET" label="coor_x  coor_y  win WIN_TIM_BEGWIN_TIM_END">
     <Array keyword="COOR_X" type="string" maxLength="8  " columnName="coor_x" editable="no" sensitive="yes" columnSize="8"/>
     <Array keyword="COOR_Y" type="string" maxLength="8  " columnName="coor_y" editable="no" sensitive="yes" columnSize="8"/>
     <Array keyword="WIN" type="string" maxLength="4  " columnName="win" editable="no" sensitive="yes" columnSize="4"/>
     <Array keyword="WIN_TIM_BEG" type="float" maxLength="11 " columnName="WIN_TIM_BEG" editable="yes" sensitive="yes" columnSize="11"/>
     <Array keyword="WIN_TIM_END" type="float" maxLength="11 " columnName="WIN_TIM_END" editable="yes" sensitive="yes" columnSize="11"/>
    </ArraySet>
    <Layout>
     <Constraints component="LABEL_WIN_HDR_X" xPos="3" yPos="0" xSize="10" ySize="1" xStretch="false" yStretch="false"/>
     <Constraints component="WIN_HDR_X" xPos="13" yPos="0" xSize="2" ySize="1" xStretch="false" yStretch="false"/>
     <Constraints component="LABEL_WIN_HDR_Y" xPos="17" yPos="0" xSize="10" ySize="1" xStretch="false" yStretch="false"/>
     <Constraints component="WIN_HDR_Y" xPos="27" yPos="0" xSize="2" ySize="1" xStretch="false" yStretch="false"/>
     <Constraints component="WIN_COOR_X" xPos="3" yPos="1" xSize="13" ySize="22" xStretch="true" yStretch="true"/>
     <Constraints component="WIN_COOR_Y" xPos="17" yPos="1" xSize="13" ySize="22" xStretch="true" yStretch="true"/>
     <Constraints component="COOR_X_ARRAYSET" xPos="32" yPos="1" xSize="45" ySize="22" xStretch="true" yStretch="true"/>
    </Layout>
    <HelpSection>
     <Help component="WIN_HDR_X">
      <Tip>Header word designating window coordinate X.</Tip>
      <Text><![CDATA[<html><head><base href=file:///usr/app/vendors/int/Conoco/xml/help/>
<b><center>multwin - WIN_HDR_X<br> Header word designating window coordinate X.</center></b>
<pre> Default = 7
 Allowed = any value from 1 through NWIH.
 
 Header word containing coordinate X to use for specifying spatially varying
 windows.</pre></head></html>]]></Text>
     </Help>
     <Help component="WIN_HDR_Y">
      <Tip>Header word designating window coordinate Y.</Tip>
      <Text><![CDATA[<html><head><base href=file:///usr/app/vendors/int/Conoco/xml/help/>
<b><center>multwin - WIN_HDR_Y<br> Header word designating window coordinate Y.</center></b>
<pre> Default = 8
 Allowed = any value from 1 through NWIH.
 
 Header word containing coordinate Y to use for specifying spatially varying
 windows.</pre></head></html>]]></Text>
     </Help>
     <Help component="WIN_COOR_X">
      <Tip>Array of coord X values for specifying spatially varying windows.</Tip>
      <Text><![CDATA[<html><head><base href=file:///usr/app/vendors/int/Conoco/xml/help/>
<b><center>multwin - WIN_COOR_X<br> Array of coord X values for specifying spatially varying windows.</center></b>
<pre> Default = 0.0 (one location).
 Allowed = up to any number of locations specified by WIN_HDR_X values.
 
 If only one X coordinate is specified, its value is irrelevant.</pre></head></html>]]></Text>
     </Help>
     <Help component="WIN_COOR_Y">
      <Tip>Array of coord Y values for specifying spatially varying windows.</Tip>
      <Text><![CDATA[<html><head><base href=file:///usr/app/vendors/int/Conoco/xml/help/>
<b><center>multwin - WIN_COOR_Y<br> Array of coord Y values for specifying spatially varying windows.</center></b>
<pre> Default = 0.0 (one location).
 Allowed = up to any number of locations specified by WIN_HDR_Y values.
 
 If only one Y coordinate is specified, its value is irrelevant.
 For 2D data, only one Y coordinate should be specified.</pre></head></html>]]></Text>
     </Help>
     <Help component="COOR_X">
      <Tip>Coordinate from WIN_COOR_X array.</Tip>
      <Text><![CDATA[<html><head><base href=file:///usr/app/vendors/int/Conoco/xml/help/>
<b><center>multwin - COOR_X<br> Coordinate from WIN_COOR_X array.</center></b>
</html>]]></Text>
     </Help>
     <Help component="COOR_Y">
      <Tip>Coordinate from WIN_COOR_Y array.</Tip>
      <Text><![CDATA[<html><head><base href=file:///usr/app/vendors/int/Conoco/xml/help/>
<b><center>multwin - COOR_Y<br> Coordinate from WIN_COOR_Y array.</center></b>
</html>]]></Text>
     </Help>
     <Help component="WIN">
      <Tip>Window number.</Tip>
      <Text><![CDATA[<html><head><base href=file:///usr/app/vendors/int/Conoco/xml/help/>
<b><center>multwin - WIN<br> Window number.</center></b>
</html>]]></Text>
     </Help>
     <Help component="WIN_TIM_BEG">
      <Tip>Array of window top times (in seconds).</Tip>
      <Text><![CDATA[<html><head><base href=file:///usr/app/vendors/int/Conoco/xml/help/>
<b><center>multwin - WIN_TIM_BEG<br> Array of window top times (in seconds).</center></b>
<pre> Default = top of trace (TSTRT) for one window.
 Default = equally spaced for multiple windows.
 Allowed = any number of values &gt;= top of trace.
 
 These windows are spatially varying as given at the (WIN_COOR_X,WIN_COOR_Y)
 locations.  Each correlation window is interpolated between the specified
 coordinates, and extrapolated unchanged outside of the grid of coordinates.
 
 The number of values specified is the number of windows on a trace times
 the number of window locations.</pre></head></html>]]></Text>
     </Help>
     <Help component="WIN_TIM_END">
      <Tip>Array of window bottom times (in seconds).</Tip>
      <Text><![CDATA[<html><head><base href=file:///usr/app/vendors/int/Conoco/xml/help/>
<b><center>multwin - WIN_TIM_END<br> Array of window bottom times (in seconds).</center></b>
<pre> Default = bottom of trace (TSTRT+(NDPT-1)*DT) for one window.
 Default = equally spaced for multiple windows.
 Allowed = any number of values &gt; WIN_TIM_BEG and &lt;= bottom of trace.
 
 These windows are spatially varying as given at the (WIN_COOR_X,WIN_COOR_Y)
 locations.  Each correlation window is interpolated between the specified
 coordinates, and extrapolated unchanged outside of the grid of coordinates.
 
 The number of values specified is the number of windows on a trace times
 the number of window locations.</pre></head></html>]]></Text>
     </Help>
    </HelpSection>
   </Screen>
  </CommandArea>
  <Help component="multwin">
   <Text><![CDATA[<html><head><base href=file:///usr/app/vendors/int/Conoco/xml/help/>
<pre>-------------------------------------------------------------------------------
                        C P S   P R I M I T I V E
 
 Name       : MULTWIN
 Category   : math
 Written    : 2000-05-01   by: Tom Stoeckley
 Revised    : 2006-09-11   by: Tom Stoeckley
 Maturity   : production
 Purpose    : Manager of multiple laterally-varying trace windows.
 Portability: No known limitations, but see Portablility Issues.
 
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
                         GENERAL DESCRIPTION
 
 This primitive is to be used by process modules which need multiple trace
 windows which vary with lateral location specified by a pair of coordinates.
 This primitive owns and manages all parameters needed for this functionality,
 and also manages the interpolation and other calculations required to return
 the appropriate windows for a given trace.
 
 This primitive uses the parameter cache to read and write the parameters
 it needs, to report error messages, etc.
 
 To use this primitive from a process module named xxxx:
 
    (1) multwin_create      should be called from xxxx_create.
    (2) multwin_initialize  should be called from xxxx_initialize.
    (3) multwin_update      should be called from xxxx_update.
    (4) multwin_get_windows should be called from xxxx.
    (5) multwin_delete      should be called from xxxx_delete.
 
 The purpose of this primitive is to encapsulate a standard method of
 specifying trace windows for uniformity for the user, to encapsulate
 the code dealing with these trace windows, and to encapsulate the screen
 layout and context-sensitive help so that they need not be repeated in
 the individual processes.  Any changes to this primitive can be made
 without affecting the processes which use it.
 
 This primitive is similar to the LATWIN primitive except that this
 primitive supports more than one trace window at each location, but does
 not support windows which vary with mute time.
 
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
                            ADVICE FOR USERS
 
 The GUI_DEF section for a process which uses this primitive should contain
 an INCLUDE line which says to include the GUI_DEF section of this primitive.
 The HELPSECTION for the parameters in this primitive will also be made
 available to the process when this is done.
 
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
                           REVISION HISTORY
 
     Date        Author     Description
     ----        ------     -----------
  8. 2006-09-11  Stoeckley  Replace pc_register_tab_group w HelpSection line.
  7. 2006-06-20  Stoeckley  Add pc_register_tab_group for SeisSpace.
006. 2006-01-10  B. Menger   Removed Unused Variables.
  5. 2004-01-07  Stoeckley  Simplify code by calling PC_REGISTER_ARRAY_NAMES.
  4. 2000-09-27  Stoeckley  Add documentation to the HelpSection for 2D data.
  3. 2000-08-01  Stoeckley  Change coordinate parameter names to use X and Y
                             instead of A and B.
  2. 2000-05-17  Stoeckley  Add code to allow inserting and deleting
                             coordinates in the GUI, and add calls to the
                             parameter cache minsize and maxsize routines.
  1. 2000-05-01  Stoeckley  Initial version.
 
-------------------------------------------------------------------------------</pre></head></html>]]></Text>
  </Help>
 </Window>
</Gui>
