30 #include "muse_scipost_combine_pixtables_z.h"
52 cpl_msg_error(__func__,
"no science exposures found in input");
55 int nexposures = cpl_table_get_nrow(exposures);
61 for (i = 0; i < nexposures; i++) {
62 cpl_table *thisexp = cpl_table_extract(exposures, i, 1);
66 cpl_table_delete(thisexp);
68 cpl_propertylist_erase_regexp(pixtables[i]->header,
"ESO QC ", 0);
70 cpl_table_delete(exposures);
77 if (rc != CPL_ERROR_NONE) {
78 cpl_msg_error(__func__,
"weighting the pixel tables didn't work: %s",
79 cpl_error_get_message());
85 cpl_msg_error(__func__,
"combining the pixel tables didn't work: %s",
86 cpl_error_get_message());
90 bigpixtable = pixtables[0];
95 MUSE_TAG_PIXTABLE_COMBINED,
100 for (i = 0; i < nexposures; i++) {
Structure to hold the parameters of the muse_scipost_combine_pixtables recipe.
muse_xcombine_types muse_postproc_get_weight_type(const char *aWeightString)
Select correct weighting type for weight string.
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. "exptime" just uses the exposure t...
Structure definition of MUSE pixel table.
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.
muse_xcombine_types
Xposure combination types.