25#include <cpl_macros.h>
30#include <giwlresiduals.h>
38typedef struct GiWlSolution GiWlSolution;
41GiWlSolution *giraffe_wlsolution_new(
const cxchar *name, cxint orientation,
42 cxint npixels, cxdouble pixelsize,
47void giraffe_wlsolution_delete(GiWlSolution *self);
49const cxchar *giraffe_wlsolution_name(
const GiWlSolution *self);
50GiModel *giraffe_wlsolution_model(
const GiWlSolution *self);
52void giraffe_wlsolution_reset_residuals(GiWlSolution *self);
54cxint giraffe_wlsolution_set_subslits(GiWlSolution *self, cxbool flag);
55cxbool giraffe_wlsolution_get_subslits(
const GiWlSolution *self);
57cxint giraffe_wlsolution_set_residuals(GiWlSolution *self,
58 const GiWlResiduals *residuals);
59GiWlResiduals *giraffe_wlsolution_get_residuals(
const GiWlSolution *self);
61cxdouble giraffe_wlsolution_compute_pixel(
const GiWlSolution *self,
62 cxdouble lambda, cxdouble x,
63 cxdouble y, cxint *status);
65cxdouble giraffe_wlsolution_compute_residual(
const GiWlSolution *self,
66 cxdouble x, cxdouble y);
68GiTable *giraffe_wlsolution_create_table(
const GiWlSolution *solution);
GiWlSolution * giraffe_wlsolution_create(GiTable *solution, GiImage *spectra, GiGrating *grating)
Create a new wavelength solution from a wavelength solution table.
GiWlSolution * giraffe_wlsolution_clone(const GiWlSolution *other)
Create a new wavelength solution from another wavelength solution.
Structure to handle Grating Information.