Changeset 30448
- Timestamp:
- Jan 31, 2011, 2:54:06 PM (15 years ago)
- Location:
- branches/eam_branches/ipp-20101205
- Files:
-
- 7 edited
-
Ohana/src/libdvo/src/dvo_util.c (modified) (3 diffs)
-
Ohana/src/tools/src/roc.c (modified) (9 diffs)
-
dbconfig/changes.txt (modified) (1 diff)
-
dbconfig/pstamp.md (modified) (1 diff)
-
ippconfig/isp/camera.config (modified) (1 diff)
-
ippconfig/recipes/nightly_science.config (modified) (4 diffs)
-
ppStack/src/ppStackConvolve.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/Ohana/src/libdvo/src/dvo_util.c
r27435 r30448 255 255 dvo_catalog_free (&catalog); 256 256 } 257 size_t NInvalidDetID = 0; 257 258 if (Ndetect) { 258 259 dvoDetection *sorted; … … 262 263 off_t i; 263 264 for (i = 0; i < Ndetect; i++) { 264 sorted[detections[i].meas.detID] = detections[i]; 265 266 if (detections[i].meas.detID < 0 || detections[i].meas.detID > (*pMaxDetID + 1)) 267 NInvalidDetID++; 268 else 269 sorted[detections[i].meas.detID] = detections[i]; 265 270 } 266 271 *results = sorted; … … 271 276 FREE(detections); 272 277 278 if (NInvalidDetID) fprintf (stderr, "ERROR: Encountered %ld invalid detection IDs\n", NInvalidDetID); 279 273 280 return (Ndetect); 274 281 -
branches/eam_branches/ipp-20101205/Ohana/src/tools/src/roc.c
r30252 r30448 33 33 34 34 usage(); 35 exit ( 1);35 exit (2); 36 36 } 37 37 38 38 int roc_create (int argc, char **argv) { 39 39 40 int i, j, n, Ninput, result, Nblocks, header_size, size_off, Noff, Nbytes, Nread; 40 int i, j, n, Ninput, result, Nblocks, header_size, size_off; 41 int status, Noff, Nbytes, Nread, Nwrite; 41 42 off_t maxSize, *sizes, *bytes_read; 42 43 char value; … … 124 125 myAssert (target, "failed to open output"); 125 126 126 fwrite (header, 1, header_size, target); 127 Nwrite = fwrite (header, 1, header_size, target); 128 myAssert (Nwrite == header_size, "failed to write header"); 127 129 128 130 ALLOCATE (inputData, char *, Ninput); … … 137 139 Nbytes = fread (inputData[i], 1, Nread, input[i]); 138 140 myAssert (Nbytes == Nread, "failed to read data"); 141 139 142 if (Nread < ROC_BLOCKSIZE) { 140 143 // if we have reached the end of the file, fill in the rest with NULLs … … 152 155 } 153 156 154 fwrite (outputData, 1, ROC_BLOCKSIZE, target); 155 } 157 Nwrite = fwrite (outputData, 1, ROC_BLOCKSIZE, target); 158 myAssert (Nwrite == ROC_BLOCKSIZE, "failed to write data block"); 159 } 160 161 status = fclose (target); 162 myAssert (!status, "failed to close rocfile"); 156 163 157 164 exit (0); … … 160 167 int roc_repair (int argc, char **argv) { 161 168 162 int i, j, n, Ninput, Nblocks, header_size, Nbytes, Nread, Nfile, Nwrite; 169 int i, j, n, Ninput, Nblocks, header_size, Nbytes; 170 int status, Nread, Nfile, Nwrite; 163 171 off_t *sizes, *bytes_read; 164 172 char value; … … 204 212 // read the full header 205 213 fseeko (target, 0, SEEK_SET); 206 fread (header, 1, header_size, target); 214 Nread = fread (header, 1, header_size, target); 215 myAssert (Nread == header_size, "failed to read header"); 207 216 208 217 ptr = header; … … 255 264 Nbytes = fread (inputData[i], 1, Nread, input[i]); 256 265 myAssert (Nbytes == Nread, "failed to read data"); 266 257 267 if (Nread < ROC_BLOCKSIZE) { 258 268 // if we have reached the end of the file, fill in the rest with NULLs … … 261 271 bytes_read[i] += Nread; 262 272 } 263 fread (targetData, 1, ROC_BLOCKSIZE, target); 273 Nread = fread (targetData, 1, ROC_BLOCKSIZE, target); 274 myAssert (Nread == ROC_BLOCKSIZE, "failed to read from target"); 264 275 265 276 for (j = 0; j < ROC_BLOCKSIZE; j++) { … … 281 292 for (i = 0; i < Ninput; i++) { 282 293 if (i == Nfile) continue; 283 fclose(input[i]); 284 } 285 fclose (output); 286 fclose (target); 294 status = fclose(input[i]); 295 myAssert (!status, "failed to close input"); 296 } 297 status = fclose (output); 298 myAssert (!status, "failed to close output file"); 299 300 status = fclose (target); 301 myAssert (!status, "failed to close rocfile"); 287 302 288 303 exit (0); -
branches/eam_branches/ipp-20101205/dbconfig/changes.txt
r30103 r30448 1996 1996 1997 1997 ALTER TABLE rawImfile ADD column video_cells TINYINT AFTER burntool_state; 1998 1999 ALTER TABLE pstampDataStore ADD COLUMN need_magic INT; -
branches/eam_branches/ipp-20101205/dbconfig/pstamp.md
r29287 r30448 8 8 uri STR 255 9 9 pollInterval S32 0 10 need_magic S32 0 10 11 END 11 12 -
branches/eam_branches/ipp-20101205/ippconfig/isp/camera.config
r29902 r30448 78 78 # don't censor any masked pixels when making postage stamps 79 79 MASK.NO.CENSOR U32 4294967295 80 BURNTOOL.STATE.GOOD S16 0 # Value for burntool_state with the most recent bt version. -
branches/eam_branches/ipp-20101205/ippconfig/recipes/nightly_science.config
r30102 r30448 25 25 RETENTION_TIME S16 1 26 26 END 27 CLEAN_MODES METADATA 28 MODE STR BGCHIP 29 COMMAND STR bgtool -dbname @DBNAME@ -updatechip -set_state goto_cleaned -state full -set_label goto_cleaned -label @LABEL@ -data_group @DATA_GROUP@ 30 RETENTION_TIME S16 14 31 END 32 CLEAN_MODES METADATA 33 MODE STR BGWARP 34 COMMAND STR bgtool -dbname @DBNAME@ -updatewarp -set_state goto_cleaned -state full -set_label goto_cleaned -label @LABEL@ -data_group @DATA_GROUP@ 35 RETENTION_TIME S16 14 36 END 37 27 38 28 39 END_OF_NIGHT MULTI … … 93 104 NAME STR MD03 94 105 DISTRIBUTION STR MD03 95 TESS STR MD03 106 TESS STR MD03.V2 96 107 OBSMODE STR MD 97 108 OBJECT STR MD03% … … 115 126 NAME STR MD05 116 127 DISTRIBUTION STR MD05 117 TESS STR MD05 128 TESS STR MD05.V2 118 129 OBSMODE STR MD 119 130 OBJECT STR MD05% … … 212 223 TESS STR RINGS.V0 213 224 OBSMODE STR OSS 225 STACKABLE BOOL FALSE 226 DIFFABLE BOOL TRUE 227 END 228 TARGETS METADATA 229 NAME STR PI 230 DISTRIBUTION STR SweetSpot 231 TESS STR RINGS.V0 232 OBSMODE STR PI 214 233 STACKABLE BOOL FALSE 215 234 DIFFABLE BOOL TRUE -
branches/eam_branches/ipp-20101205/ppStack/src/ppStackConvolve.c
r30228 r30448 113 113 options->inputMask->data.PS_TYPE_VECTOR_MASK_DATA[i] |= PPSTACK_MASK_MATCH; 114 114 psErrorClear(); 115 if (!ppStackFilesIterateUp(config)) { 116 psFree(rng); 117 psFree(fpaList); 118 psFree(cellList); 119 psFree(target); 120 return false; 121 } 115 122 continue; 116 123 }
Note:
See TracChangeset
for help on using the changeset viewer.
