~ubuntu-branches/ubuntu/wily/eso-midas/wily-proposed

« back to all changes in this revision

Viewing changes to stdred/mos/incl/proto_mos.h

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2014-04-22 14:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20140422144458-okiwi1assxkkiz39
Tags: upstream-13.09pl1.2+dfsg
ImportĀ upstreamĀ versionĀ 13.09pl1.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* @(#)proto_mos.h      10.1.1.1 (ESO-IPG) 8/7/95 17:22:41 */
 
2
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
3
.COPYRIGHT   (c) 1993 European Southern Observatory
 
4
.IDENTifer   proto_spec.h
 
5
.AUTHOR      C. Guirao IPG-ESO Garching
 
6
.AUTHOR      T. Szeifert LSW Heidelberg
 
7
.KEYWORDS    prototypes
 
8
.LANGUAGE    C & ANSI-C
 
9
.PURPOSE     prototypes for all SPEC routines,
 
10
             2D-tool included by TS-1996 
 
11
 
 
12
.ENVIRONment none
 
13
 
 
14
.VERSION     1.0     22-Oct-1993   Creation by CG.
 
15
------------------------------------------------------------*/
 
16
 
 
17
#ifndef PROTO_SPEC
 
18
#define PROTO_SPEC
 
19
 
 
20
extern void eval_disp(
 
21
#ifdef __STDC__
 
22
        double x[], double l[], int n
 
23
#endif
 
24
);
 
25
 
 
26
extern void finishdisp(
 
27
#ifdef __STDC__
 
28
         void 
 
29
#endif
 
30
);
 
31
 
 
32
extern void initdisp(
 
33
#ifdef __STDC__
 
34
        char name[], char mode[], int start
 
35
#endif
 
36
);
 
37
 
 
38
extern double mos_fit_disp(
 
39
#ifdef __STDC__
 
40
        int *ndata, int *deg, double x[], double l[], double *chi
 
41
#endif
 
42
);
 
43
 
 
44
extern void mos_initdisp(
 
45
#ifdef __STDC__
 
46
        char name[], char mode[], int  start
 
47
#endif
 
48
);
 
49
 
 
50
extern void mos_savedisp(
 
51
#ifdef __STDC__
 
52
        double save[]
 
53
#endif
 
54
);
 
55
 
 
56
extern void mos_writedisp(
 
57
#ifdef __STDC__
 
58
        int line, int slit, int ypix,double y,int numrow, double rms
 
59
#endif
 
60
);
 
61
 
 
62
extern void printdisp(
 
63
#ifdef __STDC__
 
64
         void 
 
65
#endif
 
66
);
 
67
 
 
68
extern double readdisp(
 
69
#ifdef __STDC__
 
70
        int y
 
71
#endif
 
72
);
 
73
 
 
74
extern void setdisp(
 
75
#ifdef __STDC__
 
76
        int deg, double coefs[]
 
77
#endif
 
78
);
 
79
 
 
80
extern void setrefdeg(
 
81
#ifdef __STDC__
 
82
        int deg
 
83
#endif
 
84
);
 
85
 
 
86
void writedisp(
 
87
#ifdef __STDC__
 
88
        int line, int ypix, double y, double pixel, double rms
 
89
#endif
 
90
);
 
91
 
 
92
void lfit2(
 
93
#ifdef __STDC__
 
94
           double x[], double y[], double sig[], int ndata, double a[],
 
95
           int ma, int lista[], int mfit, double **covar, double *chisq,
 
96
           void (*funcs)(double, double *, int)
 
97
#endif
 
98
);
 
99
 
 
100
 
 
101
void fleg(
 
102
#ifdef __STDC__
 
103
   double x, double pl[], int nl
 
104
#endif
 
105
);
 
106
 
 
107
void fpoly(
 
108
#ifdef __STDC__
 
109
  double x, double p[], int np
 
110
#endif
 
111
);
 
112
 
 
113
/*  These are the 2D-tools: */
 
114
 
 
115
#ifdef _STDC__
 
116
extern   void setrefdeg_2D(int deg);
 
117
#else
 
118
extern   void setrefdeg_2D(); 
 
119
#endif
 
120
 
 
121
#ifdef _STDC__
 
122
extern   void setdisp_2D(int deg, double coefs[]);
 
123
#else
 
124
extern   void setdisp_2D();
 
125
#endif
 
126
 
 
127
#ifdef _STDC__
 
128
extern   double mos_fit_disp_2D(int *ndata, int *deg, double x[], double y[],
 
129
                       double l[], double *chi);
 
130
#else
 
131
extern   double mos_fit_disp_2D();
 
132
#endif
 
133
 
 
134
#ifdef __STDC__
 
135
extern   void mos_eval_disp_2D (double x[], double y[], double l[], int n);
 
136
#else
 
137
extern   void mos_eval_disp_2D ();
 
138
#endif
 
139
 
 
140
#ifdef __STDC__
 
141
void mos_writedisp_2D(int line, int slit, int ypix, 
 
142
                      double y, int numrow, double rms);
 
143
#else
 
144
void mos_writedisp_2D();  
 
145
#endif
 
146
 
 
147
 
 
148
#ifdef __STDC__
 
149
  void fleg_2D( double x1, double x2, double pl[], int nl);
 
150
#else
 
151
  void fleg_2D();
 
152
#endif 
 
153
 
 
154
#ifdef __STDC__
 
155
  void fpoly_2D( double x1, double x2, double pl[], int nl);
 
156
#else
 
157
  void fpoly_2D();
 
158
#endif  
 
159
 
 
160
#ifdef __STDC__
 
161
  void fcheb_2D( double x1, double x2, double pl[], int nl);
 
162
#else
 
163
  void fcheb_2D();
 
164
#endif  
 
165
 
 
166
#ifdef _STDC__
 
167
  void lfit2_2D(double x1[], double x2[], double y[], double sig[], int ndata, 
 
168
           double a[], int ma, int lista[], int mfit, double **covar, 
 
169
           double *chisq, void (*funcs)(double, double, double *, int));
 
170
#else
 
171
  void lfit2_2D();
 
172
#endif
 
173
 
 
174
 
 
175
 
 
176
#ifdef __STDC__
 
177
int match(int verif, double linid[], double linwav[], 
 
178
          double liny[], double lindif[], int nbrow, 
 
179
          double lcat[], int nbrowcat, double alpha, 
 
180
          double *stdres, double dnull, int reject[]);
 
181
#else
 
182
  int match( );
 
183
#endif  
 
184
 
 
185
 
 
186
 
 
187
 
 
188
 
 
189
 
 
190
 
 
191
#endif