Changeset 38497
- Timestamp:
- Jun 19, 2015, 9:03:41 AM (11 years ago)
- Location:
- branches/eam_branches/ipp-20150616/Ohana/src/dvomerge
- Files:
-
- 4 edited
-
include/dvomerge.h (modified) (1 diff)
-
src/dvo_image_merge_dbs.c (modified) (1 diff)
-
src/dvomergeImageIDs.c (modified) (2 diffs)
-
src/dvomergeUpdate.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150616/Ohana/src/dvomerge/include/dvomerge.h
r38468 r38497 174 174 off_t dvo_map_image_ID PROTO((IDmapType *IDmap, off_t oldID)); 175 175 int dvo_update_image_IDs PROTO((IDmapType *IDmap, Catalog *catalog)); 176 void dvo_image_map_free PROTO((IDmapType *IDmap)); 176 177 177 178 // dvorepair prototypes -
branches/eam_branches/ipp-20150616/Ohana/src/dvomerge/src/dvo_image_merge_dbs.c
r38441 r38497 5 5 void SortTgtByTimes (e_time *S, off_t *I, short *C, off_t N); 6 6 off_t getTgtIndex (e_time start, e_time stop, short photcode, off_t *TgtIndex, e_time *TgtTimes, short *TgtCodes, off_t NimagesTgt); 7 8 void dvo_image_map_free (IDmapType *IDmap) { 9 // we don't own the IDmap, just the elements 10 free (IDmap->old); 11 free (IDmap->old); 12 free (IDmap->notFound); 13 } 7 14 8 15 // we have two tables; 'tgt' contains some exposures from 'src' : find them and match a map -
branches/eam_branches/ipp-20150616/Ohana/src/dvomerge/src/dvomergeImageIDs.c
r38441 r38497 81 81 dvo_image_unlock (&outDB); // unlock output 82 82 83 gfits_db_free (inDB); 84 gfits_db_free (outDB); 85 83 86 return TRUE; 84 87 } … … 136 139 dvo_image_match_dbs(IDmap, &outDB, &inDB); 137 140 141 gfits_db_free (inDB); 142 gfits_db_free (outDB); 143 138 144 return TRUE; 139 145 } -
branches/eam_branches/ipp-20150616/Ohana/src/dvomerge/src/dvomergeUpdate.c
r38468 r38497 112 112 113 113 int status = dvomergeUpdate_catalogs (input, output, outsky, inlist, NsecfiltInput, NsecfiltOutput, &IDmap, secfiltMap); 114 dvo_image_map_free (&IDmap); 114 115 115 116 // save the output sky table copy … … 121 122 } 122 123 124 ohana_memcheck (TRUE); 125 123 126 if (!status) { 124 127 MARKTIME ("ERROR: elapsed time %9.4f sec\n", dtime);
Note:
See TracChangeset
for help on using the changeset viewer.
