Debian Codegraph @

gui/XEchelle/incl/spec_defs.h

raw
1 /* @(#)spec_defs.h 19.1 (ESO-IPG) 02/25/03 13:45:26 */
2 /* @(#)spec_defs.h 8.1 (ESO-IPG) 9/1/94 09:18:27 */
3 /* @(#)sp_defs.h 1.0.0.0 (ESO-La Silla) 10/08/91 12:00:00 */
4 /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5 .IDENT sp_defs.h
6 .MODULE header
7 .LANGUAGE C
8 .AUTHOR Cristian Levin - ESO La Silla
9 .PURPOSE definitions for the application side of Spectra.
10 .KEYWORDS application definitons.
11 .COMMENTS
12 .VERSION 1.0 1-Mar-1991 Implementation
13 .ENVIRONMENT UNIX
14 ------------------------------------------------------------*/
15
16 #define MAXION 20 /* max. length of a string in :ION column */
17 #define COL_WAVE ":WAVE"
18 #define COL_ION ":ION"
19 #define COL_INTENSITY ":INTENSITY"
20 #define COL_STRENGTH ":STRENGTH"
21
22 #define MAXDELTA 1000000.0 /* max. diff. between :X values */
23
24 #define MAXSTACK 30 /* max.size of stack of spectra */
25
26 #define MAXCDESC 20
27 #define MAXIDENT 20
28 #define LEFT_BUT 1
29 #define MID_BUT 32
30
31 /* for calibration processes */
32 #define CALLIN 0
33 #define CALFIT 1
34 #define CALRBR 2
35
36 typedef struct spec {
37 char name[MAXNAME]; /* name of file without suffix */
38 char ident[MAXIDENT]; /* identification of image */
39 int id; /* id of file */
40 float x[MAXDATA], y[MAXDATA];
41 float xmin, ymin, xmax, ymax;
42 int row; /* row of image associated to this spectrum */
43 int ahead; /* rows ahead to be averaged with 'row' */
44 int ncols, nrows;
45 float start, step;
46 } SPEC;
47
48 typedef struct sp_table {
49 int id; /* identifier of the table */
50 char name[MAXNAME]; /* filename */
51 float **data; /* values of the table (matrix form) */
52 char **label; /* labels of columns */
53 int ncols; /* number of columns */
54 int nrows; /* number of rows */
55 int naw; /* number of allocated words by row */
56 int nar; /* number of allocated rows */
57 } SPTAB;
58
59 typedef struct lc_table {
60 int id; /* identifier of the table */
61 char name[MAXNAME]; /* filename */
62 int *row; /* effective row number */
63 float *wave; /* values of the WAVE column */
64 float *intens; /* values of the INTENSITY column */
65 char **ion; /* values of the ION column */
66 int nrows; /* number of rows */
67 } LCTAB;
68