1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
|
/*
* This file is part of the ESO UVES Pipeline
* Copyright (C) 2004,2005 European Southern Observatory
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
*/
#ifndef FLAMES_UTILS_SCIENCE_H
#define FLAMES_UTILS_SCIENCE_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <uves_cpl_size.h>
/*-----------------------------------------------------------------------------
Includes
----------------------------------------------------------------------------*/
#include <cpl.h>
#include <uves_chip.h>
#include <uves_propertylist.h>
#include <flames_uves.h>
#include <flames_midas_def.h>
#include <flames_reduce_vcorrel.h>
/*-----------------------------------------------------------------------------
Defines
----------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------
Prototypes
----------------------------------------------------------------------------*/
flames_err
flames_add_desc_data(const char* file_ref,
const char* file_out,
const int ndat,
const int in_frm_id);
flames_err
flames_add_desc_bpmap(const char* file_ref,
const char* file_out,
const int ndat,
const int in_frm_id);
flames_err
flames_add_desc_sigma(const char* file_ref,
const char* file_out,
const int ndat,
const int in_frm_id);
flames_err
flames_add_desc_bound(const char* file_ref,
const char* file_out,
const int ndat,
const int in_frm_id);
int
flames_extract_ima_from_cube(cpl_frameset* frames,
const char* tag,
enum uves_chip chip,
const char* cub_name,
cpl_frameset** set_out);
int
flames_drs_merge(const char* inp_ima,
const char* out_base_reb,
const char* out_base_mer,
const int fibre_id,
const int raw_switch,
const double delta1,
const double delta2);
flames_err
flames_reset_desc_data(const char* name_inp,
const int nflats,
const char* base_out,
const int in_frm_id,
enum uves_chip chip);
flames_err
flames_reset_desc_set4(const int out_id,
const int dat_id,
const int it,
const int in_frm_id);
flames_err
flames_reset_desc_set2(const int dat_id,
const int it,
const int in_frm_id);
flames_err
flames_reset_desc_set0(const int out_id,
const int dat_id,
const int it,
const int in_frm_id);
flames_err
flames_reset_desc_set3(const int out_id,
const int dat_id,
const int it,
const int in_frm_id);
int
flames_fix_start_and_npix(const char* name, const int format);
int
flames_reset_start_and_npix(const char* name, const char* tag);
int
flames_reduce_reset_descriptors(uves_propertylist* head_ref,
uves_propertylist** file_out,
const int i);
int
flames_my_decubify(cpl_frameset* set,
enum uves_chip chip,
const int frm_type,
cpl_frameset** set_out);
int
flames_my_cubify(enum uves_chip chip,
const int frm_type,
cpl_frameset** set_out);
int
flames_my_cubify2(enum uves_chip chip,
const int frm_type,
cpl_frameset** set_out,
cpl_frameset *frames,
const uves_propertylist *raw_header,
const cpl_parameterlist *parameters,
const char *recipe_id,
const char *starttime);
int
flames_spectra_to_image(
const char* inp_basename,
const char* inp_filename_qual,
const char* out_filename,
const int min,
const int max,
const cpl_table* xtab,
const int pno);
int
flames_spectra_to_image_check(
const char* inp_basename,
const char* inp_filename_qual,
const char* out_filename,
const int min,
const int max,
const cpl_table* xtab,
const int pno);
int
flames_images_to_cube(
const char* inp_basename,
const char* out_filename,
const char* inp_format_digit,
const int min,
const int max);
int
flames_images_to_cube_check(
const char* inp_basename,
const char* out_filename,
const char* inp_format_digit,
int* fibre_mask_frm,
const int min,
const int max);
int
flames_cubes_to_supercube(
const char* inp_basename,
const char* out_filename,
const char* inp_format_digit,
const int min,
const int max);
int
flames_replicate_frame(cpl_frameset* frames,
const char* tag,
const char* name,
cpl_frameset** set);
int
flames_reduce_add_wstart(uves_propertylist* head_ref,
uves_propertylist** head_out,
const int nord);
#endif
|