sinfoni_globals.c

00001 #include "sinfoni_globals.h"
00002 #include <cpl.h>
00003 fake*
00004 fake_new(void)
00005  {
00006    fake * f;
00007    f= cpl_malloc(sizeof(fake));
00008 
00009   strcpy(f->pro_class,"DEFAULT");
00010   f->frm_switch=0;
00011   f->mask_index=1;
00012   f->ind_index=0;
00013   f->flat_index=1;
00014   f->wfix_index=1;
00015   f->low_rej=0.1;
00016   f->hig_rej=0.1;
00017   return f;
00018 }
00019 
00020 void
00021 fake_delete(fake* f)
00022 {
00023   cpl_free(f);
00024 }
00025 
00026 
00027 wcal*
00028 wcal_new(void)
00029  {
00030    wcal * w;
00031    w= cpl_malloc(sizeof(wcal));
00032 
00033    w->wstart=1.65;
00034    w->wgdisp1=-0.000200018796022;
00035    w->wgdisp2=9.30345245278e-10;
00036    w->min_dif=10.0;
00037    w->hw=7;
00038    w->fwhm=2.83;
00039    w->min_amp=5.0;
00040    w->na_coef=3;
00041    w->nb_coef=2;
00042    w->pixel_tol=7.0;
00043    w->y_box=2.0;
00044    w->low_pos=750;
00045    w->hig_pos=1000;
00046  
00047   return w;
00048 }
00049 
00050 void
00051 wcal_delete(wcal* w)
00052 {
00053   cpl_free(w);
00054 }
00055 
00056 
00057 
00058 
00059 stack*
00060 stack_new(void)
00061  {
00062    stack * s;
00063    s= cpl_malloc(sizeof(stack));
00064 
00065    strcpy(s->do_class,"DEFAULT");
00066    strcpy(s->index_list,"indexlist");
00067    s->warp_fix_ind=1;
00068   
00069   return s;
00070 }
00071 
00072 void
00073 stack_delete(stack* s)
00074 {
00075   cpl_free(s);
00076 }
00077 
00078 nstpar*
00079 nstpar_new(void)
00080  {
00081    nstpar * n;
00082    n= cpl_malloc(sizeof(nstpar));
00083 
00084    n->fwhm[0]=2.0;
00085    n->fwhm[1]=5.0;
00086    n->fwhm[2]=2.0;
00087    n->fwhm[3]=2.0;
00088 
00089    n->min_dif[0]=1.0;
00090    n->min_dif[1]=5.0;
00091    n->min_dif[2]=5.0;
00092    n->min_dif[3]=5.0;
00093  
00094   return n;
00095 }
00096 
00097 void
00098 nstpar_delete(nstpar* n)
00099 {
00100   cpl_free(n);
00101 }
00102 
00103 
00104 distpar*
00105 distpar_new(void)
00106  {
00107    distpar * d;
00108    d= cpl_malloc(sizeof(distpar));
00109 
00110    d->diff_tol[0]=2.0;
00111    d->diff_tol[1]=4.0;
00112    d->diff_tol[2]=2.0;
00113    d->diff_tol[3]=4.0;
00114  
00115   return d;
00116 }
00117 
00118 void
00119 distpar_delete(distpar* d)
00120 {
00121   cpl_free(d);
00122 }
00123 

Generated on Wed Oct 26 13:08:55 2005 for SINFONI Pipeline Reference Manual by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001