simcalib.cpp File Reference

Functions

Variables


Function Documentation

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().

double blackbody ( double  l,
double  T 
)

blackbody spectrum

References c.

Referenced by mkframe().

void wf2xy ( float  w,
float  f,
float *  x2,
float *  y2 
)

simple model for the distortion transform

References __xsize__, __ysize__, a, b, c, fstart, fstop, g, wlstart, wlstop, xstart, xstop, ystart, and ystop.

Referenced by mkframe(), and mklinefile().

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 
)

Given a range of wavelengths create a line identification file that can subsequently be given to deformer.

References __xsize__, g, and wf2xy().

Referenced by main().

int main ( int  argc,
char *  argv[] 
)

Variable Documentation

const string version = "$Id: simcalib.cpp 894 2013-11-21 12:15:44Z snigula $"
struct globals g
float fstart

Referenced by main(), mkframe(), and wf2xy().

float fstop

Referenced by main(), mkframe(), and wf2xy().

float df
float xstop

Referenced by main(), and wf2xy().

float xstart

Referenced by main(), replace_cosmic(), and wf2xy().

float wlstop

Referenced by main(), and wf2xy().

float wlstart

Referenced by main(), and wf2xy().

float ystop

Referenced by main(), and wf2xy().

float ystart

Referenced by main(), replace_cosmic(), and wf2xy().


Generated on 4 Nov 2015 for CURE by  doxygen 1.6.1