aboutsummaryrefslogtreecommitdiff
path: root/noao/onedspec/ecidentify/ecffit/ecftitle.x
diff options
context:
space:
mode:
Diffstat (limited to 'noao/onedspec/ecidentify/ecffit/ecftitle.x')
-rw-r--r--noao/onedspec/ecidentify/ecffit/ecftitle.x48
1 files changed, 48 insertions, 0 deletions
diff --git a/noao/onedspec/ecidentify/ecffit/ecftitle.x b/noao/onedspec/ecidentify/ecffit/ecftitle.x
new file mode 100644
index 00000000..3b754f31
--- /dev/null
+++ b/noao/onedspec/ecidentify/ecffit/ecftitle.x
@@ -0,0 +1,48 @@
+include <pkg/gtools.h>
+
+# ECF_TITLE -- Set the GTOOLS parameter string.
+
+procedure ecf_title (gt)
+
+pointer gt # GTOOLS pointer
+
+include "ecffit.com"
+
+begin
+ call sprintf (ecfstr, SZ_LINE,
+ "Function=%s, xorder=%d, yorder=%d, slope=%d, offset=%d, rms=%6g")
+ call pargstr (function)
+ call pargi (xorder)
+ call pargi (yorder)
+ call pargi (slope)
+ call pargi (offset)
+ call pargd (rms)
+ call gt_sets (gt, GTPARAMS, ecfstr)
+ call gt_sets (gt, GTTITLE, "Echelle Dispersion Function Fitting")
+
+ switch (xtype) {
+ case 'p':
+ call gt_sets (gt, GTXLABEL, "Pixel")
+ case 'o':
+ call gt_sets (gt, GTXLABEL, "Order")
+ case 'w':
+ call gt_sets (gt, GTXLABEL, "Wavelength")
+ case 'r':
+ call gt_sets (gt, GTXLABEL, "Residual")
+ case 'v':
+ call gt_sets (gt, GTXLABEL, "Velocity")
+ }
+
+ switch (ytype) {
+ case 'p':
+ call gt_sets (gt, GTYLABEL, "Pixel")
+ case 'o':
+ call gt_sets (gt, GTYLABEL, "Order")
+ case 'w':
+ call gt_sets (gt, GTYLABEL, "Wavelength")
+ case 'r':
+ call gt_sets (gt, GTYLABEL, "Residual")
+ case 'v':
+ call gt_sets (gt, GTYLABEL, "Velocity")
+ }
+end