uves_reduce.h
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 #ifndef UVES_REDUCE_H
00028 #define UVES_REDUCE_H
00029 #include <uves_cpl_size.h>
00030 #include <uves_utils_polynomial.h>
00031 #include <uves_chip.h>
00032
00033 #include <cpl.h>
00034
00035 #include <stdbool.h>
00036
00037 cpl_parameterlist *uves_reduce_define_parameters(void);
00038
00039 cpl_error_code uves_reduce(const cpl_image *raw_image,
00040 const uves_propertylist *raw_header,
00041 const uves_propertylist *rotated_header,
00042 const cpl_image *master_bias,
00043 const cpl_image *master_dark,
00044 const uves_propertylist *mdark_header,
00045 const cpl_image *master_flat,
00046 const uves_propertylist *mflat_header,
00047 const cpl_table *ordertable,
00048 const polynomial *order_locations,
00049 const cpl_table *linetable[3],
00050 const uves_propertylist *linetable_header[3],
00051 const polynomial *dispersion_relation[3],
00052 enum uves_chip chip,
00053
00054 bool DEBUG,
00055
00056
00057
00058
00059 const cpl_parameterlist *parameters,
00060 const char *rec_id,
00061 const char *mode,
00062
00063 cpl_image **x, uves_propertylist **x_header,
00064 cpl_image **fx,
00065 cpl_table **cosmic_mask,
00066 cpl_image **wave_map,
00067 cpl_image **background,
00068 cpl_image **flatfielded_variance,
00069 uves_propertylist **flatfielded_variance_header,
00070 cpl_image **resampled_spectrum,
00071 cpl_image **resampled_mf,
00072 cpl_image **merged_sky,
00073 cpl_image **rebinned_spectrum,
00074 cpl_image **rebinned_noise,
00075 uves_propertylist **rebinned_header,
00076 cpl_image **merged_spectrum,
00077 cpl_image **merged_noise,
00078 uves_propertylist **merged_header,
00079 cpl_image **reduced_rebinned_spectrum,
00080 cpl_image **reduced_rebinned_noise,
00081 cpl_image **reduced_spectrum ,
00082 cpl_image **reduced_noise,
00083 cpl_table **info_tbl,
00084 double *extraction_slit,
00085 cpl_table **order_trace);
00086
00087 #endif