- Timestamp:
- Jun 12, 2015, 9:44:51 PM (11 years ago)
- Location:
- branches/eam_branches/ipp-20150419/Ohana/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
relastro/src/UpdateObjectOffsets.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150419/Ohana/src
-
Property svn:mergeinfo
set to
/branches/eam_branches/ipp-20150112/Ohana/src merged eligible /branches/eam_branches/ipp-20150405/Ohana/src merged eligible /trunk/Ohana/src merged eligible
-
Property svn:mergeinfo
set to
-
branches/eam_branches/ipp-20150419/Ohana/src/relastro/src/UpdateObjectOffsets.c
r37807 r38447 34 34 catalog.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data 35 35 catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 36 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;36 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 37 37 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 38 38 … … 41 41 exit (1); 42 42 } 43 if (!catalog.Nave s_disk) {43 if (!catalog.Naverage_disk) { 44 44 if (VERBOSE2) fprintf (stderr, "no data in %s, skipping\n", catalog.filename); 45 45 dvo_catalog_unlock (&catalog); … … 102 102 103 103 int Ngroups; 104 HostTableGroup *groups = HostTableGroups (table, &Ngroups);104 HostTableGroup *groups = HostTableGroupsUniqueMachines (table, &Ngroups); 105 105 // split the table into Ngroups, each with a unique set of machines (this avoids overloading the remote host machines) 106 106 … … 152 152 // MaxDensityUse, MaxDensityValue 153 153 154 char command[1024];155 s nprintf (command, 1024, "relastro_client -update-offsets -hostID %d -D CATDIR %s -hostdir %s -region %f %f %f %f -statmode %s -minerror %f",154 char *command = NULL; 155 strextend (&command, "relastro_client -update-offsets -hostID %d -D CATDIR %s -hostdir %s -region %f %f %f %f -statmode %s -minerror %f", 156 156 group->hosts[i][0].hostID, CATDIR, group->hosts[i][0].pathname, UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax, STATMODE, MIN_ERROR); 157 157 158 if (FIT_MODE == FIT_PM_ONLY) strextend ( command, "-pm");159 if (FIT_MODE == FIT_PAR_ONLY) strextend ( command, "-par");160 if (FIT_MODE == FIT_PM_AND_PAR) strextend ( command, "-pmpar");161 162 if (VERBOSE) strextend ( command, "-v");163 if (VERBOSE2) strextend ( command, "-vv");164 if (RESET) strextend ( command, "-reset");165 if (UPDATE) strextend ( command, "-update");166 167 if (RESET_BAD_IMAGES) strextend ( command, "-reset-bad-images");168 169 if (ImagSelect) strextend ( command, "-instmag %f %f", ImagMin, ImagMax);170 if (MaxDensityUse) strextend ( command, "-max-density %f", MaxDensityValue);171 172 if (USE_BASIC_CHECK) strextend ( command, "-basic-image-search");173 if (FlagOutlier) strextend ( command, "-clip %d", CLIP_THRESH);174 if (ExcludeBogus) strextend ( command, "-exclude-bogus %f", ExcludeBogusRadius);175 176 if (USE_FIXED_PIXCOORDS) strextend ( command, "-D USE_FIXED_PIXCOORDS 1");177 178 if (PHOTCODE_KEEP_LIST) strextend ( command, "+photcode %s", PHOTCODE_KEEP_LIST);179 if (PHOTCODE_SKIP_LIST) strextend ( command, "-photcode %s", PHOTCODE_SKIP_LIST);180 if (PhotFlagSelect) strextend ( command, "+photflags");181 if (PhotFlagBad) strextend ( command, "+photflagbad %d", PhotFlagBad);182 if (PhotFlagPoor) strextend ( command, "+photflagpoor %d", PhotFlagPoor);158 if (FIT_MODE == FIT_PM_ONLY) strextend (&command, "-pm"); 159 if (FIT_MODE == FIT_PAR_ONLY) strextend (&command, "-par"); 160 if (FIT_MODE == FIT_PM_AND_PAR) strextend (&command, "-pmpar"); 161 162 if (VERBOSE) strextend (&command, "-v"); 163 if (VERBOSE2) strextend (&command, "-vv"); 164 if (RESET) strextend (&command, "-reset"); 165 if (UPDATE) strextend (&command, "-update"); 166 167 if (RESET_BAD_IMAGES) strextend (&command, "-reset-bad-images"); 168 169 if (ImagSelect) strextend (&command, "-instmag %f %f", ImagMin, ImagMax); 170 if (MaxDensityUse) strextend (&command, "-max-density %f", MaxDensityValue); 171 172 if (USE_BASIC_CHECK) strextend (&command, "-basic-image-search"); 173 if (FlagOutlier) strextend (&command, "-clip %d", CLIP_THRESH); 174 if (ExcludeBogus) strextend (&command, "-exclude-bogus %f", ExcludeBogusRadius); 175 176 if (USE_FIXED_PIXCOORDS) strextend (&command, "-D USE_FIXED_PIXCOORDS 1"); 177 178 if (PHOTCODE_KEEP_LIST) strextend (&command, "+photcode %s", PHOTCODE_KEEP_LIST); 179 if (PHOTCODE_SKIP_LIST) strextend (&command, "-photcode %s", PHOTCODE_SKIP_LIST); 180 if (PhotFlagSelect) strextend (&command, "+photflags"); 181 if (PhotFlagBad) strextend (&command, "+photflagbad %d", PhotFlagBad); 182 if (PhotFlagPoor) strextend (&command, "+photflagpoor %d", PhotFlagPoor); 183 183 // XXX note that the above pass in the flag as decimal -- also note that args.c cannot handle 0xHEX values 184 184 185 185 if (DCR_BLUE_COLOR_POS && DCR_BLUE_COLOR_NEG) { 186 strextend ( command, "-dcr-blue-color %s %s", DCR_BLUE_COLOR_POS, DCR_BLUE_COLOR_NEG);186 strextend (&command, "-dcr-blue-color %s %s", DCR_BLUE_COLOR_POS, DCR_BLUE_COLOR_NEG); 187 187 } 188 188 if (DCR_RED_COLOR_POS && DCR_RED_COLOR_NEG) { 189 strextend ( command, "-dcr-red-color %s %s", DCR_RED_COLOR_POS, DCR_RED_COLOR_NEG);190 } 191 192 if (MinBadQF > 0.0) strextend ( command, "-min-bad-psfqf %f", MinBadQF);193 if (MaxMeanOffset != 10.0) strextend ( command, "-max-mean-offset %f", MaxMeanOffset);189 strextend (&command, "-dcr-red-color %s %s", DCR_RED_COLOR_POS, DCR_RED_COLOR_NEG); 190 } 191 192 if (MinBadQF > 0.0) strextend (&command, "-min-bad-psfqf %f", MinBadQF); 193 if (MaxMeanOffset != 10.0) strextend (&command, "-max-mean-offset %f", MaxMeanOffset); 194 194 195 195 if (TimeSelect) { 196 196 char *tstart = ohana_sec_to_date (TSTART); 197 197 char *tstop = ohana_sec_to_date (TSTOP); 198 strextend ( command, "-time %s %s", tstart, tstop);198 strextend (&command, "-time %s %s", tstart, tstop); 199 199 free (tstart); 200 200 free (tstop); … … 270 270 // MaxDensityUse, MaxDensityValue 271 271 272 char command[1024];273 s nprintf (command, 1024, "relastro_client -update-offsets -hostID %d -D CATDIR %s -hostdir %s -region %f %f %f %f -statmode %s -minerror %f",272 char *command = NULL; 273 strextend (&command, "relastro_client -update-offsets -hostID %d -D CATDIR %s -hostdir %s -region %f %f %f %f -statmode %s -minerror %f", 274 274 table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax, STATMODE, MIN_ERROR); 275 275 276 if (FIT_MODE == FIT_PM_ONLY) strextend ( command, "-pm");277 if (FIT_MODE == FIT_PAR_ONLY) strextend ( command, "-par");278 if (FIT_MODE == FIT_PM_AND_PAR) strextend ( command, "-pmpar");279 280 if (VERBOSE) strextend ( command, "-v");281 if (VERBOSE2) strextend ( command, "-vv");282 if (RESET) strextend ( command, "-reset");283 if (UPDATE) strextend ( command, "-update");284 285 if (RESET_BAD_IMAGES) strextend ( command, "-reset-bad-images");286 287 if (ImagSelect) strextend ( command, "-instmag %f %f", ImagMin, ImagMax);288 if (MaxDensityUse) strextend ( command, "-max-density %f", MaxDensityValue);289 290 if (USE_BASIC_CHECK) strextend ( command, "-basic-image-search");291 if (FlagOutlier) strextend ( command, "-clip %d", CLIP_THRESH);292 if (ExcludeBogus) strextend ( command, "-exclude-bogus %f", ExcludeBogusRadius);293 294 if (USE_FIXED_PIXCOORDS) strextend ( command, "-D USE_FIXED_PIXCOORDS 1");295 296 if (PHOTCODE_KEEP_LIST) strextend ( command, "+photcode %s", PHOTCODE_KEEP_LIST);297 if (PHOTCODE_SKIP_LIST) strextend ( command, "-photcode %s", PHOTCODE_SKIP_LIST);298 if (PhotFlagSelect) strextend ( command, "+photflags");299 if (PhotFlagBad) strextend ( command, "+photflagbad %d", PhotFlagBad);300 if (PhotFlagPoor) strextend ( command, "+photflagpoor %d", PhotFlagPoor);276 if (FIT_MODE == FIT_PM_ONLY) strextend (&command, "-pm"); 277 if (FIT_MODE == FIT_PAR_ONLY) strextend (&command, "-par"); 278 if (FIT_MODE == FIT_PM_AND_PAR) strextend (&command, "-pmpar"); 279 280 if (VERBOSE) strextend (&command, "-v"); 281 if (VERBOSE2) strextend (&command, "-vv"); 282 if (RESET) strextend (&command, "-reset"); 283 if (UPDATE) strextend (&command, "-update"); 284 285 if (RESET_BAD_IMAGES) strextend (&command, "-reset-bad-images"); 286 287 if (ImagSelect) strextend (&command, "-instmag %f %f", ImagMin, ImagMax); 288 if (MaxDensityUse) strextend (&command, "-max-density %f", MaxDensityValue); 289 290 if (USE_BASIC_CHECK) strextend (&command, "-basic-image-search"); 291 if (FlagOutlier) strextend (&command, "-clip %d", CLIP_THRESH); 292 if (ExcludeBogus) strextend (&command, "-exclude-bogus %f", ExcludeBogusRadius); 293 294 if (USE_FIXED_PIXCOORDS) strextend (&command, "-D USE_FIXED_PIXCOORDS 1"); 295 296 if (PHOTCODE_KEEP_LIST) strextend (&command, "+photcode %s", PHOTCODE_KEEP_LIST); 297 if (PHOTCODE_SKIP_LIST) strextend (&command, "-photcode %s", PHOTCODE_SKIP_LIST); 298 if (PhotFlagSelect) strextend (&command, "+photflags"); 299 if (PhotFlagBad) strextend (&command, "+photflagbad %d", PhotFlagBad); 300 if (PhotFlagPoor) strextend (&command, "+photflagpoor %d", PhotFlagPoor); 301 301 // XXX note that the above pass in the flag as decimal -- also note that args.c cannot handle 0xHEX values 302 302 303 303 if (DCR_BLUE_COLOR_POS && DCR_BLUE_COLOR_NEG) { 304 strextend ( command, "-dcr-blue-color %s %s", DCR_BLUE_COLOR_POS, DCR_BLUE_COLOR_NEG);304 strextend (&command, "-dcr-blue-color %s %s", DCR_BLUE_COLOR_POS, DCR_BLUE_COLOR_NEG); 305 305 } 306 306 if (DCR_RED_COLOR_POS && DCR_RED_COLOR_NEG) { 307 strextend ( command, "-dcr-red-color %s %s", DCR_RED_COLOR_POS, DCR_RED_COLOR_NEG);308 } 309 310 if (MinBadQF > 0.0) strextend ( command, "-min-bad-psfqf %f", MinBadQF);311 if (MaxMeanOffset != 10.0) strextend ( command, "-max-mean-offset %f", MaxMeanOffset);307 strextend (&command, "-dcr-red-color %s %s", DCR_RED_COLOR_POS, DCR_RED_COLOR_NEG); 308 } 309 310 if (MinBadQF > 0.0) strextend (&command, "-min-bad-psfqf %f", MinBadQF); 311 if (MaxMeanOffset != 10.0) strextend (&command, "-max-mean-offset %f", MaxMeanOffset); 312 312 313 313 if (TimeSelect) { 314 314 char *tstart = ohana_sec_to_date (TSTART); 315 315 char *tstop = ohana_sec_to_date (TSTOP); 316 strextend ( command, "-time %s %s", tstart, tstop);316 strextend (&command, "-time %s %s", tstart, tstop); 317 317 free (tstart); 318 318 free (tstop);
Note:
See TracChangeset
for help on using the changeset viewer.
