Syntax: tsx (raw TripleSpec FITS files) [ TripleSpec B file ] [ sp=pix,pix ] [ asp=arcsec,arcsec ] [ -autox ] [ -autob ] [ flat= ] [ bk= | abk= ] [ ac= ]
A single exposure can be divided by a Vega-type star using the 'ac=' option. This divides the 'sum' column of a faint object spectrum, by the 'VsumD' column of a bright Vega-type star. For example, if the faint object is 'tspec0050' (with a B exposure 'tspec0051'), and 'tspec0048' is a bright, Vega-type star:
tsx tspec0050 tspec0051 -autox ac=tspec0048The divided spectrum will be in the column 'sumac'. This assumes that 'tspec0048' is a Vega-type star and was already processed.
For summing up multiple exposures of a faint object, use the 'tsxop' program. For an example, see: summed exposure correction .
Syntax: tsxop (operation) (root1) (root2) ... result=(filename) [ -plot ] [ -plot ] [ col=(column name) ] This program will operate on spectral tables (-sp.tbl) written by tsx or written by this program (tsxop). Operations: ave add sub mul div If the '-plot' option is used a PostScript plot will be created using 'tsxplot'. Use the option 'col=' to operate on other columns in the -sp.tbl file, default is the 'sum' column.
The 'root' name would be the filename before the '-sp.tbl' extension. So for example:
tsxop add tspec0080 tspec0081 result=tspecadd
would add up the values in the 'sum' column from the files 'tspec0080-sp#.tbl' and 'tspec0081-sp#.tbl', and create files for each order called 'tspecadd-sp#.tbl'. The program copies the 'wave' column from the first file (files must have identical wavelength scales), and computes the appropriae 'error' column (only for columns 'sum', 'cps', and 'flux'). Operations are done in series, including subtraction and division.
The 'root' name would be the filename before the '-sp.tbl' extension.
You also combine individual exposures and processed files. So for example:
tsxop div tspec0065 tspecadd result=tspecdiv
would divide the files 'tspec0065-sp#.tbl' each by the corresponding files 'tspecadd-sp#.tbl' previously created by 'tsxop'. You can operate on any combination of individual exposure and processed files.
Syntax: tsxplot (raw TripleSpec FITS file or root name of summed file) Create PGPLOT PostScript plots. Options: x= : name of column to plot on x axis (default=wave/arcsec). y= : name of column to plot on y axis (default=sum/flux_mb). z= : name of 2nd column to plot on y axis (default=none). object= : print this string in title of plot. -sp : read -sp#.tbl files. -pro : read -pro#.tbl files. -ps : create PS plot file. ps= : specify root filename of PostScript plot file. eo= : Echelle Order to plot (3,4,5,6,7) (default: show all orders). xmin= : Minimum X value to plot. xmax= : Maximum X value to plot. ymin= : Minimum Y value to plot. ymax= : Maximum Y value to plot. bin= : Number of pixels to bin (average) (default: no binning).
The 'root' name would be the filename before the '-sp.tbl' extension. So for example:
tsxplot tspec0080 -sp -ps
would create 'tspec0080-sp.ps' showing all 5 echelle orders.
tsxplot tspec0080 -sp eo=4 ps=t80_order4 xmin=1.5 xmax=1.6
would create 't80_order4-sp.ps' showing just echelle order number 4 and only the data between 1.5 and 1.6 microns.
tsxplot tspec0080 -sp -ps x=pix y=s2n
would create plots of signal-to-noise vs. pixel number.