| 1 |
/* @(#)main_defs.h 19.1 (ESO-IPG) 02/25/03 13:45:25 */ |
| 2 |
/* @(#)main_defs.h 1.1 (ESO-IPG) 4/13/93 14:17:09 */ |
| 3 |
/* @(#)gm_defs.h 1.0.0.0 (ESO-La Silla) 10/08/91 12:00:00 */ |
| 4 |
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| 5 |
.IDENT gm_defs.h |
| 6 |
.MODULE header |
| 7 |
.LANGUAGE C |
| 8 |
.AUTHOR Cristian Levin - ESO La Silla |
| 9 |
.PURPOSE Contain extern declarations of variables and |
| 10 |
functions, #includes, #defines and typedefs |
| 11 |
related to the graphical interface of Spectra. |
| 12 |
.KEYWORDS global variables, X11 |
| 13 |
.COMMENTS Athena widgets implementation. |
| 14 |
.VERSION 1.0 1-Mar-1991 Implementation |
| 15 |
.ENVIRONMENT UNIX |
| 16 |
------------------------------------------------------------*/ |
| 17 |
|
| 18 |
/* types of plots for response curve generation */ |
| 19 |
#define PLOT_RATIO_WAVE 0 |
| 20 |
#define PLOT_MAGN_WAVE 1 |
| 21 |
#define PLOT_MAGN_FREQ 2 |
| 22 |
|
| 23 |
/* label or no label the spectrum representing the starting line */ |
| 24 |
#define LABEL_SPEC 0 |
| 25 |
#define NO_LABEL 1 |
| 26 |
|
| 27 |
/* options for rebinning */ |
| 28 |
#define LINEAR 0 |
| 29 |
#define QUADRATIC 1 |
| 30 |
#define SPLINE 2 |
| 31 |
|
| 32 |
/* parameters for identification */ |
| 33 |
#define IDBEGIN 0 |
| 34 |
#define IDCONT 1 |
| 35 |
|
| 36 |
/* parameters of update_line_table() */ |
| 37 |
#define ADDMARK 0 |
| 38 |
#define DELMARK 1 |
| 39 |
|
| 40 |
/* for values in the :ERASED column in the line table */ |
| 41 |
#define VAL_ERASED '-' |
| 42 |
#define VAL_INVALID 'x' |
| 43 |
#define VAL_OK ' ' |
| 44 |
|
| 45 |
extern float Rnull; /* null values for Midas */ |
| 46 |
extern int Inull; |
| 47 |
extern double Dnull; |
| 48 |
|
| 49 |
/* |
| 50 |
* Application variables |
| 51 |
*/ |
| 52 |
extern float Thres, |
| 53 |
Tol, |
| 54 |
Avdisp, |
| 55 |
Wcenter, |
| 56 |
Shift, |
| 57 |
Alpha, |
| 58 |
Imin, |
| 59 |
Maxdev; |
| 60 |
extern char Instrume[], |
| 61 |
Wlc[], |
| 62 |
Lincat[], |
| 63 |
Coerbr[], |
| 64 |
Guess[], |
| 65 |
Seamtd[], |
| 66 |
Wlcmtd[], |
| 67 |
Rebmtd[], |
| 68 |
Coropt[], |
| 69 |
Corvisu[], |
| 70 |
Twodopt[], |
| 71 |
Coorfil[], |
| 72 |
Session[]; |
| 73 |
extern int Ystart, |
| 74 |
Wrang[], |
| 75 |
Ywidth, |
| 76 |
Width, |
| 77 |
Dcx[], |
| 78 |
Wlcniter[], |
| 79 |
Ystep; |
| 80 |
extern double Rebstrt, |
| 81 |
Rebend, |
| 82 |
Rebstp; |
| 83 |
|
| 84 |
extern int Npix[]; |
| 85 |
|
| 86 |
/* Plot residual variables */ |
| 87 |
extern int RowResidual; |
| 88 |
extern int AllResidual; /* boolean */ |
| 89 |
|
| 90 |
extern int TolPixels; /* boolean -- option menu for tolerance units */ |
| 91 |
|
| 92 |
extern int UpdateToggle; |
| 93 |
|
| 94 |
/* flux calibration variables */ |
| 95 |
extern char Extab[], |
| 96 |
Fluxtab[], |
| 97 |
Resptab[], |
| 98 |
Plotyp[], |
| 99 |
Fityp[], |
| 100 |
Response[]; |
| 101 |
extern int Fitd; |
| 102 |
extern float Smooth; |
| 103 |
|
| 104 |
/* extraction variables */ |
| 105 |
extern char Extmtd[]; |
| 106 |
extern int Skyord, |
| 107 |
Uppsky[], |
| 108 |
Lowsky[], |
| 109 |
Order, |
| 110 |
Radius, |
| 111 |
Niter, |
| 112 |
Objlim[], |
| 113 |
Skymod; |
| 114 |
extern float Sigma, |
| 115 |
Ron, |
| 116 |
Gain; |
| 117 |
|
| 118 |
extern int ListType; |
| 119 |
extern int DialogType; |
| 120 |
|
| 121 |
/* Batch reduction variables */ |
| 122 |
extern char Inputf[], |
| 123 |
Outputf[], |
| 124 |
Inpnumb[], |
| 125 |
Bias[], |
| 126 |
Dark[], |
| 127 |
Flat[], |
| 128 |
Redextab[], |
| 129 |
Redresp[], |
| 130 |
Redrbmtd[], |
| 131 |
Longsess[], |
| 132 |
Redsess[], |
| 133 |
Biasopt[], |
| 134 |
Darkopt[], |
| 135 |
Flatopt[], |
| 136 |
Rotopt[], |
| 137 |
Trimopt[], |
| 138 |
Rebopt[], |
| 139 |
Extopt[], |
| 140 |
Respopt[]; |
| 141 |
extern double Rotstart, |
| 142 |
Rotstep; |
| 143 |
extern int Trim[], |
| 144 |
Outnumb; |
| 145 |
|
| 146 |
extern char Plotmode[]; |
| 147 |
|
| 148 |
/************************************************************* |
| 149 |
Definitions related to the addition of spectral lines |
| 150 |
*************************************************************/ |
| 151 |
|
| 152 |
extern int NToAdd; /* current no. of spectral lines to add */ |
| 153 |
extern float LinesToAdd[]; /* x-coords of lines to add */ |