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);
77 cpl_table *mos_identify_slits_fast(cpl_table *, cpl_table *, cpl_table *);
79 double,
double,
double);
83 double,
double,
double,
double,
int,
87 double dispersion,
float level,
88 int sradius,
int order,
89 double reject,
double refwave,
90 double *wavestart,
double *waveend,
91 int *nlines,
double *error,
93 cpl_image *calibration,
96 cpl_table *detected_lines);
98 cpl_table *, cpl_table *,
double);
103 double, cpl_table *, cpl_vector *,
int,
104 int, cpl_image *,
int);
106 cpl_table *, cpl_vector *,
int,
int,
109 double, cpl_table *,
int);
110 cpl_image *
mos_map_pixel(cpl_table *,
double,
double,
double,
double,
int);
113 cpl_table *,
double,
double,
double,
double);
114 cpl_image *
mos_map_spectrum(cpl_image *, cpl_image *, cpl_image *, cpl_table *,
115 cpl_table *,
double,
double,
double,
double,
int);
117 double,
double,
double);
118 cpl_table *
mos_sky_map(cpl_image *, cpl_image *,
double, cpl_image *);
125 cpl_error_code mos_clean_bad_pixels(cpl_image *, cpl_table *,
int);
129 cpl_image *
mos_spatial_map(cpl_image *, cpl_table *, cpl_table *,
double,
130 double,
double,
double);
133 int,
double,
double,
int);
135 double *,
double *,
double *,
double *,
int *);
137 double dispersion,
int saturation,
141 cpl_polynomial *mos_montecarlo_polyfit(cpl_table *points, cpl_table *evaluate,
142 int samples,
int order);
145 double gain,
double bias);
151 cpl_table *mos_load_overscans_fors(const cpl_propertylist *);
169 int *fors_get_nobjs_perslit(cpl_table *);
170 int mos_rebin_signal(cpl_image **,
int);
171 int mos_rebin_error(cpl_image **,
int);
173 double, cpl_table *,
double, cpl_table *,
175 int map_table(cpl_image *,
double,
double, cpl_table *,
char *,
char *);
177 double klow,
double khigh,
int kiter,
180 cpl_table *ext_table,
double startwave,
181 double dispersion,
double gain,
182 double exptime,
double airmass);
185 cpl_table *ext_table,
double startwave,
186 double dispersion,
double gain,
187 double exptime,
double airmass);
189 cpl_image *u_image, cpl_image *u_error,
190 double startwave,
double dispersion,
191 double band, cpl_table *pol_sta,
192 double ra,
double dec,
char *filter,
194 double *p_offset,
double *p_error,
195 double *a_offset,
double *a_error);
200 int,
double,
double *,
double *);
203 double lambda,
double startwave,
204 double dispersion,
int dx,
double gain,
205 double *o_flux,
double *o_err);
207 char *label,
double *mvalue);
210 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_extract_objects(cpl_image *, cpl_image *, cpl_table *, int, double, double, int)
Extract detected objects from rectified scientific frame.
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_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_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)
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.