Changeset 38441 for trunk/Ohana/src/uniphot/src/update_dvo_setphot.c
- Timestamp:
- Jun 12, 2015, 6:18:23 PM (11 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/uniphot/src/update_dvo_setphot.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
Property svn:mergeinfo
set to
/branches/eam_branches/ohana.20150429 merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Ohana/src/uniphot/src/update_dvo_setphot.c
r38263 r38441 54 54 catalog.catformat = DVO_FORMAT_UNDEF; // not needed since we skip empty catalogs 55 55 catalog.catmode = DVO_MODE_UNDEF; // not needed since we skip empty catalogs 56 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;56 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 57 57 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 58 58 … … 61 61 exit (1); 62 62 } 63 if (!catalog.Nave s_disk) {63 if (!catalog.Naverage_disk) { 64 64 if (VERBOSE) fprintf (stderr, "no data in %s, skipping\n", catalog.filename); 65 65 dvo_catalog_unlock (&catalog); … … 110 110 table->hosts[i].pathname = tmppath; 111 111 112 char command[1024];113 s nprintf (command, 1024, "setphot_client -hostID %d -catdir %s -hostdir %s -images %s -region %f %f %f %f",112 char *command = NULL; 113 strextend (&command, "setphot_client -hostID %d -catdir %s -hostdir %s -images %s -region %f %f %f %f", 114 114 table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, imageFile, 115 115 UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax); 116 116 117 char tmpline[1024]; 118 if (VERBOSE) { snprintf (tmpline, 1024, "%s -v", command); strcpy (command, tmpline); } 119 if (RESET) { snprintf (tmpline, 1024, "%s -reset", command); strcpy (command, tmpline); } 120 if (UPDATE) { snprintf (tmpline, 1024, "%s -update", command); strcpy (command, tmpline); } 121 if (UBERCAL) { snprintf (tmpline, 1024, "%s -ubercal", command); strcpy (command, tmpline); } 117 if (VERBOSE) { strextend (&command, "-v"); } 118 if (RESET) { strextend (&command, "-reset"); } 119 if (UPDATE) { strextend (&command, "-update"); } 120 if (UBERCAL) { strextend (&command, "-ubercal"); } 122 121 123 122 fprintf (stderr, "command: %s\n", command);
Note:
See TracChangeset
for help on using the changeset viewer.
