00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef VISIR_SPECTRO_H
00021 #define VISIR_SPECTRO_H
00022
00023
00024
00025
00026
00027 #include "visir_spc_optmod.h"
00028 #include "visir_inputs.h"
00029 #include "irplib_framelist.h"
00030 #include <cpl.h>
00031
00032
00033 #define VISIR_AQU_APPROX_WLEN8 140
00034 #define VISIR_AQU_APPROX_WLEN13 840
00035
00036 typedef struct {
00037 const char * recipename;
00038 const cpl_parameterlist * parlist;
00039 cpl_boolean do_fixcombi;
00040
00041
00042 int plot;
00043 double phi;
00044 double ksi;
00045 double eps;
00046 double delta;
00047
00048
00049 int orderoffset;
00050
00051
00052 double phot_emis_tol;
00053 } visir_spc_config;
00054
00055 visir_spc_resol visir_spc_get_res_wl(const irplib_framelist *, double *,
00056 double *, double *, double *, int);
00057
00058 cpl_image * visir_spc_flip(const cpl_image *, double,
00059 visir_spc_resol, visir_data_type);
00060
00061 cpl_bivector * visir_bivector_load_fits(const char *, const char *,
00062 const char *, int);
00063 cpl_error_code visir_vector_resample(cpl_vector *, const cpl_vector *,
00064 const cpl_bivector *);
00065 cpl_error_code visir_spc_extract_wcal(const cpl_image *, const cpl_image *,
00066 double, double, double, double,
00067 visir_spc_resol, int,
00068 const char*, const char *,
00069 cpl_table **,
00070 cpl_image **,
00071 cpl_propertylist *, int, int, int);
00072
00073 cpl_error_code visir_spc_wavecal(const cpl_image *,
00074 cpl_propertylist *,
00075 double, double, double,
00076 double, visir_spc_resol, int, const char *,
00077 const char *,
00078 cpl_table **, int, int);
00079
00080 cpl_error_code visir_spectro_qc(cpl_propertylist *, cpl_propertylist *,
00081 cpl_boolean, const irplib_framelist *,
00082 const char *, const char *);
00083
00084 cpl_error_code visir_spc_echelle_limit(int *, int *, double, int, int, int, int);
00085 cpl_image * visir_spc_column_extract(const cpl_image *, int, int, int);
00086
00087
00088 cpl_error_code
00089 visir_spc_extract_order(cpl_image ** order,
00090 cpl_image ** comorder,
00091 const cpl_image * combined,
00092 const cpl_image * imhcycle,
00093 const double wlen,
00094 const visir_spc_config * pconfig,
00095 const cpl_boolean do_ech,
00096 int);
00097 #endif