This appendix provides a general description of all of the available functions currently used by the SPA program and is followed by a detailed description of all functions.
Function Description Type
ABS Computes absolute value every channel 1
1
AVERAGE Compute the average of a group of scans n
1
BASELINE Subtract a polynomial baseline from a scan; calculate RMS noise 1
1
C1 Activates the C1 function constant block 1
1
C2 Activates the C2 function constant block 1
1
C3 Activates the C3 function constant block 1
1
C4 Activates the C4 function constant block 1
1
C5 Activates the C5 function constant block 1
1
CD Change subdirectory 1
1
CHANNEL Change the definition of the x coordinate axis to channels 1
1
CLEAN Restore eliminated channels in a spectrum by interpolation good channels 1
1
EDIT Displays and changes the value of a header or data variable 1
1
ELIMINATE Zap bad channels from a spectrum 1
1
EQUATORIAL Calculate the equatorial coordinate displacements from an origin 1
1
ERASE Erase data from a sub directory or scans within the current sub directory 1
0
EXP Computes exponential of every channel 1
1
FILES Associates communication files with physical devices 1
1
FIRST Extract data from first spectrometer within the filter bank configuration 1
1
FLSR Change the definition of the x coordinate axis to LSR frequency 1
1
FOLD Rectify
a frequency switched spectrum 1
1
FOURTH Extract data from fourth spectrometer within the filter bank configuration 1
1
FPLOT Plot spectrum and overlay gaussian 1
1
FSKY Change the definition of the x coordinate axis to sky frequency 1
1
FSOURCE Change the definition of the x coordinate axis to LSR frequency 1
1
GALACTIC Calculate the galactic coordinate displacements from an origin 1
1
GAUSS Calculate a non-linear least squares Gaussian fit to a spectral line 1
1
GENERATE Resamples the data to the specified x interval and resolution 1
1
HEADER Print selected header values of a scan 1
1
HISTOGRAM Generate a histogram of the values of a header variable n
1
INTEGRATE Average repetitions within data; calculate difference between ons and offs 1
1
INVERSE Computes reciprocal of every channel 1
1
L10 Computes logarithm base 10 of every channel 1
1
LINE Measure parameters for a spectral line 1
1
LIST Lists contents of the tape directory and all sub directories 1
1
LN Computes natural logarithm of every channel 1
1
LOG Print position and summary of data n
n
LSB Recalculates frequencies and velocities to appropriate to lower sideband 1
1
MAP Display values of a header value as a function of two other header values n
n
MASK Set a pixel or horn mask for functions on the present command line 1
1
MAX Calculate channel by channel maximum value between two scans 2
1
MD Make new subdirectory 1
1
MIN Calculate channel by channel miniumum value between two scans 2
1
MPLOT Plot spectral line of each pixel within a scan by position 1
1
PANGLE Calculate angle of polarization from I,Q,U scans 3
1
PDEGREE Calculate degree of polarization from I,Q,U scans 3
1
PEAK Locate the least squares two dimensional Gaussian peak n
1
PERROR Calculate error in the degree of polarization 3
1
PLOT Plot a spectrum, one pixel at a time 1
1
PRINT Print values of header and/or data for a scan 1
1
RD Remove subdirectory 1
1
READ Read data from SPA format magnetic tape 1
1
REST Change the definition of the x coordinate axis to rest frequncy 1
1
RUN Generate run of header variable as function of another header variable n
1
SCALE Scale Y values of argument using Y values in scaling scan 1
1
SECOND Extract data from second spectrometer within the filter bank configuration 1
1
SEQUENCE Change the scan number of a scan 1
1
SHOW Display spectra of a group of scans on the same plot 1
1
SIGNAL Change
frequenct scale to signal band for frequency switched data 1
1
SINE Subtract a sine wave from the argument observation; calculate RMS noise 1
1
OTH<
SMOOTH Applies a smoothing filter to the spectrum 1
1
SORT Rearrange the argument list by sorting of a header variable n
n
SOURCE Rearrange the argument list by isolating scans within a specified distance n
n
SV Display spectra of a group of scans in a spatial-velocity diagram n
n
SYNTHETIC Print the current list of user defined synthetic functions 1
1
TAPE Function for mounting and handling of magnetic tapes 1
1
THIRD Extract data from third spectrometer within the filter bank configuration 1
1
TRANSFER Transfer data from one sub directory to another 1
1
UNSEQUENCE Reverses a previous sequencing operation 1
1
USB Recalculates frequencies and velocities to appropriate to upper sideband 1
1
VLSR Change the definition of the x coordinate axis to LSR velocity 1
1
VSUN Change the definition of the x coordinate axis to heliocentric velocity 1
1
WRITE Write data to SPA format magnetic tape 1
1
YHISTOGRAM Generate a histogram of the y values of a scan n
1
+>+ Perform scalar or vector addition on a scan 2
1
->- Perform scalar or vector subtraction on a scan 2
1
*>* Perform scalar or vector multiplication on a scan 2
1
** Perform scalar or vector exponentiation on a scan 2
1
/>/ Perform scalar or vector division on a scan 2
1
}
| WEIGHTING | 1 - weight the observations equally. |
| 2 - weight proportional to the inverse square of | |
| the RMS noise (YSIGMA) measured during previous | |
| use of the BASELINE or SINE functions. | |
| 3 - weight proportional to the integration time. |
| XL1 | lower bound of first interval (-10 |
| XU1 | upper bound of first interval (10 |
| XL2 | lower bound of second interval (10 |
| XU2 | upper bound of second interval (-10 |
| XL3 | lower bound of third interval (10 |
| XU3 | upper bound of third interval (-10 |
| VARIABLE NAME | specifies the name of the header variable |
| The recognized name are the first four letters of | |
| any variable within the scan header given | |
| in Appendix D | |
| VALUE | new value of variable or D for interactive |
| entry of new value for each argument |
| TOLERANCE | if > 0, number of standard |
| deviations from the median from | |
| which channels are eliminated | |
| < 0, number of the most extreme channels | |
| to eliminate. | |
| XL1 | lower bound of first interval (-10 |
| XU1 | upper bound of first interval (10 |
| XL2 | lower bound of second interval (10 |
| XU2 | upper bound of second interval (-10 |
| XL3 | lower bound of third interval (10 |
| XU3 | upper bound of third interval (-10 |
| RA0 | Right Ascension (HHMMSS.S) of the coordinate origin. |
| DEC0 | Declination (DDDMMSS.S) of the coordinate origin. |
| COMMAND INPUT | device where commands are input |
| COMMAND RESPONSES | device where program responds to |
| commands or writes error messages | |
| PRINTER | device for printer output |
| PLOTTER | device for plotting |
| TAPE | current tape file |
| TAPE READ MODE | sequential or scan mode |
| FOLD | = 0 - subtract reference from signal |
| = 1 - add signal to reference | |
| = 2 - do both of the above |
| LEFT | left boundary of plot (-10 |
| RIGHT | right boundary of plot (10 |
| BOTTOM | bottom boundary of plot (-10 |
| TOP | top boundary of plot (10 |
| L0 | longitude (DDD.DDD) of the coordinate origin. |
| B0 | latitude (DDD.DDD) of the coordinate origin. |
| XLOWER | lower bound of x interval (-10 |
| XUPPER | upper bound of x interval (10 |
| NPEAKS | the number of peaks to fit to the spectral line |
| DX | desired change in channel, frequency, or velocity with |
| index in data (1.0) | |
| XLOWER | lower bound of x coordinate (-10 |
| XUPPER | upper bound of x coordinate (10 |
| NHEADERS | number of headers to print |
| HEADER VARIABLE | variable to histogram |
| XLOWER | lower limit of header values to be |
| histogrammed (-10 | |
| XUPPER | upper limit of header values to be |
| histogrammed (10 | |
| DX | bin size (10 |
| XL1 | lower bound of x interval (-10 |
| XU1 | upper bound of x interval (10 |
| TAPE FILE LIST FORMAT | 0=none, 1=short, 2=long |
| S FILE LIST FORMAT | 0=none, 1=short, 2=long |
| X VARIABLE | name of header variable to be used as x coordinate. |
| Y VARIABLE | name of header variable to be used as y coordinate. |
| Z VARIABLE | name of header variable to be used as z coordinate. |
| LEFT | left boundary of plot (-10 |
| RIGHT | right boundary of plot (10 |
| BOTTOM | bottom boundary of plot (-10 |
| TOP | top boundary of plot (10 |
| CONTROL | ten coded digits controlling physical parameters |
| of the plot (0422851530). |
| CONTROL digit | description |
| 1 | = 0 - no grid lines drawn across center of plot |
| = 1 - grid lines drawn across center of plot | |
| 2 | = 1 - z values printed on graph |
| = 2 - points | |
| = 3 - lines connecting points | |
| = 4 - labelled contours | |
| = 5 - unlabelled contours | |
| = 6 - dense shading | |
| = 7 - optimum density shading | |
| = 8 - less dense shading | |
| = 9 - lowest density shading | |
| 3 | 4010 x coordinate of lower left corner of grid |
| in units of 100 | |
| 4 | 4010 y coordinate of lower left corner of grid |
| in units of 100 | |
| 5 | x length of graph in 4010 coordinates in |
| units of 100 | |
| 6 | y length of graph in 4010 coordinates in |
| units of 100 | |
| 7,8 | size of numbers along x and y axes |
| 9,10 | size of labels |
| MASK TYPE | 1 - mask is set by pixel |
| 2 - mask is set by horn | |
| NMASK | number of pixels (horns) to mask |
| LEFT | left boundary of plot (-10 |
| RIGHT | right boundary of plot (10 |
| BOTTOM | bottom boundary of plot (-10 |
| TOP | top boundary of plot (10 |
| CONTROL | ten coded digits controlling physical |
| parameters of the plot (0422851530). |
| X VARIABLE | header variable name to be used as x coordinate. |
| Y VARIABLE | header variable name to be used as y coordinate. |
| Z VARIABLE | header variable name to be used as z coordinate. |
| LEFT | left boundary of plot (-10 |
| RIGHT | right boundary of plot (10 |
| BOTTOM | bottom boundary of plot (-10 |
| TOP | top boundary of plot (10 |
| CONTROL | ten coded digits controlling physical |
| parameters of the plot (0422851530) |
| CONTROL digit | description |
| 1 | = 0 - no grid lines drawn across center of plot |
| = 1 - grid lines drawn across center of plot | |
| 2 | = 1 - points |
| = 2 - solid lines | |
| = 3 - points + solid lines | |
| = 4 - histogram | |
| 3 | 4010 x coordinate of lower left corner of grid |
| in units of 100 | |
| 4 | 4010 y coordinate of lower left corner of grid |
| in units of 100 | |
| 5 | x length of graph in 4010 coordinates in |
| units of 100 | |
| 6 | y length of graph in 4010 coordinates in |
| units of 100 | |
| 7,8 | size of numbers along x and y axes |
| 9,10 | size of labels |
| PRINT CODE | Specifies the printed output and the ordering. |
| If the code > 0, there will be a line | |
| space before printing each observation | |
| and descriptive heading will also be given. |
| 1 | all header data will be printed in raw form |
| 2 | weights and Y values |
| 3 | labelled header |
| 4 | line parameters measured by LINE function |
| 5 | system parameters |
| 6 | printer plot |
| 7 | positional information |
| 8 | source name and MESSAGE |
| 9 | frequency information |
| X VARIABLE | header variable name to be used as |
| independent variable | |
| Y VARIABLE | header variable name to be used as |
| dependent variable | |
| XLOWER | lower bound of independent variable (-10 |
| XUPPER | upper bound of independent variable (10 |
| ORDER | order of interpolation in final scan |
| SCALING SCAN | scan number in current directory which contains |
| SCALING VARIABLE | header variable name in argument scan to |
| SCAN | value of new scan number |
| STEP | incremental increase in SCAN between two successive |
| of STEP after the new scan number has been put in the | |
| header location SCAN. |
| LEFT | left boundary of plot (-10 |
| RIGHT | right boundary of plot (10 |
| DY | increment in Y by which successive plots are displaced |
| CONTROL | ten coded digits controlling physical parameters |
| of the plot (0422851530) |
| Control digit | Description |
| 1 | = 0 - no grid lines drawn across center of plot |
| = 1 - grid lines drawn across center of plot | |
| 2 | = 1 - points |
| = 2 - solid lines | |
| = 3 - points + solid lines | |
| = 4 - histogram | |
| 3 | 4010 x coordinate of lower left corner of grid |
| in units of 100 | |
| 4 | 4010 y coordinate of lower left corner of grid |
| in units of 100 | |
| 5 | x length of graph in 4010 coordinates in units of 100 |
| 6 | y length of graph in 4010 coordinates in units of 100 |
| 7,8 | size of numbers along x and y axes |
| 9,10 | size of labels |
| XL1 | lower bound of first interval (-10 |
| XU1 | upper bound of first interval (10 |
| XL2 | lower bound of second interval (10 |
| XU2 | upper bound of second interval (-10 |
| XL3 | lower bound of third interval (10 |
| XU3 | upper bound of third interval (-10 |
| WAVELENGTH | initial guess of wavelength of standing wave |
| FILTER | 0 - channel average |
| 1 - boxcar | |
| 2 - Gaussian weights | |
| 3 - Hamming | |
| 4 - bin weighting | |
| RESOLUTION | resolution of filter function in units of the |
| current x variable. | |
| XLOWER | lower bound of interval to be filtered (-10 |
| XUPPER | upper bound of interval to be filtered (10 |
| NUMBER OF VARIABLES SORT | 1 or 2 |
| PRIMARY VARIABLE NAME | name of the header |
| variable. | |
| PRIMARY VARIABLE DIRECTION | sort in increasing or |
| decreasing value | |
| SECONDARY VARIABLE NAME | name of the header |
| variable. | |
| SECONDARY VARIABLE DIRECTION | sort in increasing or |
| decreasing value |
| TOLERANCE | tolerance in arcminutes for RA and DEC |
| positions in a common source cluster |
| Y COORDINATE | name of header variable to be used as Y variable |
| CONTROL | ten coded digits controlling physical |
| parameters of the plot (0422851530). | |
| LEFT | left boundary of grid. |
| RIGHT | right boundary of grid. |
| BOTTOM | bottom boundary of grid. |
| TOP | top boundary of grid. |
| CONTROL digit | description |
| 1 | = 0 - no grid lines drawn across center of plot |
| = 1 - grid lines drawn across center of plot | |
| 2 | = 1 - z values printed on graph |
| = 2 - points | |
| = 3 - lines connecting points | |
| = 4 - labelled contours | |
| = 5 - unlabelled contours | |
| = 6 - dense shading | |
| = 7 - optimum density shading | |
| = 8 - less dense shading | |
| = 9 - lowest density shading | |
| 3 | = 4010 x coordinate of lower left corner |
| of grid in units of 100 | |
| 4 | = 4010 y coordinate of lower left corner |
| of grid in units of 100 | |
| 5 | = x length of graph in 4010 coordinates |
| in units of 100 | |
| 6 | = y length of graph in 4010 coordinates |
| in units of 100 | |
| 7,8 | = size of numbers along x and y axes |
| 9,10 | = size of labels |
| XLOWER | lower limit of header values to be histogrammed (-10 |
| XUPPER | upper limit of header values to be histogrammed (10 |
| DX | bin size (10 |