30 #include "muse_scipost_apply_astrometry_z.h" 50 UNUSED_ARGUMENT(aParams);
53 MUSE_TAG_ASTROMETRY_WCS);
58 cpl_error_code rc = CPL_ERROR_NONE;
59 cpl_size iframe, nframes = cpl_frameset_get_size(inframes);
60 for (iframe = 0; iframe < nframes; iframe++) {
61 cpl_frame *frame = cpl_frameset_get_position(inframes, iframe);
62 const char *fn = cpl_frame_get_filename(frame);
66 if (pixtable == NULL) {
67 cpl_msg_error(__func__,
"NULL pixel table for %s", fn);
68 rc = CPL_ERROR_NULL_INPUT;
72 cpl_propertylist_erase_regexp(pixtable->
header,
"ESO QC ", 0);
74 if (rc != CPL_ERROR_NONE) {
75 cpl_msg_error(__func__,
"while muse_wcs_project_tan(%s)",
76 cpl_frame_get_filename(frame));
81 MUSE_TAG_PIXTABLE_REDUCED,
85 cpl_frameset_delete(inframes);
86 cpl_propertylist_delete(wcs);
Structure to hold the parameters of the muse_scipost_apply_astrometry recipe.
double lambdamin
Cut off the data below this wavelength after loading the pixel table(s).
cpl_error_code muse_wcs_project_tan(muse_pixtable *aPixtable, const cpl_propertylist *aWCS)
Carry out a gnomonic projection of a pixel table into native spherical coordinates.
Structure definition of MUSE pixel table.
muse_pixtable * muse_pixtable_load_restricted_wavelength(const char *aFilename, double aLambdaMin, double aLambdaMax)
Load a pixel table from file and cut down the wavelength range.
double lambdamax
Cut off the data above this wavelength after loading the pixel table(s).
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.
void muse_pixtable_delete(muse_pixtable *aPixtable)
Deallocate memory associated to a pixel table object.
cpl_propertylist * muse_processing_load_header(muse_processing *aProcessing, const char *aTag)
load a header according to its tag
cpl_propertylist * header
The FITS header.
cpl_frameset * muse_frameset_find_tags(const cpl_frameset *aFrames, const cpl_array *aTags, unsigned char aIFU, cpl_boolean aInvert)
return frameset containing data from an IFU/channel with the given tag(s)