20 #ifndef GIWLSOLUTION_H
21 #define GIWLSOLUTION_H
25 #include <cpl_macros.h>
26 #include <cpl_table.h>
29 #include <gigrating.h>
30 #include <giwlresiduals.h>
38 typedef struct GiWlSolution GiWlSolution;
41 GiWlSolution *giraffe_wlsolution_new(
const cxchar *name, cxint orientation,
42 cxint npixels, cxdouble pixelsize,
47 void giraffe_wlsolution_delete(GiWlSolution *
self);
49 const cxchar *giraffe_wlsolution_name(
const GiWlSolution *
self);
50 GiModel *giraffe_wlsolution_model(
const GiWlSolution *
self);
52 void giraffe_wlsolution_reset_residuals(GiWlSolution *
self);
54 cxint giraffe_wlsolution_set_subslits(GiWlSolution *
self, cxbool flag);
55 cxbool giraffe_wlsolution_get_subslits(
const GiWlSolution *
self);
57 cxint giraffe_wlsolution_set_residuals(GiWlSolution *
self,
58 const GiWlResiduals *residuals);
59 GiWlResiduals *giraffe_wlsolution_get_residuals(
const GiWlSolution *
self);
61 cxdouble giraffe_wlsolution_compute_pixel(
const GiWlSolution *
self,
62 cxdouble lambda, cxdouble x,
63 cxdouble y, cxint *status);
65 cxdouble giraffe_wlsolution_compute_residual(
const GiWlSolution *
self,
66 cxdouble x, cxdouble y);
68 GiTable *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.