00001 #ifndef SINFO_UTILITIES_SCIRED_H
00002 #define SINFO_UTILITIES_SCIRED_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include <cpl.h>
00022 #include "sinfo_tpl_utils.h"
00023 #include "sinfo_key_names.h"
00024 #include "sinfo_pro_types.h"
00025 #include "sinfo_msg.h"
00026 #include "sinfo_cube_construct.h"
00027 #include "sinfo_utilities.h"
00028 #include "sinfo_object_cfg.h"
00029
00030 float*
00031 sinfo_read_distances(const int nslits, const char* distlist);
00032
00033 float**
00034 sinfo_read_slitlets_edges(const int nslits, const char* poslist);
00035
00036
00037 int
00038 sinfo_check_input_data(object_config* cfg);
00039
00040 int
00041 sinfo_auto_size_cube(float* offsetx,
00042 float* offsety,
00043 const int nframes,
00044 float* ref_offx,
00045 float* ref_offy,
00046 int* size_x,
00047 int* size_y);
00048
00049 int
00050 sinfo_auto_size_cube4(float* offsetx,
00051 float* offsety,
00052 const int nframes,
00053 float* ref_offx,
00054 float* ref_offy,
00055 int* size_x,
00056 int* size_y);
00057
00058
00059
00060 int
00061 sinfo_auto_size_cube5(object_config * cfg,
00062 float* ref_offx, float* ref_offy,
00063 float* min_offx, float* min_offy,
00064 float* max_offx, float* max_offy);
00065
00066 cpl_imagelist *
00067 sinfo_new_cube_getvig(
00068 cpl_imagelist * cube_in,
00069 int loleft_x,
00070 int loleft_y,
00071 int upright_x,
00072 int upright_y);
00073
00074
00075 int
00076 sinfo_new_set_wcs_cube(cpl_imagelist* cub, const char* name, double clambda,
00077 double dis, double cpix, double cx, double cy);
00078
00079 int
00080 sinfo_new_set_wcs_image(cpl_image* img, const char* name,
00081 double cx, double cy);
00082
00083 int
00084 sinfo_new_set_wcs_spectrum(cpl_image* img, const char* name,
00085 double clambda, double dis, double cpix);
00086
00087
00088
00089 cpl_imagelist*
00090 sinfo_new_fine_tune(cpl_imagelist* cube,float* correct_dist,
00091 const char* method, const int order, const int nslits) ;
00092
00093 int
00094 sinfo_new_object_assign_offset(const char* name, const int n, double* ref_offx,
00095 double* ref_offy, float** offsetx,
00096 float** offsety);
00097
00098 int
00099 sinfo_new_assign_offset2(const int n,
00100 const char* name,
00101 float* offsetx,
00102 float* offsety,
00103 const float ref_offx,
00104 const float ref_offy);
00105
00106 int
00107 sinfo_new_assign_offset(const int n,const char* name,float* offsetx,
00108 float* offsety,const float ref_offx,
00109 const float ref_offy);
00110
00111
00112 cpl_imagelist**
00113 sinfo_new_sinfoni_correct_median(cpl_imagelist** cubeobject, const int n_cubes);
00114
00115 cpl_imagelist**
00116 sinfo_new_sinfoni_correct_sky2(cpl_imagelist** cubes,
00117 const int nc,
00118 cpl_imagelist* sky_cube,
00119 cpl_imagelist* med_cube,
00120 cpl_imagelist* msk_cube,
00121 cpl_imagelist* avg_cube,
00122 cpl_imagelist* sig_cube,
00123 cpl_imagelist* ovr_cube);
00124
00125 cpl_imagelist**
00126 sinfo_new_sinfoni_correct_sky(cpl_imagelist** cubes,
00127 const int nc,
00128 cpl_imagelist* sky_cube);
00129
00130 int
00131 sinfo_new_sinfoni_correct_median_it(cpl_imagelist** inp);
00132
00133
00134 int sinfo_calib_flux_std(
00135 const char * seds_file,
00136 const char * stdstars,
00137 const char * filter,
00138 cpl_frame * frame,
00139 cpl_table * tab,
00140 double mag);
00141
00142
00143 sinfo_band sinfo_get_associated_filter(const char * f);
00144 sinfo_band sinfo_get_bbfilter(const char * f);
00145
00146 #endif