Go to the source code of this file.
|
void | CalcSpectrumLimits (int mod, int pos, int spx, int epix, int refpix) |
|
int | Pix2Wl (int mod, int pos, int spix, int epix, struct doas *pd) |
|
§ CalcSpectrumLimits()
void CalcSpectrumLimits |
( |
int |
mod, |
|
|
int |
pos, |
|
|
int |
spx, |
|
|
int |
epix, |
|
|
int |
refpix |
|
) |
| |
Definition at line 67 of file DOAS.c.
References doas::k1, doas::k2, doas::lambda, and wl.
Referenced by DrawAreaPlotCB().
127 for(i = 0;i< 18 ;i++)
152 lm[refpix] = (2 * pos - k1) / (2 - k2);
154 lm[refpix] = (lm[refpix]) + (k1 - k2 * lm[refpix]);
158 for(k = refpix - 1 ; k >= spix; k--)
159 lm[k] = ((2 + k2) * lm[k + 1] - 2 * k1) / (2 - k2);
162 for (k = refpix + 1; k <= epix +1; k++)
163 lm[k] = ((2 - k2) * lm[k - 1] + 2 * k1) / (2 + k2);
165 for(i = spix; i<=epix; i++)
double k2[20]
k2 dispersion parameter -slope (x stretch2
double lambda[1055]
Wavelength series.
double k1[20]
k1 dispersion parameter - intercept (x stretch1)
int wl[]
WaveLength definition - for SD_Grating.
§ Pix2Wl()
int Pix2Wl |
( |
int |
mod, |
|
|
int |
pos, |
|
|
int |
spix, |
|
|
int |
epix, |
|
|
struct doas * |
pd |
|
) |
| |
Definition at line 26 of file DOAS.c.
References doas::dhg, doas::k1, doas::k2, doas::lambda, doas::pixref, doas::wlc, and doas::wlref.
Referenced by D_pbr_CB(), DrawAreaPlotCB(), and WriteColumn().
28 int k, i, c = pos, t=0;
46 for(k = pd->
pixref[t] - 1 ; k >= spix; k--)
47 pd->
lambda[k] = ((2 + pd->
k2[t]) * pd->
lambda[k + 1] - 2 * pd->
k1[t]) / (2 - pd->
k2[t]);
50 for (k = pd->
pixref[t] + 1; k <= epix +1; k++)
51 pd->
lambda[k] = ((2 - pd->
k2[t]) * pd->
lambda[k - 1] + 2 * pd->
k1[t]) / (2 + pd->
k2[t]);
double k2[20]
k2 dispersion parameter -slope (x stretch2
double wlref[20]
reference wavelength
int pixref[20]
reference pixel
double lambda[1055]
Wavelength series.
double dhg[20]
shift parameter
double k1[20]
k1 dispersion parameter - intercept (x stretch1)
int wlc[20]
Central wavelength.