|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./toolbox dcmeantsys.pro
dcmeantsys |
function dcmeantsys(dc_nocal, dc_withcal, [tcal=float], [used_tcal=variable]) |
Calculate the mean Tsys using the data from two spectral line data containters, one with the CAL on and one with CAL off.
mean_tsys = tcal * mean(nocal) / (mean(withcal-nocal)) + tcal/2.0where nocal and withcal are the data values from dc_nocal and dc_withcal and tcal is as described below.
This is used by the GUIDE calibration routines and is encapsulated here to ensure consistency.
Parameters | |
dc_nocal |
The data with no cal signal. |
dc_withcal |
The data with a cal signal. |
Keywords | |
tcal |
A scalar value for the cal temperature (K). If not supplied. dc_nocal.mean_tcal will be used. |
used_tcal |
The tcal value actually used. |