Up: ANALYSE Language Internal Help
ANALYSE\GREG Name [/FORMATTED [Format]]
ANALYSE\GREG Name /READ [X n] [Y m]
Writes in file Name the contents of R buffer 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 R buffer. Only available for formatted files; the
equivalent capability for GILDAS tables is available through a combina-
tion of DEFINE IMAGE and MODEL.
For the table, the information stored is :
2. Channel number
4. Offset frequency
5. Rest frequency
6. Image frequency
7. Fitted profiles if any - fit(i),i=0,nline - in column 7+i
Line #0 means sum of all lines. Then all lines are written individually.
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 residu-
als 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
The /FORMATTED option can be passed a custom Fortran format, e.g. to ex-
tend the number of digits in each column. Default is
"(1PG17.9,7(1PG12.4))". Do not forget to provide the enclosing parenthe-
ses and as many specifications as the number of columns (up to 8 depend-
ing on the number of line fits). For example "(F15.6,1X,F15.4)" is valid
if no line fit is available.
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 chan-
nel numbers. Only very coarse header information is filled in. A lot of
complementary header editing will often be needed.