40 #include "naco_utils.h"
41 #include "naco_wavelength.h"
123 const cpl_image * in,
129 const char * table_name,
138 cpl_ensure(in != NULL, CPL_ERROR_NULL_INPUT, NULL);
139 cpl_ensure(table_name != NULL, CPL_ERROR_NULL_INPUT, NULL);
140 cpl_ensure(phdisprel != NULL, CPL_ERROR_NULL_INPUT, NULL);
142 cpl_ensure(discard_lo <= discard_hi, CPL_ERROR_ILLEGAL_INPUT, NULL);
143 cpl_ensure(discard_le <= discard_ri, CPL_ERROR_ILLEGAL_INPUT, NULL);
145 cpl_ensure(remove_thermal >= 0, CPL_ERROR_ILLEGAL_INPUT, NULL);
146 cpl_ensure(slit_width >= 0, CPL_ERROR_ILLEGAL_INPUT, NULL);
147 cpl_ensure(order >= 1, CPL_ERROR_ILLEGAL_INPUT, NULL);
148 cpl_ensure(output_ascii >= 0, CPL_ERROR_ILLEGAL_INPUT, NULL);
computed_disprel * naco_spectro_compute_disprel(const cpl_image *in, int discard_lo, int discard_hi, int discard_le, int discard_ri, int remove_thermal, const char *table_name, double slit_width, int order, int output_ascii, double *phdisprel)
Compute a 3rd degree dispersion relation.