35 cpl_table *mos_hough_table(cpl_table *,
const char *,
const char *);
38 cpl_table *,
double,
double,
double,
double,
39 int,
int) CPL_ATTR_DEPRECATED;
47 void mos_set_multiplex(
int);
49 double,
double,
double);
51 cpl_polynomial *,
double,
int);
52 double mos_eval_dds(cpl_polynomial *,
double,
double,
double,
double);
59 double dispersion,
float level,
60 int sradius,
int order,
61 double reject,
double refwave,
62 double *wavestart,
double *waveend,
63 int *nlines,
double *error,
65 cpl_image *calibration,
69 cpl_table *detected_lines);
74 int mode,
int degree);
79 cpl_table *mos_identify_slits_fast(cpl_table *, cpl_table *, cpl_table *);
81 double,
double,
double);
85 double,
double,
double,
double,
int,
89 double dispersion,
float level,
90 int sradius,
int order,
91 double reject,
double refwave,
92 double *wavestart,
double *waveend,
93 int *nlines,
double *error,
95 cpl_image *calibration,
98 cpl_table *detected_lines);
100 cpl_table *, cpl_table *,
double);
105 double, cpl_table *, cpl_vector *,
int,
106 int, cpl_image *,
int);
108 cpl_table *, cpl_vector *,
int,
int,
111 double, cpl_table *,
int);
112 cpl_image *
mos_map_pixel(cpl_table *,
double,
double,
double,
double,
int);
115 cpl_table *,
double,
double,
double,
double);
116 cpl_image *
mos_map_spectrum(cpl_image *, cpl_image *, cpl_image *, cpl_table *,
117 cpl_table *,
double,
double,
double,
double,
int);
119 double,
double,
double);
120 cpl_table *
mos_sky_map(cpl_image *, cpl_image *,
double, cpl_image *);
127 cpl_error_code mos_clean_bad_pixels(cpl_image *, cpl_table *,
int);
131 cpl_image *
mos_spatial_map(cpl_image *, cpl_table *, cpl_table *,
double,
132 double,
double,
double);
134 cpl_image **
mos_extract_objects(cpl_image *, cpl_image *science_var, cpl_image *, cpl_table *,
135 int,
double,
double,
int);
137 double *,
double *,
double *,
double *,
int *);
139 double dispersion,
int saturation,
143 cpl_polynomial *mos_montecarlo_polyfit(cpl_table *points, cpl_table *evaluate,
144 int samples,
int order);
147 double gain,
double bias);
153 cpl_table *mos_load_overscans_fors(const cpl_propertylist *) CPL_ATTR_DEPRECATED;
171 int *fors_get_nobjs_perslit(cpl_table *);
172 int mos_rebin_signal(cpl_image **,
int);
173 int mos_rebin_error(cpl_image **,
int);
175 double, cpl_table *,
double, cpl_table *,
177 int map_table(cpl_image *,
double,
double, cpl_table *,
178 const
char *, const
char *);
180 double klow,
double khigh,
int kiter,
183 cpl_table *ext_table,
double startwave,
184 double dispersion,
double gain,
185 double exptime,
double airmass);
188 cpl_table *ext_table,
double startwave,
189 double dispersion,
double gain,
190 double exptime,
double airmass);
192 cpl_image *u_image, cpl_image *u_error,
193 double startwave,
double dispersion,
194 double band, cpl_table *pol_sta,
195 double ra,
double dec,
char *filter,
197 double *p_offset,
double *p_error,
198 double *a_offset,
double *a_error);
203 int,
double,
double *,
double *);
206 double lambda,
double startwave,
207 double dispersion,
int dx,
double gain,
208 double *o_flux,
double *o_err);
210 char *label,
double *mvalue);
213 int fors_mos_is_lss_like(cpl_table *maskslits,
int nslits_out_det);
cpl_image * mos_spatial_calibration(cpl_image *, cpl_table *, cpl_table *, double, double, double, double, int, cpl_image *)
Spatial remapping of CCD spectra eliminating the spectral curvature.
cpl_table * mos_photometric_calibration(cpl_image *, double, double, double, double, cpl_table *, double, cpl_table *, int)
Produce instrument response curve, with some ancillary information.
cpl_table * mos_build_disp_coeff(cpl_table *, cpl_table *)
Build the IDS coefficients table from a global distortions table.
cpl_image * mos_map_pixel(cpl_table *, double, double, double, double, int)
Create a pixel map from an IDS coefficients table.
double mos_integrate_signal(cpl_image *, cpl_image *, int, int, double, double)
Integrate signal from wavelength and spatial interval.
cpl_bivector * mos_identify_peaks(cpl_vector *, cpl_vector *, double, double, double)
Identify peak candidates.
cpl_vector * mos_refine_peaks(const float *, int, cpl_vector *, int)
Improve (when possible) accuracy of peaks candidates positions.
cpl_table * mos_sky_map(cpl_image *, cpl_image *, double, cpl_image *)
Create a CCD median sky map.
cpl_error_code mos_interpolate_wavecalib(cpl_table *, cpl_image *, int, int)
Interpolate LSS wavelength calibration.
cpl_image * mos_wavelength_calibration_raw(const cpl_image *image, cpl_vector *lines, double dispersion, float level, int sradius, int order, double reject, double refwave, double *wavestart, double *waveend, int *nlines, double *error, cpl_table *idscoeff, cpl_image *calibration, cpl_image *residuals, cpl_table *restable, cpl_mask *refmask, cpl_table *detected_lines)
Derive wavelength calibration from a raw arc lamp or sky exposure.
double mos_distortions_rms(cpl_image *, cpl_vector *, double, double, int, int)
Estimate the spectral distortion modeling goodness.
cpl_image * mos_propagate_photometry_error(cpl_image *, cpl_image *, cpl_table *response, cpl_table *ext_table, double startwave, double dispersion, double gain, double exptime, double airmass)
Propagate errors from response curve and extracted spectra.
cpl_table * mos_load_slits_fors_mxu(cpl_propertylist *)
Create slit location table from FITS header of FORS2-MXU data.
cpl_image * mos_normalise_flat(cpl_image *, cpl_image *, cpl_table *, cpl_table *, double, double, double, double, int, int) CPL_ATTR_DEPRECATED
Normalise a flat field exposure.
int mos_get_nobjects(cpl_table *)
Get the total number of objects detected in a slits table.
cpl_error_code mos_rotate_slits(cpl_table *, int, int, int)
Rotate a slit location table.
cpl_image * mos_map_wavelengths(cpl_image *, cpl_image *, cpl_table *, cpl_table *, double, double, double, double)
Remapping of spatially rectified wavelengths to original CCD pixels.
cpl_image * mos_wavelength_calibration(cpl_image *, double, double, double, double, cpl_table *, int)
Remap at constant wavelength step an image of rectified scientific spectra.
cpl_table * mos_identify_slits(cpl_table *, cpl_table *, cpl_table *)
Identify slits listed in a slit location table.
cpl_table * mos_sky_map_super(cpl_image *, cpl_image *, double, double, int, cpl_image *)
Create a CCD median sky map.
cpl_image * mos_sky_local(cpl_image *, cpl_table *, int)
Local determination of sky.
cpl_table * mos_load_slits_fors_mos(cpl_propertylist *, int *nslits_out_det)
Create slit location table from FITS header of FORS1/2 MOS data.
double mos_get_gain_vimos(cpl_propertylist *)
Return gain factor for a VIMOS exposure.
cpl_table * mos_wavelength_align(cpl_image *, cpl_table *, double, double, double, cpl_table *, cpl_vector *, int, int, cpl_image *, int)
Modify the input wavelength solution to match reference sky lines.
cpl_error_code mos_validate_slits(cpl_table *)
Check validity of a slit location table.
cpl_error_code mos_subtract_background(cpl_image *)
Subtract the background.
int mos_get_maxobjs_per_slit(cpl_table *)
Get the maximum possible number of objects in a slit.
cpl_error_code mos_interpolate_wavecalib_slit(cpl_table *, cpl_table *, int, int)
Interpolate MOS wavelength calibration.
cpl_image * mos_remove_bias(cpl_image *, cpl_image *, cpl_table *)
Subtract the bias from a CCD exposure.
cpl_table * mos_poly_trace(cpl_table *, cpl_table *, int)
Fit spectral traces.
cpl_image * mos_detect_objects(cpl_image *, cpl_table *, int, int, int)
Detect objects in rectified scientific frame.
cpl_image * mos_sky_local_old(cpl_image *spectra, cpl_table *slits)
Local determination of sky.
int mos_check_polarisation(cpl_image *q_image, cpl_image *q_error, cpl_image *u_image, cpl_image *u_error, double startwave, double dispersion, double band, cpl_table *pol_sta, double ra, double dec, char *filter, int *polarisation, double *p_offset, double *p_error, double *a_offset, double *a_error)
Estimate linear polarisation parameters on spectral interval.
cpl_polynomial * mos_poly_wav2pix(cpl_bivector *, int, double, int, int *, double *)
Fit polynomial relation from wavelengths to pixels.
cpl_error_code mos_image_shift(cpl_image *, double dx, double dy)
Shift values in an image.
int mos_check_multiplex(cpl_table *)
Determining whether a VIMOS mask has spectral multplexing or not.
cpl_error_code mos_extract_flux(cpl_image *, cpl_table *, double, double, int, double, double *, double *)
Measure flux from spectral interval on CCD.
int mos_lines_width(const float *, int)
Estimate lines widths (in pixel) in arc lamp spectrum.
cpl_error_code mos_global_trace(cpl_table *, cpl_table *, int)
Recompute tracing coefficients globally.
cpl_bivector * mos_find_peaks(const float *, int, cpl_vector *, cpl_polynomial *, double, int)
Find the reference lines peaks using a polynomial first-guess.
cpl_vector * mos_peak_candidates(const float *, int, float, float)
Find positions of peaks candidates.
cpl_error_code mos_object_intersect(cpl_table **, cpl_table *, int, float)
Intersect a number of slit tables.
cpl_table * mos_wavelength_align_lss(cpl_image *, double, double, double, cpl_table *, cpl_vector *, int, int, cpl_image *, int)
Modify the input wavelength solution to match reference sky lines (LSS).
cpl_image * mos_subtract_sky(cpl_image *, cpl_table *, cpl_table *, double, double, double, double)
Subtract the sky from the scientific CCD exposure.
cpl_image * mos_map_idscoeff(cpl_table *, int, double, double, double)
Create a wavelengths map from an IDS coefficients table.
double mos_eval_dds(cpl_polynomial *, double, double, double, double)
Evaluate the wavelength of a pixel position.
cpl_table * mos_trace_flat(cpl_image *, cpl_table *, double, double, double, double)
Trace flat field spectra.
cpl_image * mos_wavelength_calibration_final(cpl_image *image, cpl_table *slits, cpl_vector *lines, double dispersion, float level, int sradius, int order, double reject, double refwave, double *wavestart, double *waveend, int *nlines, double *error, cpl_table *idscoeff, cpl_image *calibration, cpl_image *residuals, cpl_table *restable, cpl_table *detected_lines)
Derive wavelength calibration from a rectified arc lamp or sky exposure.
int mos_check_slits(cpl_table *, float)
Check that all slit have been detected, insert them if not.
cpl_image * mos_apply_photometry(cpl_image *, cpl_table *response, cpl_table *ext_table, double startwave, double dispersion, double gain, double exptime, double airmass)
Apply response curve to extracted spectra.
cpl_error_code mos_refmask_find_gaps(cpl_mask *, cpl_image *, double)
Reconstruct the gaps required for slit location.
cpl_image * mos_ksigma_stack(cpl_imagelist *imlist, double klow, double khigh, int kiter, cpl_image **)
Stack images using k-sigma clipping.
cpl_image ** mos_extract_objects(cpl_image *, cpl_image *science_var, cpl_image *, cpl_table *, int, double, double, int)
Extract detected objects from rectified scientific frame.
cpl_error_code mos_clean_cosmics(cpl_image *, float, float, float)
Remove cosmic rays from sky-subtracted CCD spectral exposure.
cpl_table * mos_global_distortion(cpl_table *, cpl_table *, cpl_table *, cpl_table *, double)
Determine all global distortions models.
int mos_spectral_resolution(cpl_image *, double, double, double, int, double *, double *, double *, double *, int *)
Compute mean spectral resolution at a given arc lamp line.
cpl_error_code mos_arc_background_1D(float *, float *, int, int, int)
Background determination on 1D emission line spectrum (arc)
cpl_table * mos_resolution_table(cpl_image *image, double startwave, double dispersion, int saturation, cpl_vector *lines)
Compute mean spectral resolution at a given arc lamp line.
cpl_table * mos_load_slits_fors_pmos(cpl_propertylist *, int *nslits_out_det)
Create PMOS slit location table from FITS header of FORS1/2 MOS data.
cpl_table * mos_load_slits_vimos(cpl_propertylist *)
Create slit location table from FITS header of VIMOS data.
cpl_error_code mos_randomise_image(cpl_image *, double ron, double gain, double bias)
Randomise image.
cpl_table * mos_build_curv_coeff(cpl_table *, cpl_table *, cpl_table *)
Build the curvature coefficients table from a global distortions table.
cpl_table * mos_locate_spectra(cpl_mask *)
Find the location of detected spectra on the CCD.
cpl_table * mos_load_slits_fors_lss(cpl_propertylist *)
Create slit location table from FITS header of FORS1/2 LSS data.
cpl_polynomial * mos_poly_pix2wav(cpl_bivector *, int, double, int, int *, double *)
Fit polynomial relation from pixels to wavelengths.
cpl_error_code mos_interpolate_wavecalib_mos(cpl_table *idscoeff, int mode, int degree)
Interpolate wavelength calibration for a single MOS slit.
cpl_image * mos_arc_background(cpl_image *, int, int)
Background determination on emission line spectrum (arc)
cpl_error_code mos_saturation_process(cpl_image *)
Process saturation.
cpl_image * mos_map_spectrum(cpl_image *, cpl_image *, cpl_image *, cpl_table *, cpl_table *, double, double, double, double, int)
Remapping of slit spectra into a grid of lambda-space coordinates.
int mos_slit_closest_to_center(cpl_table *slits, int nx, int ny)
Return slit closest to CCD center.
cpl_image * mos_image_filter_median(cpl_image *image, int nx, int ny)
Convenience function for standard median filtering.
cpl_image * mos_spatial_map(cpl_image *, cpl_table *, cpl_table *, double, double, double, double)
Create coordinate map from spectral curvature table.
cpl_error_code mos_extract_flux_mapped(cpl_image *, cpl_table *, double, double, double lambda, double startwave, double dispersion, int dx, double gain, double *o_flux, double *o_err)
Measure flux from spectral interval on remapped frame.
int mos_compute_offset(cpl_table *, cpl_table *, double *)
Estimate offset between two object tables.
cpl_image * mos_normalise_longflat(cpl_image *, int, int, int) CPL_ATTR_DEPRECATED
Normalise a long slit flat field exposure.
cpl_table * mos_load_overscans_vimos(const cpl_propertylist *, int) CPL_ATTR_DEPRECATED
Get the overscan positions from FITS header of VIMOS data.
int mos_median_in_slit(cpl_table *, cpl_table *, int slit, char *label, double *mvalue)
Compute median from a table column section corresponding to a slit.
cpl_table * mos_build_slit_location(cpl_table *, cpl_table *, int)
Build the slit location table from a global distortions table.