1 UV_SELFCAL UV_SELFCAL: "Self"-Calibration of a UV data set UV_SELFCAL does a Phase and/or Amplitude Referencing of a UV Data set, using another one representing a gaussian source observed quasi-simultaneously. It is STRONGLY ADVISED to self-calibrate the phase first, then the amplitude using a longer smoothing time. UV_SELFCAL allows in addition to subtract (part of) the input reference source, typically to provide continuum-free spectral line maps. 2 UV_TABLE$ TASK\CHARACTER "UV table to be self-calibrated" UV_TABLE$ UV table to be calibrated 2 SELF$ TASK\CHARACTER "UV table used as phase reference" SELF$ Gaussian source reference UV table 2 DTIME$ TASK\REAL"The smoothing time constant in seconds" DTIME$ Integration time to derive correction. Signal to noise MUST BE SUFFICIENT TO IMPROVE the phase or amplitude determinations. If DTIME$ is too short, noise will be added to the data, rather than the expected improvement. Required values are S/N = 11 for 5 degree phase noise S/N = 20 for 5 % amplitude correction 2 WCOL$ TASK\INTEGER "The phase reference channel" WCOL$ If the reference SELF$ is a spectral line UV table, spectral channel to be used. 2 TYPE$ TASK\CHARACTER "Type of self-cal, Ampli, Phase, Both or None" TYPE$ It is recommended to self-calibrate the phase first, then the amplitude using a longer smoothing time, rather than both together. Type NONE can be used just to subtract a time-smoothed continuum value from a spectral line table. 2 GAUSS$ TASK\REAL "Gaussian Model parameters" GAUSS$[6] The gaussian source parameters 1 Total Flux 2,3 X,Y coordinates (in radians) 4,5 Major and Minor axis (in radians) 6 Position angle of the source (in DEGREES) If Major axis is zero, the source is assumed to be point-like 2 SUB$ TASK\REAL "Fraction of the continuum source to subtract" SUB$ Typically 1 or 0, to remove or not the continuum model. 1 END