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

#include <math.h>
#include <xsh_data_order.h>
#include <xsh_utils.h>
#include <xsh_error.h>
#include <xsh_utils_wrappers.h>
#include <xsh_msg.h>
#include <xsh_pfits.h>
#include <xsh_dfs.h>
#include <cpl.h>
#include <xsh_utils_table.h>
#include <xsh_data_instrument.h>
#include <xsh_data_spectralformat.h>

Go to the source code of this file.

Functions

void xsh_order_list_dump (xsh_order_list *list, const char *fname)
void xsh_order_list_verify (xsh_order_list *list, int ny)
xsh_order_listxsh_order_list_new (int size)
 Create a new order list from size (no check).
xsh_order_listxsh_order_list_create (xsh_instrument *instr)
 create an empty order list
xsh_order_listxsh_order_list_load (cpl_frame *frame, xsh_instrument *instr)
 load an order list from a frame
void xsh_order_list_fit (xsh_order_list *list, int size, double *order, double *posx, double *posy, int deg_poly)
 fit the polynomial solution of given points
void xsh_order_list_free (xsh_order_list **list)
 free memory associated to an order_list
int xsh_order_list_get_index_by_absorder (xsh_order_list *list, double absorder)
cpl_propertylist * xsh_order_list_get_header (xsh_order_list *list)
 get header of the table
int xsh_order_list_get_starty (xsh_order_list *list, int i)
 get position on Y axis of first pixel detected on order
int xsh_order_list_get_endy (xsh_order_list *list, int i)
 get position on Y axis of last pixel detected on order
int xsh_order_list_get_order (xsh_order_list *list, int absorder)
xsh_order_listxsh_order_list_merge (xsh_order_list *lista, xsh_order_list *listb)
void xsh_order_list_set_bin_x (xsh_order_list *list, int bin)
 Set the bin of image in x.
void xsh_order_list_set_bin_y (xsh_order_list *list, int bin)
 Set the bin of image in y.
double xsh_order_list_eval (xsh_order_list *list, cpl_polynomial *poly, double y)
 Evaluate an order list poly.
int xsh_order_list_eval_int (xsh_order_list *list, cpl_polynomial *poly, double y)
 Evaluate an order list poly but return the central pixel position rounding the polynomial.
void xsh_order_list_apply_shift (xsh_order_list *list, double xshift, double yshift)
 Shift a order list.
cpl_frame * xsh_order_list_save (xsh_order_list *order_list, xsh_instrument *instrument, const char *filename, const char *tag, const int ny)
 Save an order list to a frame.
void xsh_order_split_qth_d2 (cpl_frame *order_tab_frame, cpl_frame *spectralformat_frame, cpl_frame **qth_order_tab_frame, cpl_frame **d2_order_tab_frame, xsh_instrument *instr)

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