SINFONI Pipeline Reference Manual  2.6.0
sinfo_utilities_scired.h
1 #ifndef SINFO_UTILITIES_SCIRED_H
2 #define SINFO_UTILITIES_SCIRED_H
3 /*
4  * This file is part of the ESO SINFONI Pipeline
5  * Copyright (C) 2004,2005 European Southern Observatory
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
20  */
21 #include <cpl.h>
22 #include "sinfo_tpl_utils.h"
23 #include "sinfo_key_names.h"
24 #include "sinfo_pro_types.h"
25 #include "sinfo_msg.h"
26 #include "sinfo_cube_construct.h"
27 #include "sinfo_utilities.h"
28 #include "sinfo_object_cfg.h"
29 
30 float*
31 sinfo_read_distances(const int nslits, const char* distlist);
32 
33 float**
34 sinfo_read_slitlets_edges(const int nslits, const char* poslist);
35 
36 
37 int
38 sinfo_check_input_data(object_config* cfg);
39 
40 int
41 sinfo_auto_size_cube(float* offsetx,
42  float* offsety,
43  const int nframes,
44  float* ref_offx,
45  float* ref_offy,
46  int* size_x,
47  int* size_y);
48 
49 int
50 sinfo_auto_size_cube4(float* offsetx,
51  float* offsety,
52  const int nframes,
53  float* ref_offx,
54  float* ref_offy,
55  int* size_x,
56  int* size_y);
57 
58 
59 
60 int
61 sinfo_auto_size_cube5(object_config * cfg,
62  float* ref_offx, float* ref_offy,
63  float* min_offx, float* min_offy,
64  float* max_offx, float* max_offy);
65 
66 cpl_imagelist *
67 sinfo_new_cube_getvig(
68  cpl_imagelist * cube_in,
69  int loleft_x,
70  int loleft_y,
71  int upright_x,
72  int upright_y);
73 
74 
75 int
76 sinfo_new_set_wcs_cube(cpl_imagelist* cub, const char* name, double clambda,
77  double dis, double cpix, double cx, double cy);
78 
79 int
80 sinfo_new_set_wcs_image(cpl_image* img, const char* name,
81  double cx, double cy);
82 
83 int
84 sinfo_new_set_wcs_spectrum(cpl_image* img, const char* name,
85  double clambda, double dis, double cpix);
86 
87 
88 
89 cpl_imagelist*
90 sinfo_new_fine_tune(cpl_imagelist* cube,float* correct_dist,
91  const char* method, const int order, const int nslits) ;
92 
93 int
94 sinfo_new_object_assign_offset(const char* name, const int n, double* ref_offx,
95  double* ref_offy, float** offsetx,
96  float** offsety);
97 
98 int
99 sinfo_new_assign_offset2(const int n,
100  const char* name,
101  float* offsetx,
102  float* offsety,
103  const float ref_offx,
104  const float ref_offy);
105 
106 int
107 sinfo_new_assign_offset(const int n,const char* name,float* offsetx,
108  float* offsety,const float ref_offx,
109  const float ref_offy);
110 
111 
112 cpl_imagelist**
113 sinfo_new_sinfoni_correct_median(cpl_imagelist** cubeobject, const int n_cubes);
114 
115 cpl_imagelist**
116 sinfo_new_sinfoni_correct_sky2(cpl_imagelist** cubes,
117  const int nc,
118  cpl_imagelist* sky_cube,
119  cpl_imagelist* med_cube,
120  cpl_imagelist* msk_cube,
121  cpl_imagelist* avg_cube,
122  cpl_imagelist* sig_cube,
123  cpl_imagelist* ovr_cube);
124 
125 cpl_imagelist**
126 sinfo_new_sinfoni_correct_sky(cpl_imagelist** cubes,
127  const int nc,
128  cpl_imagelist* sky_cube);
129 
130 int
131 sinfo_new_sinfoni_correct_median_it(cpl_imagelist** inp);
132 
133 
134 int sinfo_calib_flux_std(
135  const char * seds_file,
136  const char * stdstars,
137  const char * filter,
138  cpl_frame * frame,
139  cpl_table * tab,
140  double mag);
141 
142 
143 sinfo_band sinfo_get_associated_filter(const char * f);
144 sinfo_band sinfo_get_bbfilter(const char * f);
145 int
146 sinfo_set_wcs_cal_image(cpl_image* img,
147  const char* name,
148  double crpix1,
149  double crval1,
150  double cdelt1,
151  double crpix2,
152  double crval2,
153  double cdelt2);
154 #endif