next up previous contents index
Next: SHOW Up: SET Previous: SET WEIGHT   Contents   Index


SET WINDOW

        LAS\SET WINDOW /DEFAULT
        LAS\SET WINDOW [/NOCURSOR]
        LAS\SET WINDOW NONE
        LAS\SET WINDOW wl1 wu1 ... wlN wuN
        LAS\SET WINDOW /VAR Array
        LAS\SET WINDOW /POLYGON [N Filename1 ... FilenameN]
        LAS\SET WINDOW /ASSOCIATED
        LAS\SET WINDOW AUTO

    Defines one or several line windows to be avoided by BASE when fitting a
    baseline. Window boundaries are expressed in current X unit (SET  UNIT).
    If current X unit is F (resp. I), the values are offset frequencies from
    the rest frequency (resp. image frequency). There are  several  ways  to
    use this command:

    SET WINDOW /DEFAULT
      Undefine the current SET WINDOW method. Next calls to the command BASE
      will raise an error. This is the default at startup.

    SET WINDOW [/NOCURSOR]
      With this form without argument, the  cursor  is  invoked  to  specify
      missing  arguments, unless option /NOCURSOR is present. When using the
      cursor, enter: N (or Left mouse button) to enter a value, C (or Middle
      button)  to cancel the last entry, H for help, E (or Right button) for
      exit. The boundaries are in current unit.

    SET WINDOW NONE
      Set the number of windows to 0. This is valid e.g. if there is no sig-
      nal  in the spectrum. BASE will exclude no channel during the baselin-
      ing.

    SET WINDOW wl1 wu1 ... wlN wuN
      Define N windows with their lower-upper boundaries, expressed  in  the
      current X unit.

    SET WINDOW /VAR Array
      Define  the  window  from rank 1 array win_array[1+2*NWIND]. The array
      must be of the following form:
        win_array[1]=NWIND      number of windows
        win_array[2*i:2*i+1]    boundaries of window number 'i'

    SET WINDOW /POLYGON [N [Filename1 ... FilenameN]]
      Define the spectral window(s) through polygon(s). N is the  number  of
      polygons (default 1). If filenames are present, polygons are read from
      these files. If not, they are defined interactively with  the  cursor,
      and  saved  in files "window-"'i'".pol", where 'i' is the polygon num-
      ber. This option makes sense only if an index is  loaded  and  plotted
      (PLOT /INDEX).
      The  resulting  windows  are  visible  in the array SET%WINDOW of size
      [Nspec,1+2*Mwind], where:
        - Mwind is the largest number of windows per spectrum over  all  the
      index,
        - SET%WINDOW[ispec,1]  is the number of windows for i-th spectrum in
      the index,
        - SET%WINDOW[ispec,2*jwind] and SET%WINDOW[ispec,2*jwind+1] are  the
      min-max range of the j-th window.

    SET WINDOW /ASSOCIATED
      Find  the spectral windows in the Associated Array named LINE (must be
      present in the R buffer). LINE is a flag array of 0 (channel out of  a
      line) and 1 (channel in a line).

    SET WINDOW AUTO
      Reuse the spectral window(s) as found in the observation header (cali-
      bration section must be present). There are two possibilities:
        - if the Associated Array LINE was used, R%HEAD%BAS%NWIND is -1  and
        BASE will rely again on this array, or
        - the    spectral    windows   were   saved   in   R%HEAD%BAS%NWIND,
        R%HEAD%BAS%W1, and R%HEAD%BAS%W2 from a previous call to BASE, these
        windows will be used again.


Gildas manager 2018-05-18