00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057 #ifndef UVES_REDUCE_H
00058 #define UVES_REDUCE_H
00059
00060 #include <uves_utils_polynomial.h>
00061 #include <uves_chip.h>
00062
00063 #include <cpl.h>
00064
00065 #include <stdbool.h>
00066
00067 cpl_parameterlist *uves_reduce_define_parameters(void);
00068
00069 cpl_error_code uves_reduce(const cpl_image *raw_image,
00070 const uves_propertylist *raw_header,
00071 const uves_propertylist *rotated_header,
00072 const cpl_image *master_bias,
00073 const cpl_image *master_dark,
00074 const uves_propertylist *mdark_header,
00075 const cpl_image *master_flat,
00076 const uves_propertylist *mflat_header,
00077 const cpl_table *ordertable,
00078 const polynomial *order_locations,
00079 const cpl_table *linetable[3],
00080 const uves_propertylist *linetable_header[3],
00081 const polynomial *dispersion_relation[3],
00082 enum uves_chip chip,
00083
00084 bool DEBUG,
00085
00086
00087
00088
00089 const cpl_parameterlist *parameters,
00090 const char *context,
00091
00092 cpl_image **x, uves_propertylist **x_header,
00093 cpl_image **fx,
00094 cpl_table **cosmic_mask,
00095 cpl_image **background,
00096 cpl_image **flatfielded_variance,
00097 uves_propertylist **flatfielded_variance_header,
00098 cpl_image **resampled_spectrum,
00099 cpl_image **resampled_mf,
00100 cpl_image **merged_sky,
00101 cpl_image **rebinned_spectrum,
00102 cpl_image **rebinned_noise,
00103 uves_propertylist **rebinned_header,
00104 cpl_image **merged_spectrum,
00105 cpl_image **merged_noise,
00106 uves_propertylist **merged_header,
00107 cpl_image **reduced_rebinned_spectrum,
00108 cpl_image **reduced_rebinned_noise,
00109 cpl_image **reduced_spectrum ,
00110 cpl_image **reduced_noise,
00111 cpl_table **info_tbl,
00112 double *extraction_slit,
00113 cpl_table **order_trace);
00114
00115 #endif