next up previous
Next: LID Up: WEEDS Language Internal Help Previous: LFIND


        [WEEDS\]LGET [Key|Num] [/INDEX]

    Get a line from the line index. The commands checks if the line frequen-
    cy is covered by the current observation. If  yes,  the  observation  is
    modified  so  that its rest frequency corresponds to the line frequency.
    The command works in a similar fashion than GET: for example LGET F will
    get  the first line in the line list, LGET N will get the next one, etc.
    It is especially useful when one want to search for  lines  of  a  given
    species.  For example, one can list all methanol lines in the 3 mm band,
    ordered by increasing upper level energy, with:

      LAS> LLIST "CH3OH, vt=0,1" 80000 110000 /SORTBY e

    and then examine each of the line candidates with:

      LAS> LGET F
      LAS> LPLOT
      LAS> LGET N
      LAS> LPLOT
      LAS> ...

      /INDEX  search for the line in all the observations of the current ob-
              servation index. If this option is set, LGET begins by search-
              ing for the first observation (from  the  last  FIND  command)
              that covers the line frequency. It is useful when working with
              line surveys that consists in several observations, each  cov-
              ering a different frequency band.

    Argument: it can be either
           1) One of the following key letters:
              "f"   get the first line of the index
              "l"   get the last line of the index
              "p"   get the previous line in the index
              "n"   get the next line of the index
           2) An integer

Gildas manager 2021-01-15