Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

incl/libsnifs.h

Go to the documentation of this file.
00001 /* === Doxygen File Comment ======================================== */
00013 /* ================================================================= */
00014 
00015 #ifndef _LIBSNIFS_H
00016 #define _LIBSNIFS_H
00017 
00018 /* ===== Function prototyping ============================== */
00019 
00020 /* File misc.c */
00021 
00022 void banner_snifs(void);
00023 void init_snifs(char *cvsname, char *cvsversion);
00024 
00025 float read_exptime(void *anyfile);
00026 float read_airmass(void *anyfile);
00027 float check_airmass(char *arcname, float cal_airmass, 
00028                     char *objname, float obj_airmass);
00029 
00030 /* File external.c */
00031 
00032 long RD_2col(TABLE *table, int col1, double *data1, int col2, double *data2);
00033 int read_2columns(char *tablename, char *col1name, char *col2name, int fclass,
00034                   double **array1, double **array2);
00035 int read_fluxref_table(char *tablename, char *lbdacolname, char *fluxcolname,
00036                        double **lbda, double **flux, char *flxunits,
00037                        char *rescolname, double **specres);
00038 int read_lbdaref_table(char *tablename, char *lbdaname, char *flagname,
00039                        float **lbda, float lbda_inf, float lbda_sup);
00040 
00041 /* File stats.c */
00042 
00043 void frame_stats(const IMAGE2D *frame, double *mean, double *sigma, 
00044                  double *median, double *sigmed);
00045 SPECTRUM *array_histo(const double *array, int npts, 
00046                       double min, double max, int nbin);
00047 SPECTRUM *subframe_histo(const IMAGE2D *frame, 
00048                          int imin, int imax, int jmin, int jmax, 
00049                          double min, double max, int nbin);
00050 SPECTRUM *frame_histo(const IMAGE2D *frame, double min, double max, int nbin);
00051 double histo_threshold(const SPECTRUM *histospec, float frac);
00052 float median_f(const float x[], int n);
00053 double mean_sig_f(const float x[], int n, double *mean, double *sigma);
00054 void minmax(const double x[], int n, double *min, double *max, int *imin, int *imax);
00055 void minmax_f(const float x[], int n, float *min, float *max, int *imin, int *imax);
00056 int locate_sorted(const double x[], int n, double x0);
00057 void invert_indexx(const int idx[], int n);
00058 
00059 int Fit_polynom2(float *x, float *y, int npts, int input_degree, int *output_degree,
00060                  float *coef, float *dy, float *chi2);
00061 
00062 void filter_med_array(float array[], int npts, int radius, float f_array[]);
00063 
00064 #endif /* _LIBSNIFS_H */

Generated on Wed Oct 26 23:59:39 2005 for Snifs by doxygen 1.3.5