Changeset 40259 for branches/eam_branches/ohana.20170822
- Timestamp:
- Dec 7, 2017, 10:29:25 PM (9 years ago)
- Location:
- branches/eam_branches/ohana.20170822/src/relphot
- Files:
-
- 5 edited
-
include/relphot.h (modified) (1 diff)
-
src/ImageOps.c (modified) (1 diff)
-
src/relphot_images.c (modified) (2 diffs)
-
src/relphot_parallel_images.c (modified) (1 diff)
-
src/relphot_parallel_regions.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20170822/src/relphot/include/relphot.h
r40235 r40259 407 407 int findMosaics PROTO((Catalog *catalog, int Ncatalog, int doMosaicList)); 408 408 409 void clearImages (void); 409 410 void checkImages (char *name); 410 411 int dumpMags (FILE *fout, Catalog *catalog, int Ncatalog); -
branches/eam_branches/ohana.20170822/src/relphot/src/ImageOps.c
r40239 r40259 1161 1161 } 1162 1162 1163 void clearImages (void) { 1164 image = NULL; 1165 } 1166 1163 1167 void checkImages (char *name) { 1164 1168 1165 1169 off_t i; 1166 1170 fprintf (stderr, "--- %s ---\n", name); 1171 1172 OhanaMemblock *ref = (OhanaMemblock *) image - 1; 1173 fprintf (stderr, "file: %s\n", ref->file); 1174 1175 fprintf (stderr, "0x%08llx \n", (unsigned long long) image); 1176 1167 1177 for (i = 0; i < Nimage; i++) { 1168 1178 fprintf (stderr, "%s : 0x%08x : %6.3f %6.3f\n", image[i].name, image[i].flags, image[i].McalPSF, image[i].McalAPER); -
branches/eam_branches/ohana.20170822/src/relphot/src/relphot_images.c
r40246 r40259 228 228 // ensure the db format is updated 229 229 dbX.format = dvo_catalog_catformat (UPDATE_CATFORMAT); 230 gfits_modify (&dbX.header, "FORMAT", "%s", 1, UPDATE_CATFORMAT); 231 230 232 char photcodeFile[1024]; 231 233 sprintf (photcodeFile, "%s/Photcodes.dat", CATDIR); … … 272 274 // ensure the db format is updated 273 275 db.format = dvo_catalog_catformat (UPDATE_CATFORMAT); 276 gfits_modify (&db.header, "FORMAT", "%s", 1, UPDATE_CATFORMAT); 274 277 } 275 278 if (CALIBRATE_STACKS_AND_WARPS || (NLOOP > 0)) { -
branches/eam_branches/ohana.20170822/src/relphot/src/relphot_parallel_images.c
r40246 r40259 170 170 freeGridBins (Ncatalog); 171 171 freeImages((char *)image); 172 free (image); 172 173 173 174 SkyListFree(skylist); -
branches/eam_branches/ohana.20170822/src/relphot/src/relphot_parallel_regions.c
r39643 r40259 84 84 85 85 // save the changes to the image parameters 86 dvo_image_save (&db, VERBOSE); // this function modifies the db.ftable.buffer: do not free stored Image table 86 dvo_image_save (&db, VERBOSE); 87 88 // dvo_image_save frees db.ftable.buffer (== image) and replaces it: do not free stored Image table 89 clearImages (); 90 87 91 dvo_image_unlock (&db); 88 92 MARKTIME ("finished relphot -parallel-regions: %f sec total\n", dtime);
Note:
See TracChangeset
for help on using the changeset viewer.
