ANALYSE\GREG Name [/FORMATTED] [/READ [X n] [Y m] Writes in file Name the contents of current scan as a GILDAS table, or as a formatted file if the /FORMATTED option is present. If the /READ option is present, performs the reverse operation: load the file content in the current scan. Only available for formatted files; the equivalent capability for GILDAS tables is available through a combination of DEFINE IMAGE and MODEL. For the table, the information stored is : 1. Intensity 2. Channel number 3. Velocity 4. Offset frequency 5. Rest frequency 6. Image frequency 7. Fitted profiles if any - fit(i),i=0,nline - in column 7+i The output table can be put later in a formatted way using GILDAS task LIST in you need. The table may be used as input to GreG to produce fancy plots, or by the GILDAS software for other applications. In particular, SIC variables can be used to subtract any of the fits from the spectrum to produce residuals if needed. For plots, note that you can produce essentially the same within CLASS, except under very special circumstances, and moreover that only CLASS can handle the different X-unit simultaneously. For the formatted list, less information is written (and it takes longer to write it of course) : 1. Current X unit in column 1 2. Intensity in column 2 3. Fitted profiles - (fit(i),i=0,nline) - in column 3+i For the /READ option, columns are X 1 Y 2 by default but can be changed. If X 0 is given as zero, then only Y is read and X is filled with channel numbers. Only very coarse header information is filled in. A lot of complementary header editing will often be needed.