uves_extract.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_EXTRACT_H
00028 #define UVES_EXTRACT_H
00029
00030 #include <uves_utils_polynomial.h>
00031 #include <uves_chip.h>
00032
00033 #include <cpl.h>
00034
00035 #include <stdbool.h>
00036
00037 typedef enum {EXTRACT_AVERAGE,
00038 EXTRACT_LINEAR,
00039 EXTRACT_2D,
00040 EXTRACT_ARCLAMP,
00041 EXTRACT_WEIGHTED,
00042 EXTRACT_OPTIMAL} extract_method;
00043
00044
00045 cpl_parameterlist *uves_extract_define_parameters(void);
00046
00047 extract_method
00048 uves_get_extract_method(const cpl_parameterlist *parameters,
00049 const char *context, const char *subcontext);
00050
00051 cpl_image *
00052 uves_extract(cpl_image *image,
00053 cpl_image *image_noise,
00054 const uves_propertylist *image_header,
00055 const cpl_table *ordertable,
00056 const polynomial *order_locations_raw,
00057 double slit_length,
00058 double offset,
00059 const cpl_parameterlist *parameters,
00060 const char *context,
00061 const char *mode,
00062 bool extract_partial,
00063 bool DEBUG,
00064 enum uves_chip chip,
00065 uves_propertylist **header,
00066 cpl_image **spectrum_noise,
00067 cpl_image **sky_spectrum,
00068 cpl_image **sky_spectrum_noise,
00069 cpl_table **cosmic_mask,
00070 cpl_image **cosmic_image,
00071 cpl_table **profile_table,
00072 cpl_image **weights,
00073 cpl_table **info_tbl,
00074 cpl_table **order_trace);
00075
00076 #endif