30 #include "muse_scipost_combine_pixtables_z.h"
48 if (aParams->
weight == MUSE_SCIPOST_COMBINE_PIXTABLES_PARAM_WEIGHT_FWHM) {
50 }
else if (aParams->
weight != MUSE_SCIPOST_COMBINE_PIXTABLES_PARAM_WEIGHT_EXPTIME) {
52 cpl_msg_error(__func__,
"unknown weighting method \"%s\"",
60 cpl_msg_error(__func__,
"no science exposures found in input");
63 int nexposures = cpl_table_get_nrow(exposures);
69 for (i = 0; i < nexposures; i++) {
70 cpl_table *thisexp = cpl_table_extract(exposures, i, 1);
74 cpl_table_delete(thisexp);
76 cpl_propertylist_erase_regexp(pixtables[i]->header,
"ESO QC ", 0);
78 cpl_table_delete(exposures);
85 if (rc != CPL_ERROR_NONE) {
86 cpl_msg_error(__func__,
"weighting the pixel tables didn't work: %s",
87 cpl_error_get_message());
93 cpl_msg_error(__func__,
"combining the pixel tables didn't work: %s",
94 cpl_error_get_message());
98 bigpixtable = pixtables[0];
103 MUSE_TAG_PIXTABLE_COMBINED,
108 for (i = 0; i < nexposures; i++) {
Structure to hold the parameters of the muse_scipost_combine_pixtables recipe.
cpl_error_code muse_xcombine_weights(muse_pixtable **aPixtables, muse_xcombine_types aWeighting)
compute the weights for combination of two or more exposures
double lambdamin
Cut off the data below this wavelength after loading the pixel table(s).
const char * weight_s
Type of weighting scheme to use when combining multiple exposures. (as string)
Structure definition of MUSE pixel table.
int weight
Type of weighting scheme to use when combining multiple exposures.
double lambdamax
Cut off the data above this wavelength after loading the pixel table(s).
muse_pixtable * muse_pixtable_load_merge_channels(cpl_table *aExposureList, double aLambdaMin, double aLambdaMax)
Load and merge the pixel tables of the 24 MUSE sub-fields.
muse_pixtable * muse_xcombine_tables(muse_pixtable **aPixtables)
combine the pixel tables of several exposures into one
cpl_error_code muse_processing_save_table(muse_processing *aProcessing, int aIFU, void *aTable, cpl_propertylist *aHeader, const char *aTag, muse_table_type aType)
Save a computed table to disk.
cpl_table * muse_processing_sort_exposures(muse_processing *aProcessing)
Sort input frames (containing lists of pixel table filenames) into different exposures.
void muse_pixtable_delete(muse_pixtable *aPixtable)
Deallocate memory associated to a pixel table object.