35 #include "muse_exp_combine_z.h"
52 static const char *muse_exp_combine_help =
53 "Sort reduced pixel tables, one per exposure, by exposure and combine them with applied weights into one final datacube.";
55 static const char *muse_exp_combine_help_esorex =
56 "\n\nInput frames for raw frame tag \"PIXTABLE_REDUCED\":\n"
57 "\n Frame tag Type Req #Fr Description"
58 "\n -------------------- ---- --- --- ------------"
59 "\n PIXTABLE_REDUCED raw Y >=2 Input pixel tables"
60 "\n FILTER_LIST calib . 1 File to be used to create field-of-view images."
61 "\n OUTPUT_WCS calib . 1 WCS to override output cube location / dimensions"
62 "\n\nProduct frames for raw frame tag \"PIXTABLE_REDUCED\":\n"
63 "\n Frame tag Level Description"
64 "\n -------------------- -------- ------------"
65 "\n DATACUBE_FINAL final Output datacube"
66 "\n IMAGE_FOV final Field-of-view images corresponding to the \"filter\" parameter."
67 "\n PIXTABLE_COMBINED intermed Combined pixel table";
78 static cpl_recipeconfig *
79 muse_exp_combine_new_recipeconfig(
void)
81 cpl_recipeconfig *recipeconfig = cpl_recipeconfig_new();
84 tag =
"PIXTABLE_REDUCED";
85 cpl_recipeconfig_set_tag(recipeconfig, tag, 2, -1);
86 cpl_recipeconfig_set_input(recipeconfig, tag,
"FILTER_LIST", -1, 1);
87 cpl_recipeconfig_set_input(recipeconfig, tag,
"OUTPUT_WCS", -1, 1);
88 cpl_recipeconfig_set_output(recipeconfig, tag,
"DATACUBE_FINAL");
89 cpl_recipeconfig_set_output(recipeconfig, tag,
"IMAGE_FOV");
90 cpl_recipeconfig_set_output(recipeconfig, tag,
"PIXTABLE_COMBINED");
106 static cpl_error_code
107 muse_exp_combine_prepare_header(
const char *aFrametag, cpl_propertylist *aHeader)
109 cpl_ensure_code(aFrametag, CPL_ERROR_NULL_INPUT);
110 cpl_ensure_code(aHeader, CPL_ERROR_NULL_INPUT);
111 if (!strcmp(aFrametag,
"DATACUBE_FINAL")) {
114 "[pix] Position of source k in x-direction in combined frame");
117 "[pix] Position of source k in y-direction in combined frame");
120 "[arcsec] FWHM of source k in x-direction in combined frame");
123 "[arcsec] FWHM of source k in y-direction in combined frame");
124 }
else if (!strcmp(aFrametag,
"IMAGE_FOV")) {
125 }
else if (!strcmp(aFrametag,
"PIXTABLE_COMBINED")) {
127 cpl_msg_warning(__func__,
"Frame tag %s is not defined", aFrametag);
128 return CPL_ERROR_ILLEGAL_INPUT;
130 return CPL_ERROR_NONE;
143 static cpl_frame_level
144 muse_exp_combine_get_frame_level(
const char *aFrametag)
147 return CPL_FRAME_LEVEL_NONE;
149 if (!strcmp(aFrametag,
"DATACUBE_FINAL")) {
150 return CPL_FRAME_LEVEL_FINAL;
152 if (!strcmp(aFrametag,
"IMAGE_FOV")) {
153 return CPL_FRAME_LEVEL_FINAL;
155 if (!strcmp(aFrametag,
"PIXTABLE_COMBINED")) {
156 return CPL_FRAME_LEVEL_INTERMEDIATE;
158 return CPL_FRAME_LEVEL_NONE;
172 muse_exp_combine_get_frame_mode(
const char *aFrametag)
177 if (!strcmp(aFrametag,
"DATACUBE_FINAL")) {
180 if (!strcmp(aFrametag,
"IMAGE_FOV")) {
183 if (!strcmp(aFrametag,
"PIXTABLE_COMBINED")) {
201 muse_exp_combine_create(cpl_plugin *aPlugin)
205 if (cpl_plugin_get_type(aPlugin) == CPL_PLUGIN_TYPE_RECIPE) {
206 recipe = (cpl_recipe *)aPlugin;
214 muse_exp_combine_new_recipeconfig(),
215 muse_exp_combine_prepare_header,
216 muse_exp_combine_get_frame_level,
217 muse_exp_combine_get_frame_mode);
222 cpl_msg_set_time_on();
226 recipe->parameters = cpl_parameterlist_new();
231 p = cpl_parameter_new_enum(
"muse.muse_exp_combine.resample",
233 "The resampling technique to use for the final output cube.",
234 "muse.muse_exp_combine",
235 (
const char *)
"drizzle",
237 (
const char *)
"nearest",
238 (
const char *)
"linear",
239 (
const char *)
"quadratic",
240 (
const char *)
"renka",
241 (
const char *)
"drizzle",
242 (
const char *)
"lanczos");
243 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CFG,
"resample");
244 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"resample");
246 cpl_parameterlist_append(recipe->parameters, p);
249 p = cpl_parameter_new_value(
"muse.muse_exp_combine.dx",
251 "Horizontal step size for resampling (in arcsec or pixel). The following defaults are taken when this value is set to 0.0: 0.2'' for WFM, 0.075'' for NFM, 1.0 if data is in pixel units.",
252 "muse.muse_exp_combine",
254 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CFG,
"dx");
255 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"dx");
257 cpl_parameterlist_append(recipe->parameters, p);
260 p = cpl_parameter_new_value(
"muse.muse_exp_combine.dy",
262 "Vertical step size for resampling (in arcsec or pixel). The following defaults are taken when this value is set to 0.0: 0.2'' for WFM, 0.075'' for NFM, 1.0 if data is in pixel units.",
263 "muse.muse_exp_combine",
265 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CFG,
"dy");
266 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"dy");
268 cpl_parameterlist_append(recipe->parameters, p);
271 p = cpl_parameter_new_value(
"muse.muse_exp_combine.dlambda",
273 "Wavelength step size (in Angstrom). Natural instrument sampling is used, if this is 0.0",
274 "muse.muse_exp_combine",
276 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CFG,
"dlambda");
277 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"dlambda");
279 cpl_parameterlist_append(recipe->parameters, p);
282 p = cpl_parameter_new_enum(
"muse.muse_exp_combine.crtype",
284 "Type of statistics used for detection of cosmic rays during final resampling. \"iraf\" uses the variance information, \"mean\" uses standard (mean/stdev) statistics, \"median\" uses median and median deviation statistics.",
285 "muse.muse_exp_combine",
286 (
const char *)
"median",
288 (
const char *)
"iraf",
289 (
const char *)
"mean",
290 (
const char *)
"median");
291 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CFG,
"crtype");
292 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"crtype");
294 cpl_parameterlist_append(recipe->parameters, p);
297 p = cpl_parameter_new_value(
"muse.muse_exp_combine.crsigma",
299 "Sigma rejection factor to use for cosmic ray rejection during final resampling. A zero or negative value switches cosmic ray rejection off.",
300 "muse.muse_exp_combine",
302 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CFG,
"crsigma");
303 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"crsigma");
305 cpl_parameterlist_append(recipe->parameters, p);
308 p = cpl_parameter_new_value(
"muse.muse_exp_combine.rc",
310 "Critical radius for the \"renka\" resampling method.",
311 "muse.muse_exp_combine",
313 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CFG,
"rc");
314 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"rc");
316 cpl_parameterlist_append(recipe->parameters, p);
319 p = cpl_parameter_new_value(
"muse.muse_exp_combine.pixfrac",
321 "Pixel down-scaling factor for the \"drizzle\" resampling method.",
322 "muse.muse_exp_combine",
324 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CFG,
"pixfrac");
325 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"pixfrac");
327 cpl_parameterlist_append(recipe->parameters, p);
330 p = cpl_parameter_new_value(
"muse.muse_exp_combine.ld",
332 "Number of adjacent pixels to take into account during resampling in all three directions (loop distance); this affects all resampling methods except \"nearest\".",
333 "muse.muse_exp_combine",
335 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CFG,
"ld");
336 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"ld");
338 cpl_parameterlist_append(recipe->parameters, p);
341 p = cpl_parameter_new_enum(
"muse.muse_exp_combine.format",
343 "Type of output file format, \"Cube\" is a standard FITS cube with NAXIS=3 and multiple extensions (for data and variance). The extended \"x\" formats include the reconstructed image(s) in FITS image extensions within the same file.",
344 "muse.muse_exp_combine",
345 (
const char *)
"Cube",
347 (
const char *)
"Cube",
348 (
const char *)
"Euro3D",
349 (
const char *)
"xCube",
350 (
const char *)
"xEuro3D");
351 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CFG,
"format");
352 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"format");
354 cpl_parameterlist_append(recipe->parameters, p);
357 p = cpl_parameter_new_enum(
"muse.muse_exp_combine.weight",
359 "Type of weighting scheme to use when combining multiple exposures.",
360 "muse.muse_exp_combine",
361 (
const char *)
"exptime",
363 (
const char *)
"exptime",
364 (
const char *)
"fwhm");
365 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CFG,
"weight");
366 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"weight");
368 cpl_parameterlist_append(recipe->parameters, p);
371 p = cpl_parameter_new_value(
"muse.muse_exp_combine.filter",
373 "The filter name(s) to be used for the output field-of-view image. Each name has to correspond to an EXTNAME in an extension of the FILTER_LIST file. If an unsupported filter name is given, creation of the respective image is omitted. If multiple filter names are given, they have to be comma separated.",
374 "muse.muse_exp_combine",
375 (
const char *)
"white");
376 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CFG,
"filter");
377 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"filter");
379 cpl_parameterlist_append(recipe->parameters, p);
382 p = cpl_parameter_new_value(
"muse.muse_exp_combine.lambdamin",
384 "Cut off the data below this wavelength after loading the pixel table(s).",
385 "muse.muse_exp_combine",
387 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CFG,
"lambdamin");
388 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"lambdamin");
390 cpl_parameterlist_append(recipe->parameters, p);
393 p = cpl_parameter_new_value(
"muse.muse_exp_combine.lambdamax",
395 "Cut off the data above this wavelength after loading the pixel table(s).",
396 "muse.muse_exp_combine",
398 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CFG,
"lambdamax");
399 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"lambdamax");
401 cpl_parameterlist_append(recipe->parameters, p);
404 p = cpl_parameter_new_value(
"muse.muse_exp_combine.save_combined",
406 "If true, save the fully reduced and combined pixel table for the full set of exposures.",
407 "muse.muse_exp_combine",
409 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CFG,
"save_combined");
410 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"save_combined");
412 cpl_parameterlist_append(recipe->parameters, p);
432 cpl_ensure_code(aParams, CPL_ERROR_NULL_INPUT);
433 cpl_ensure_code(aParameters, CPL_ERROR_NULL_INPUT);
436 p = cpl_parameterlist_find(aParameters,
"muse.muse_exp_combine.resample");
437 cpl_ensure_code(p, CPL_ERROR_DATA_NOT_FOUND);
438 aParams->
resample_s = cpl_parameter_get_string(p);
440 (!strcasecmp(aParams->
resample_s,
"nearest")) ? MUSE_EXP_COMBINE_PARAM_RESAMPLE_NEAREST :
441 (!strcasecmp(aParams->
resample_s,
"linear")) ? MUSE_EXP_COMBINE_PARAM_RESAMPLE_LINEAR :
442 (!strcasecmp(aParams->
resample_s,
"quadratic")) ? MUSE_EXP_COMBINE_PARAM_RESAMPLE_QUADRATIC :
443 (!strcasecmp(aParams->
resample_s,
"renka")) ? MUSE_EXP_COMBINE_PARAM_RESAMPLE_RENKA :
444 (!strcasecmp(aParams->
resample_s,
"drizzle")) ? MUSE_EXP_COMBINE_PARAM_RESAMPLE_DRIZZLE :
445 (!strcasecmp(aParams->
resample_s,
"lanczos")) ? MUSE_EXP_COMBINE_PARAM_RESAMPLE_LANCZOS :
446 MUSE_EXP_COMBINE_PARAM_RESAMPLE_INVALID_VALUE;
447 cpl_ensure_code(aParams->
resample != MUSE_EXP_COMBINE_PARAM_RESAMPLE_INVALID_VALUE,
448 CPL_ERROR_ILLEGAL_INPUT);
450 p = cpl_parameterlist_find(aParameters,
"muse.muse_exp_combine.dx");
451 cpl_ensure_code(p, CPL_ERROR_DATA_NOT_FOUND);
452 aParams->
dx = cpl_parameter_get_double(p);
454 p = cpl_parameterlist_find(aParameters,
"muse.muse_exp_combine.dy");
455 cpl_ensure_code(p, CPL_ERROR_DATA_NOT_FOUND);
456 aParams->
dy = cpl_parameter_get_double(p);
458 p = cpl_parameterlist_find(aParameters,
"muse.muse_exp_combine.dlambda");
459 cpl_ensure_code(p, CPL_ERROR_DATA_NOT_FOUND);
460 aParams->
dlambda = cpl_parameter_get_double(p);
462 p = cpl_parameterlist_find(aParameters,
"muse.muse_exp_combine.crtype");
463 cpl_ensure_code(p, CPL_ERROR_DATA_NOT_FOUND);
464 aParams->
crtype_s = cpl_parameter_get_string(p);
466 (!strcasecmp(aParams->
crtype_s,
"iraf")) ? MUSE_EXP_COMBINE_PARAM_CRTYPE_IRAF :
467 (!strcasecmp(aParams->
crtype_s,
"mean")) ? MUSE_EXP_COMBINE_PARAM_CRTYPE_MEAN :
468 (!strcasecmp(aParams->
crtype_s,
"median")) ? MUSE_EXP_COMBINE_PARAM_CRTYPE_MEDIAN :
469 MUSE_EXP_COMBINE_PARAM_CRTYPE_INVALID_VALUE;
470 cpl_ensure_code(aParams->
crtype != MUSE_EXP_COMBINE_PARAM_CRTYPE_INVALID_VALUE,
471 CPL_ERROR_ILLEGAL_INPUT);
473 p = cpl_parameterlist_find(aParameters,
"muse.muse_exp_combine.crsigma");
474 cpl_ensure_code(p, CPL_ERROR_DATA_NOT_FOUND);
475 aParams->
crsigma = cpl_parameter_get_double(p);
477 p = cpl_parameterlist_find(aParameters,
"muse.muse_exp_combine.rc");
478 cpl_ensure_code(p, CPL_ERROR_DATA_NOT_FOUND);
479 aParams->
rc = cpl_parameter_get_double(p);
481 p = cpl_parameterlist_find(aParameters,
"muse.muse_exp_combine.pixfrac");
482 cpl_ensure_code(p, CPL_ERROR_DATA_NOT_FOUND);
483 aParams->
pixfrac = cpl_parameter_get_double(p);
485 p = cpl_parameterlist_find(aParameters,
"muse.muse_exp_combine.ld");
486 cpl_ensure_code(p, CPL_ERROR_DATA_NOT_FOUND);
487 aParams->
ld = cpl_parameter_get_int(p);
489 p = cpl_parameterlist_find(aParameters,
"muse.muse_exp_combine.format");
490 cpl_ensure_code(p, CPL_ERROR_DATA_NOT_FOUND);
491 aParams->
format_s = cpl_parameter_get_string(p);
493 (!strcasecmp(aParams->
format_s,
"Cube")) ? MUSE_EXP_COMBINE_PARAM_FORMAT_CUBE :
494 (!strcasecmp(aParams->
format_s,
"Euro3D")) ? MUSE_EXP_COMBINE_PARAM_FORMAT_EURO3D :
495 (!strcasecmp(aParams->
format_s,
"xCube")) ? MUSE_EXP_COMBINE_PARAM_FORMAT_XCUBE :
496 (!strcasecmp(aParams->
format_s,
"xEuro3D")) ? MUSE_EXP_COMBINE_PARAM_FORMAT_XEURO3D :
497 MUSE_EXP_COMBINE_PARAM_FORMAT_INVALID_VALUE;
498 cpl_ensure_code(aParams->
format != MUSE_EXP_COMBINE_PARAM_FORMAT_INVALID_VALUE,
499 CPL_ERROR_ILLEGAL_INPUT);
501 p = cpl_parameterlist_find(aParameters,
"muse.muse_exp_combine.weight");
502 cpl_ensure_code(p, CPL_ERROR_DATA_NOT_FOUND);
503 aParams->
weight_s = cpl_parameter_get_string(p);
505 (!strcasecmp(aParams->
weight_s,
"exptime")) ? MUSE_EXP_COMBINE_PARAM_WEIGHT_EXPTIME :
506 (!strcasecmp(aParams->
weight_s,
"fwhm")) ? MUSE_EXP_COMBINE_PARAM_WEIGHT_FWHM :
507 MUSE_EXP_COMBINE_PARAM_WEIGHT_INVALID_VALUE;
508 cpl_ensure_code(aParams->
weight != MUSE_EXP_COMBINE_PARAM_WEIGHT_INVALID_VALUE,
509 CPL_ERROR_ILLEGAL_INPUT);
511 p = cpl_parameterlist_find(aParameters,
"muse.muse_exp_combine.filter");
512 cpl_ensure_code(p, CPL_ERROR_DATA_NOT_FOUND);
513 aParams->
filter = cpl_parameter_get_string(p);
515 p = cpl_parameterlist_find(aParameters,
"muse.muse_exp_combine.lambdamin");
516 cpl_ensure_code(p, CPL_ERROR_DATA_NOT_FOUND);
517 aParams->
lambdamin = cpl_parameter_get_double(p);
519 p = cpl_parameterlist_find(aParameters,
"muse.muse_exp_combine.lambdamax");
520 cpl_ensure_code(p, CPL_ERROR_DATA_NOT_FOUND);
521 aParams->
lambdamax = cpl_parameter_get_double(p);
523 p = cpl_parameterlist_find(aParameters,
"muse.muse_exp_combine.save_combined");
524 cpl_ensure_code(p, CPL_ERROR_DATA_NOT_FOUND);
539 muse_exp_combine_exec(cpl_plugin *aPlugin)
541 if (cpl_plugin_get_type(aPlugin) != CPL_PLUGIN_TYPE_RECIPE) {
544 cpl_recipe *recipe = (cpl_recipe *)aPlugin;
545 cpl_msg_set_threadid_on();
547 cpl_frameset *usedframes = cpl_frameset_new(),
548 *outframes = cpl_frameset_new();
550 muse_exp_combine_params_fill(¶ms, recipe->parameters);
552 cpl_errorstate prestate = cpl_errorstate_get();
556 int rc = muse_exp_combine_compute(proc, ¶ms);
557 cpl_frameset_join(usedframes, proc->
usedFrames);
561 if (!cpl_errorstate_is_equal(prestate)) {
565 cpl_msg_set_level(CPL_MSG_INFO);
575 cpl_frameset_join(recipe->frames, usedframes);
576 cpl_frameset_join(recipe->frames, outframes);
577 cpl_frameset_delete(usedframes);
578 cpl_frameset_delete(outframes);
591 muse_exp_combine_destroy(cpl_plugin *aPlugin)
595 if (cpl_plugin_get_type(aPlugin) == CPL_PLUGIN_TYPE_RECIPE) {
596 recipe = (cpl_recipe *)aPlugin;
602 cpl_parameterlist_delete(recipe->parameters);
619 cpl_plugin_get_info(cpl_pluginlist *aList)
621 cpl_recipe *recipe = cpl_calloc(1,
sizeof *recipe);
622 cpl_plugin *plugin = &recipe->interface;
626 helptext = cpl_sprintf(
"%s%s", muse_exp_combine_help,
627 muse_exp_combine_help_esorex);
629 helptext = cpl_sprintf(
"%s", muse_exp_combine_help);
633 cpl_plugin_init(plugin, CPL_PLUGIN_API, MUSE_BINARY_VERSION,
634 CPL_PLUGIN_TYPE_RECIPE,
636 "Combine several exposures into one datacube.",
641 muse_exp_combine_create,
642 muse_exp_combine_exec,
643 muse_exp_combine_destroy);
644 cpl_pluginlist_append(aList, plugin);
void muse_processing_delete(muse_processing *aProcessing)
Free the muse_processing structure.
int ld
Number of adjacent pixels to take into account during resampling in all three directions (loop distan...
const char * crtype_s
Type of statistics used for detection of cosmic rays during final resampling. "iraf" uses the varianc...
const char * resample_s
The resampling technique to use for the final output cube. (as string)
muse_cplframework_type muse_cplframework(void)
Return the CPL framework the recipe is run under.
int save_combined
If true, save the fully reduced and combined pixel table for the full set of exposures.
double crsigma
Sigma rejection factor to use for cosmic ray rejection during final resampling. A zero or negative va...
const char * format_s
Type of output file format, "Cube" is a standard FITS cube with NAXIS=3 and multiple extensions (for ...
int format
Type of output file format, "Cube" is a standard FITS cube with NAXIS=3 and multiple extensions (for ...
double dy
Vertical step size for resampling (in arcsec or pixel). The following defaults are taken when this va...
double pixfrac
Pixel down-scaling factor for the "drizzle" resampling method.
const char * muse_get_license(void)
Get the pipeline copyright and license.
Structure to hold the parameters of the muse_exp_combine recipe.
muse_processing * muse_processing_new(const char *aRecipeName, cpl_recipe *aRecipe)
Create a new processing structure.
const char * weight_s
Type of weighting scheme to use when combining multiple exposures. (as string)
int crtype
Type of statistics used for detection of cosmic rays during final resampling. "iraf" uses the varianc...
double lambdamax
Cut off the data above this wavelength after loading the pixel table(s).
int weight
Type of weighting scheme to use when combining multiple exposures.
const char * filter
The filter name(s) to be used for the output field-of-view image. Each name has to correspond to an E...
cpl_frameset * outputFrames
void muse_cplerrorstate_dump_some(unsigned aCurrent, unsigned aFirst, unsigned aLast)
Dump some CPL errors.
void muse_processinginfo_delete(cpl_recipe *)
Clear all information from the processing info and from the recipe config.
int resample
The resampling technique to use for the final output cube.
double lambdamin
Cut off the data below this wavelength after loading the pixel table(s).
double dlambda
Wavelength step size (in Angstrom). Natural instrument sampling is used, if this is 0...
double dx
Horizontal step size for resampling (in arcsec or pixel). The following defaults are taken when this ...
cpl_error_code muse_cplframeset_erase_duplicate(cpl_frameset *aFrames)
Erase all duplicate frames from a frameset.
cpl_error_code muse_cplframeset_erase_all(cpl_frameset *aFrames)
Erase all frames in a frameset.
double rc
Critical radius for the "renka" resampling method.
void muse_processinginfo_register(cpl_recipe *, cpl_recipeconfig *, muse_processing_prepare_header_func *, muse_processing_get_frame_level_func *, muse_processing_get_frame_mode_func *)
Register extended functionalities for MUSE recipes.
cpl_frameset * usedFrames
cpl_error_code muse_processing_prepare_property(cpl_propertylist *, const char *, cpl_type, const char *)
Prepare and check the specified property.