void print_usage | ( | OptionParser & | flags | ) |
void add_options | ( | OptionParser & | flags | ) |
References g.
float gauss | ( | const float | x, | |
const float | mu, | |||
const float | sigma | |||
) |
2D gaussian MArray<float,2> gauss (MArray<float,2>& x, const float mu, const float sigma) { MArray<float,2> g = 1.f/(sigma*sqrt (2.0f*M_PI))*exp (-pow2 (x-mu)/(2.0f*pow2 (sigma))); return g; }
Referenced by mkframe(), and replace_cosmic().
void wf2xy | ( | float | w, | |
float | f, | |||
float * | x2, | |||
float * | y2 | |||
) |
MArray<float,2> mkframe | ( | const MArray< float, 1 > & | ww | ) |
Given a range of wavelengths, place (gaussian) PSFs at each of these wavelenghts in each fiber. With few wavelengths, this generates an "arc frame", and with a densly spaced wavelength grid it generates a continuum "flat field".
References __xsize__, __ysize__, blackbody(), df, fstart, fstop, g, gauss(), and wf2xy().
Referenced by main().
void mklinefile | ( | const MArray< float, 1 > & | ww, | |
string | lineoutfile | |||
) |
int main | ( | int | argc, | |
char * | argv[] | |||
) |
const string version = "$Id: simcalib.cpp 894 2013-11-21 12:15:44Z snigula $" |
struct globals g |
float df |
Referenced by main(), measure_5577_flux(), mkframe(), SuperSky::propagate_error(), Resampler< Interpolator, Transform >::resample_wf(), Resampler< Interpolator, Transform >::resample_xf_xy(), Resampler< Interpolator, Transform >::resample_xy(), Resampler< Interpolator, Transform >::resample_xy_xf(), SuperSky::sample_sky_for_line(), and SuperSky::subtract_sky_from_line().
float xstart |
Referenced by main(), replace_cosmic(), and wf2xy().
float ystart |
Referenced by main(), replace_cosmic(), and wf2xy().