39 #include "omega_dfs.h"
59 int oc_dfs_set_groups(cpl_frameset *
set)
61 cpl_frame * cur_frame ;
67 if (
set == NULL)
return -1 ;
70 nframes = cpl_frameset_get_size(
set) ;
73 for (i=0 ; i<nframes ; i++) {
74 cur_frame = cpl_frameset_get_frame(
set, i) ;
75 tag = cpl_frame_get_tag(cur_frame) ;
78 if (!strcmp(tag, DARK_RAW) ||
79 !strcmp(tag, FRINGES_RAW) ||
80 !strcmp(tag, GAIN_FLAT) ||
81 !strcmp(tag, GAIN_DARK) ||
82 !strcmp(tag, MBIAS_RAW) ||
83 !strcmp(tag, LIFETEST_RAW) ||
84 !strcmp(tag, MDOME_RAW) ||
85 !strcmp(tag, DITHER_RAW) ||
86 !strcmp(tag, OFFSET_RAW) ||
87 !strcmp(tag, MTWIL_RAW) ||
88 !strcmp(tag, RNOISE_RAW) ||
89 !strcmp(tag, STARE_RAW) ||
90 !strcmp(tag, JITTER_RAW) ||
91 !strcmp(tag, SHUTTER_RAW) ||
92 !strcmp(tag, STD_RAW)) {
93 cpl_frame_set_group(cur_frame, CPL_FRAME_GROUP_RAW) ;
96 else if (!strcmp(tag,OMEGA_CALIB_BIAS) ||
97 !strcmp(tag, OMEGA_CALIB_BPM) ||
98 !strcmp(tag, OMEGA_CALIB_CPM ) ||
99 !strcmp(tag, OMEGA_CALIB_DARK) ||
100 !strcmp(tag, OMEGA_CALIB_DOME) ||
101 !strcmp(tag, OMEGA_CALIB_EXTCUR) ||
102 !strcmp(tag, OMEGA_CALIB_FLAT) ||
103 !strcmp(tag, OMEGA_CALIB_FRINGE) ||
104 !strcmp(tag, OMEGA_CALIB_HPM) ||
105 !strcmp(tag, OMEGA_CALIB_ILLFIT) ||
106 !strcmp(tag, OMEGA_CALIB_ILLUM) ||
107 !strcmp(tag, OMEGA_CALIB_MONIT) ||
108 !strcmp(tag, OMEGA_CALIB_NSKY) ||
109 !strcmp(tag, OMEGA_CALIB_RDNOISE) ||
110 !strcmp(tag, OMEGA_CALIB_REFSTAR) ||
111 !strcmp(tag, OMEGA_CALIB_TWIL) ||
112 !strcmp(tag, OMEGA_CALIB_COLTERMS) ||
113 !strcmp(tag, OMEGA_USNOA2) ||
114 !strcmp(tag, OMEGA_CALIB_EXTCUR) ||
115 !strcmp(tag, REFMFLAT) ||
116 !strcmp(tag, OMEGA_CALIB_ZP)) {
117 cpl_frame_set_group(cur_frame, CPL_FRAME_GROUP_CALIB);