/home/amodigli/releases/xsh/2.1.1/xsh.30433/xshp/xsh/xsh_detect_order.c File Reference

#include <math.h>
#include <xsh_drl.h>
#include <xsh_utils_wrappers.h>
#include <xsh_data_order.h>
#include <xsh_error.h>
#include <xsh_utils.h>
#include <xsh_utils_image.h>
#include <xsh_msg.h>
#include <xsh_data_pre.h>
#include <cpl.h>

Go to the source code of this file.

Defines

#define HALF_SLIC_WINDOW   5

Functions

static cpl_table * xsh_compute_flat_edges (cpl_frame *frame, xsh_order_list *list, xsh_instrument *instrument, const char *method)
 Measure flat edges (and eventually IFU slices) on master bias using Scharr X filter.
static void xsh_eval_y_avg_chunk (xsh_pre *pre, int xc, int yc, int chunk_y_hsize, int x_hsize, const int decode_bp, double *flux, double *noise)
 Evaluate by chunk in Y the total and mean flux and the corresponding errors around x,y input position.
static void xsh_detect_max_y (xsh_order_list *list, int chunk_hsize, cpl_polynomial *cen_poly, int cen_start, int cen_end, xsh_pre *pre, const int decode_bp, int *maxy)
 Detect Y position where flux is max.
static void xsh_detect_edges (xsh_order_list *list, int y, cpl_polynomial *cen_poly, xsh_pre *pre, int window_hsize, double *res_flux, double *res_noise, int chunk_hsize, double min_snr, double flux_frac, int min_size_x, const int decode_bp, int *x_min, float *x_cen_sdivn, int *xup, int *xlow, float *min_low, float *min_up)
 Detect order edges: at each y position determines low (left) and upper (right) order edges.
static void xsh_detect_slitlet_ratio (double *res_flux, int window_hsize, double min_low, double min_up, int xlow, int xup, double *ratio_low, double *ratio_up)
cpl_frame * xsh_detect_order_edge (cpl_frame *frame, cpl_frame *cen_order_tab_frame, xsh_detect_order_param *detectorder_par, xsh_instrument *instrument)
 Detect order edges and compute polynomial description of ordermin and order max.

Generated on 13 Mar 2013 for X-shooter Pipeline Reference Manual by  doxygen 1.6.1