GRAVI Pipeline Reference Manual 1.9.4
Loading...
Searching...
No Matches
Functions
gravi_preproc.c File Reference
#include <cpl.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <complex.h>
#include "gravi_data.h"
#include "gravi_calib.h"
#include "gravi_dfs.h"
#include "gravi_pfits.h"
#include "gravi_cpl.h"
#include "gravi_utils.h"
#include "gravi_preproc.h"

Go to the source code of this file.

Functions

cpl_table * gravi_table_ft_format (cpl_table *pix_table, cpl_table *skystd_table, cpl_table *skyavg_table, cpl_table *badft_table, int n_region, double gain, const cpl_parameterlist *parlist)
 Extract FT spectrum from PIX column.
 
cpl_table * gravi_imglist_sc_collapse (cpl_table *profile_table, cpl_imagelist *raw_imglist, cpl_imagelist *rawVar_imglist, cpl_size startx)
 Extract the SC spectrum with profile.
 
cpl_error_code gravi_interpolate_spectrum_table (cpl_table *spectrum_table, cpl_table *wave_table, cpl_table **oiwave_tables, cpl_table *detector_table, cpl_table *specflat_table, int type_data)
 Re-interpolate in-place a spectrum table.
 
int gravi_pixel_is_good (cpl_image *bad_img, int x, int y)
 Check if the pixel in the BADPIX map is a good pixel.
 
cpl_error_code gravi_remove_badpixel_sc (cpl_imagelist *imglist_sc, cpl_image *bad_img)
 Remove the badpixel of the SC.
 
gravi_datagravi_extract_spectrum (gravi_data *raw_data, gravi_data *profile_map, gravi_data *dark_map, gravi_data *bad_map, gravi_data *sky_map, const cpl_parameterlist *parlist, enum gravi_detector_type det_type)
 Create the SPECTRUM gravi_data with extracted spectrum per region.
 
cpl_error_code gravi_subtract_met_dark (gravi_data *preproc_data, gravi_data *dark_map)
 Substract metrology dark.
 
cpl_error_code gravi_align_spectrum (gravi_data *spectrum_data, gravi_data *wave_map, gravi_data *p2vm_map, enum gravi_detector_type det_type)
 Regrid the regions into a common wavelength (in-place)