31 #include "muse_scipost_correct_rv_z.h" 55 cpl_error_code rc = CPL_ERROR_NONE;
56 cpl_size iframe, nframes = cpl_frameset_get_size(inframes);
57 for (iframe = 0; iframe < nframes; iframe++) {
58 cpl_frame *frame = cpl_frameset_get_position(inframes, iframe);
59 const char *fn = cpl_frame_get_filename(frame);
64 cpl_msg_error(__func__,
"No pixel table loaded for \"%s\"", fn);
65 rc = CPL_ERROR_NULL_INPUT;
71 cpl_propertylist_erase_regexp(pixtable->
header,
"ESO QC ", 0);
73 if (rc != CPL_ERROR_NONE) {
74 cpl_msg_error(__func__,
"Failure while correcting radial-velocities for " 80 MUSE_TAG_PIXTABLE_REDUCED,
84 cpl_frameset_delete(inframes);
const char * rvcorr_s
Correct the radial velocity of the telescope with reference to either the barycenter of the Solar Sys...
cpl_error_code muse_rvcorrect(muse_pixtable *aPixtable, muse_rvcorrect_type aType)
Correct the wavelengths of all pixels of a given pixel table for radial velocity shift.
Structure to hold the parameters of the muse_scipost_correct_rv recipe.
double lambdamin
Cut off the data below this wavelength after loading the pixel table(s).
muse_rvcorrect_type muse_rvcorrect_select_type(const char *aTypeString)
Select type of radial velocity correction to be done from type string.
double lambdamax
Cut off the data above this wavelength after loading the pixel table(s).
Structure definition of MUSE pixel table.
void muse_processing_append_used(muse_processing *aProcessing, cpl_frame *aFrame, cpl_frame_group aGroup, int aDuplicate)
Add a frame to the set of used frames.
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.
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 * 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)