.ec _
.ll 76
.ad b
.in 4

.ti -4
1 Language
.ti +4
FLUX Language internal help

.nf
FILE Name      : Opens the input file (result from CLASS or CLIC)
INDEX          : Compute spectral index from previous results
PRINT          : Write out results from flux computations
READ Iant Freq : Read data from specified antenna at frequency Freq
SOLVE          : Compute flux of measured sources
.fi

.ti -4
1 FILE
.ti +4
[FLUX_\]FILE Name

    Define the entry file name. The entry file can be produced using
CLASS command
.ti +4
ANALYZE_\PRINT FLUX/OUTPUT Name 
.br 
or using CLIC command 
.ti +4
CLIC_\SOLVE POINTING /FLUX Name 

.ti -4
1 INDEX
.ti +4
[FLUX_\]INDEX Filei Name/OUTPUT Fileo [NEW]

Compute the spectral index (with errors bars) of the source Name
from all the data available on that source in the input file Filei
(result from FLUX_\PRINT).  Write the results on the output file
Fileo.  

If NEW is present, the output file is created, otherwise
it is appended.


.ti -4
1 PRINT
.ti +4
[FLUX_\]PRINT [/OUTPUT File [New]]

Print the date and information lines on the meaning of each column,
then the fluxes with error bars, the frequency, the antenna number
and the average antenna efficiency (Jy/K), with error bars.
The command asks for atmospheric conditions and quality of the data 
and writes it in the header of the output file.

If NEW is present, the output file is created, otherwise it is
appended.  	

.ti -4
1 READ
.ti +4
[FLUX_\]READ Iant Freq 

    Read the gaussian fits data from the antenna number 
Iant and the frequency Freq. The frequency must be 
the LSB frequency tuning given at +- 0.5 GHz.	 

.ti -4 
1 SOLVE
.ti +4
[FLUX_\]SOLVE [Name1 [Name2 [...]]] 

Use the sources Name1, Name2, etc... as flux references.  For a
planet, the flux is derived using the gain USB/LSB and the frequency
informations. For other sources, the flux specified by command SET
FLUX is used. Without argument, all the planets included in the input
file are used to calculate the antenna efficiency.

The fluxes of all sources is computed as described below at the 
``gain corrected'' frequency: 
.nf 	
    F = ( F(LSB) + G x F(USB) ) / (1+G)
.fi 
where G is the USB to LSB receiver gain ratio.	

The computation steps are
.nr
   + Correct Azimuth subscan for elevation pointing error
   + Correct Elevation subscan for azimuth pointing error
   + Average both subscans to derive the source intensity 
        (with proper weighting using standard deviations)
   + Average all independant scans on the same source 
        (with proper weighting)
   + Determine the  average antenna efficiency from the list of 
        sources of known flux, with error estimate
   + Determine the unknown fluxes, giving the error estimates: 
        Relative, including only errors on the source intensity, and
        Absolute which also includes the error on antenna efficiency.
.fi


.ti -4
1 ENDOFHELP
