%N uvdatinp %F $MIR/src/subs/uvdat.for
%D Get command line uv data parameters.
%P rjs
%: uv-i/o, uv-data, uv-selection
%B
        subroutine uvDatInp(key,flags)

        implicit none
        character key*(*),flags*(*)

  This gets command line inputs and store them away in common. It remembers
  which uvset calls we need to make. In particular, it gets the following
  keywords:
    'vis'      Input visibility files (actually the keyword is the "key"
               argument).
    'select'   UV selection specification (optional).
    'stokes'   Stokes/polarisation parameters desired (optional).
    'line'     Data linetype specification (optional).
    'ref'      Reference linetype specification (optional).

  Input:
    key        The keyword associated with the input visibility file.
               Generally this will be 'vis'.
    flags      This is a character string determining the processing steps
               that need to be performed. It consists of:
                'r'    Get reference linetype specification (keyword 'ref').
                's'    Get Stokes/polarisations (keyword 'stokes').
                'd'    Perform input selection (keyword 'select').
                'l'    Get data linetype specification (keyword 'line').
                'p'    Apply planet rotation and scaling.
                'w'    Return u and v in wavelengths.
                '1'    Default number of channels is 1.
                'x'    Data must be cross-correlation data.
                'a'    Data must be auto-correlation data.
                'b'    Input must be a single file.
                'c'    Apply gain/phase and delay corrections.
                'e'    Apply polarisation leakage corrections.
                'f'    Apply bandpass corrections.
                '3'    Return w in the preamble (as preamble(3)).
