sinfo_new_slope_of_spectrum() |
determines the sub-pixel shifts of each row
- Parameters:
-
| ns_image | image with at least one continuum spectrum of a pinhole |
| box_length | width of the box in which the lines are fit by a Gaussian |
| fwhm | first guess of the full width at half maximum |
| min_amplitude_factor | factor peak/background below given threshold the fit is not carried through |
- Returns:
- slope of a straight line fitted to the spectrum. -FLT_MAX if something went wrong. determines the sub-pixel shifts of each row by using an image with at least one continuum spectrum of a pinhole this is done by searching the spectrum within the image then fitting the spectrum along the rows within a given box by a Gaussian, so that the exact position is determined for each row. Afterwards, a straight line is fitted through the fitted positions. The slope of this linear fit is returned.
|
float | sinfo_new_slope_of_spectrum (cpl_image *ns_image, int box_length, float fwhm, float minDiff) |
sinfo_new_shift_rows() |
- Parameters:
-
| image | raw image in which the rows should be shifted |
| slope | slope of a fitted straight line along a spectrum output of sinfo_slopeOfSpectrum |
| n_order | order of the interpolation polynom |
- Returns:
- resulting image with shifted rows shifts the rows of a raw image by using the output of sinfo_slopeOfSpectrum and applying polynomial interpolation
|
cpl_image * | sinfo_new_shift_rows (cpl_image *image, float slope, int n_order) |
sinfo_new_parameter_to_ascii() |
stores parameters in an ASCII file
- Parameters:
-
| parameter | float parameter array to be stored in an ASCII file |
| number | number of parameters |
| filename | filename of ASCII file |
- Returns:
- void
|
void | sinfo_new_parameter_to_ascii (float *parameter, int n, char *filename) |
sinfo_new_ascii_to_parameter() |
- Parameters:
-
| filename | filename of ASCII file |
| n | number of parameters in the parameter array array of parameters writes parameters stored in an ASCII file in an float array |
|
float * | sinfo_new_ascii_to_parameter (char *filename, int *n) |
sinfo_new_curvature_of_spectrum() |
- Parameters:
-
| ns_image | image with at least one continuum spectrum of a pinhole |
| order | order of the fit polynomial |
| box_length | width of the box in which the lines are fit by a Gaussian |
| left_pos | |
| right_pos | left and right positions between which the spectrum should be located |
| fwhm | first guess of the full width at half maximum |
| min_amplitude_factor | factor peak/background below given threshold the fit is not carried through |
- Returns:
- resulting polynomial coefficients. this routine determines the curvature of a spectrum by fitting a polynomial to a continuum spectrum. This is done by using an image with at least one continuum spectrum of a pinhole. this is done by searching the spectrum within the image then fitting the spectrum along the rows within a given box by a sinfo_gaussian, so that the exact position is determined for each row. Afterwards, a polynomial is fitted through the found positions. The polynomial coefficients are returned.
|
double * | sinfo_new_curvature_of_spectrum (cpl_image *ns_image, int order, int box_length, int left_pos, int right_pos, float fwhm, float minDiff) |
sinfo_new_image_warp_fits |
correct optical distortions
- Parameters:
-
| image | distorted image |
| kernel_type | type of kernel to correct distortions |
| poly_table | table containing distortion coefficients |
- Returns:
- image distortion corrected
|
cpl_image * | sinfo_new_image_warp_fits (cpl_image *image, char *kernel_type, char *poly_table) |