Changeset 37807 for trunk/Ohana/src/photdbc/src/copy_images.c
- Timestamp:
- Jan 11, 2015, 2:14:39 PM (12 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/photdbc/src/copy_images.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
- Property svn:mergeinfo changed
-
trunk/Ohana/src/photdbc/src/copy_images.c
r36833 r37807 52 52 } 53 53 54 BuildChipMatch (image, Nimage); 55 // MARKTIME("build chip match: %f sec\n", dtime); 56 57 char mapfile[DVO_MAX_PATH]; 58 snprintf (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR); 59 AstromOffsetTable *table_src = AstromOffsetMapLoad (mapfile, VERBOSE); 60 61 // assign images.coords.offsetMap -> table->map[i] 62 if (table_src) { 63 AstromOffsetTableMatchChips (image, Nimage, table_src); 64 } 65 54 66 subset = select_images (skylist, image, Nimage, &LineNumber, &Nsubset, FALSE); 67 68 if (table_src) { 69 AstromOffsetTable *table_tgt = AstromOffsetTableInit (); 70 71 off_t i; 72 for (i = 0; i < Nsubset; i++) { 73 if (!subset[i].coords.offsetMap) continue; 74 if (subset[i].coords.Npolyterms != -1) continue; // assert on this? 75 AstromOffsetTableAddMapFromImage (table_tgt, &subset[i]); 76 } 77 snprintf (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", outdir); 78 AstromOffsetMapSave (table_tgt, mapfile); 79 free (table_tgt->imageIDtoTableSeq); 80 free (table_tgt->map); 81 free (table_tgt); 82 } 55 83 56 84 dvo_image_addrows (&out, subset, Nsubset); … … 73 101 SavePhotcodesFITS (filename); 74 102 103 // free the astrom offset tables 104 AstromOffsetTableFree (table_src); 105 75 106 return (TRUE); 76 107 }
Note:
See TracChangeset
for help on using the changeset viewer.
