00001 #ifndef RTD_RED_H
00002 #define RTD_RED_H
00003
00004 /*******************************************************************************
00005 * E.S.O. - VLT project
00006 *
00007 * "@(#) $Id: rtd_red.h,v 1.2 2005/01/25 15:31:41 amodigli Exp $"
00008 *
00009 * who when what
00010 * -------- -------- ----------------------------------------------
00011 * schreib 02/01/01 created
00012 */
00013
00014 /************************************************************************
00015 * rtd_red.h
00016 * quicklook reduction routine for RTD
00017 *----------------------------------------------------------------------
00018 */
00019
00020 /*
00021 * header files
00022 */
00023
00024 /*
00025 #include <stdio.h>
00026 */
00027 #include <math.h>
00028
00029 #include "spiffi_types.h"
00030 /*
00031 #include "eclipse.h"
00032 #include "recipes.h"
00033 */
00034
00035 /*
00036 * typedefs
00037 */
00038 /*
00039 * frame header type
00040 */
00041 typedef struct
00042 {
00043 int dtype; /* data type */
00044 int ftype; /* frame type */
00045 int start_x; /* window start-x */
00046 int start_y; /* window start-y */
00047 int nx; /* window nx */
00048 int ny; /* window ny */
00049 int scal; /* scale factor */
00050 int cnt; /* frame counter */
00051 int setupId; /* setup-id */
00052 int err; /* error-id */
00053 int overrun; /* overrun flag */
00054 int frames; /* available frame types */
00055 int tx; /* track point x */
00056 int ty; /* track point y */
00057 } sdmaFRAME_H;
00058
00059 /*
00060 * frame type (external)
00061 */
00062 typedef struct
00063 {
00064 sdmaFRAME_H h; /* header structure */
00065 char * fbuf; /* frame buffer */
00066 } sdmaFRAME_T;
00067
00068 /*----------------------------------------------------------------------------
00069 * Function ANSI C prototypes
00070 *--------------------------------------------------------------------------*/
00071
00072 /*----------------------------------------------------------------------------
00073 Function : sirtdReconsImg()
00074 In : sdmaFRAME_T type frame,
00075 waveMap: calibrated wavelength map, not merged
00076 slit_edges: slitlet edges, output of fitSlits
00077 min_lambda, max_lambda: user given wavelength range
00078 within the spectrum is collapsed, input from the RTD-GUI
00079 Out : changed sdmaFRAME_T type frame
00080 0: if it all went o.k.
00081 -1: if there was no input frame
00082 -2: if there was no wavelength calibration map
00083 -3: if the slit edges array was not given
00084 -4: if the frame length of the input and the wavelength
00085 map don't agree.
00086 -5: if min or max lambda are out of range
00087 -6: if more than 32 slitlets are given.
00088 -7: wrong row length computed
00089 Job : does the quicklook reduction of a raw detector frame
00090 ---------------------------------------------------------------------------*/
00091
00092 int sirtdReconsImg( sdmaFRAME_T * frame,
00093 OneImage * waveMap,
00094 float ** slit_edges,
00095 float min_lambda,
00096 float max_lambda ) ;
00097
00098 #endif
00100 /*--------------------------------------------------------------------------*/
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001