- Timestamp:
- Jan 13, 2016, 4:36:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/delstar/src/delete_duplicate_images.c
r39307 r39313 37 37 38 38 fprintf (stderr, "deleting measures for "OFF_T_FMT" duplicate images in this database\n", Nduplicates); 39 myAbort ("do not attempt to delete detections"); 39 40 40 41 if (!IMAGE_ONLY) { … … 513 514 int length2 = strlen(image[pair2[i]].name); 514 515 515 // names should be of the form: foo.cmf , foo.inv.cmf516 // names should be of the form: foo.cmf[SkyChip.hdr], foo.inv.cmf[SkyChip.hdr] 516 517 valid = (length1 == length2 + 4) || (length1 == length2 - 4); 517 518 if (!valid) continue; 518 519 519 int baselength = MIN(length1, length2) - 4;520 int baselength = MIN(length1, length2) - 17; 520 521 valid = !strncmp (image[pair1[i]].name, image[pair2[i]].name, baselength); 521 522 if (!valid) continue; … … 523 524 valid = TRUE; 524 525 if (length1 > length2) { 525 valid = valid && !strcmp (&image[pair1[i]].name[baselength], ".inv.cmf ");526 valid = valid && !strcmp (&image[pair2[i]].name[baselength], ".cmf ");526 valid = valid && !strcmp (&image[pair1[i]].name[baselength], ".inv.cmf[SkyChip.hdr]"); 527 valid = valid && !strcmp (&image[pair2[i]].name[baselength], ".cmf[SkyChip.hdr]"); 527 528 } else { 528 valid = valid && !strcmp (&image[pair1[i]].name[baselength], ".cmf ");529 valid = valid && !strcmp (&image[pair2[i]].name[baselength], ".inv.cmf ");529 valid = valid && !strcmp (&image[pair1[i]].name[baselength], ".cmf[SkyChip.hdr]"); 530 valid = valid && !strcmp (&image[pair2[i]].name[baselength], ".inv.cmf[SkyChip.hdr]"); 530 531 } 531 532 if (!valid) continue;
Note:
See TracChangeset
for help on using the changeset viewer.
