21#ifndef ERIS_IFU_RESAMPLE_H
22#define ERIS_IFU_RESAMPLE_H
33#include <eris_ifu_jitter_static.h>
40#define PRODCATG_WHITELIGHT "ANCILLARY.IMAGE.WHITELIGHT"
41#define PRODCATG_EXPOSUREMAP "ANCILLARY.EXPMAP"
42#define RENKA_CRITICAL_RADIUS 1.25
43#define LANCZOS_KERNEL_SIZE 2
45#define DRIZZLE_DOWN_SCALING_FACTOR_X 0.8
46#define DRIZZLE_DOWN_SCALING_FACTOR_Y 0.8
47#define DRIZZLE_DOWN_SCALING_FACTOR_Z 0.8
54#define LOOP_DISTANCE 3
56#define EXTNAME_DATA "DATA"
57#define EXTNAME_BPM "BPM"
58#define EXTNAME_ERROR "ERROR"
59#define EXTNAME_DATA_COMMENT "This extension contains data values"
60#define EXTNAME_BPM_COMMENT "This extension contains bad pixel values"
61#define EXTNAME_ERROR_COMMENT "This extension contains data errors"
69 cpl_frameset* frameset,
70 const cpl_parameterlist * parlist,
const char* recipe_name,
71 const char* pipefile_prefix);
74 const cpl_parameterlist * parlist,
76 const char *filenameSpec,
80 const char* recipe_name,
81 const char* pipefile_prefix);
87 const cpl_parameterlist *parlist,
88 cpl_frameset *frameset,
89 cpl_boolean gen_phase3);
92 const cpl_parameterlist*,
const char*,
93 cpl_boolean apply_flat, cpl_boolean is_pupil);
cpl_error_code eris_ifu_combine(cubeType obj_type, cpl_frameset *frameset, const cpl_parameterlist *parlist, const char *recipe_name, const char *pipefile_prefix)
Resample and combine multiple IFU cubes into a single cube.
cpl_error_code eris_ifu_combine_pbp(cpl_frameset *frameset, const cpl_parameterlist *parlist, const char *proCatg, const char *filenameSpec, float *offsetx, float *offsety, const char *offunit, const char *recipe_name, const char *pipefile_prefix)
Resample and combine cubes plane-by-plane (2D spatial resampling per wavelength)
cpl_error_code eris_ifu_cube_collapse_mean_and_save(const char *, cpl_frameset *, const cpl_parameterlist *, const char *, cpl_boolean apply_flat, cpl_boolean is_pupil)
-------------------------------------------------------------------------—/
cpl_error_code eris_ifu_resample_save_cube(hdrl_resample_result *aCube, const char *procatg, const char *recipe, const char *filename, const cpl_parameterlist *parlist, cpl_frameset *frameset, cpl_boolean gen_phase3)
Save resampled cube to FITS file in DEQ (Data-Error-Quality) format.
cpl_error_code eris_ifu_resample_trim_edge(hdrl_image *himg, int edge_trim)
Trim edge pixels from hdrl_image by rejecting them.