Changeset 31552
- Timestamp:
- May 13, 2011, 2:32:07 PM (15 years ago)
- Location:
- branches/eam_branches/ipp-20110505/Ohana/src/relphot/src
- Files:
-
- 3 edited
-
ImageOps.c (modified) (2 diffs)
-
MosaicOps.c (modified) (4 diffs)
-
relphot.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110505/Ohana/src/relphot/src/ImageOps.c
r31535 r31552 353 353 354 354 liststats (list, dlist, N, &stats); 355 356 float CLOUD_TOLERANCE = 0.01; 355 357 image[i].Mcal = stats.mean; 356 358 image[i].dMcal = stats.error; … … 358 360 image[i].nFitPhotom = N; 359 361 image[i].Xm = 100.0*log10(stats.chisq); 362 363 if (image[i].Mcal < -CLOUD_TOLERANCE) { 364 image[i].Mcal = 0.0; 365 } 360 366 } 361 367 free (list); -
branches/eam_branches/ipp-20110505/Ohana/src/relphot/src/MosaicOps.c
r31535 r31552 197 197 image = getimages (&Nimage, NULL); 198 198 199 // copy the mosaic results to the images. set the mosaic Mcal to 0.0 since we have moved its 200 // impact to the images 199 201 for (i = 0; i < Nmosaic; i++) { 200 202 for (j = 0; j < Nimlist[i]; j++) { 201 203 im = imlist[i][j]; 202 image[im].Mcal = mosaic[i].Mcal;204 image[im].Mcal += mosaic[i].Mcal; 203 205 image[im].dMcal = mosaic[i].dMcal; 204 206 image[im].Xm = mosaic[i].Xm; … … 208 210 image[im].flags |= (mosaic[i].flags & ID_IMAGE_PHOTOM_POOR); 209 211 } 212 mosaic[i].Mcal = 0.0; 210 213 } 211 214 } … … 448 451 liststats (list, dlist, N, &stats); 449 452 if (PoorImages) fprintf (stderr, "Mmos: %f %f %d "OFF_T_FMT"\n", stats.mean, stats.sigma, stats.Nmeas, N); 453 454 float CLOUD_TOLERANCE = 0.01; 450 455 mosaic[i].Mcal = stats.mean; 451 456 mosaic[i].dMcal = stats.error; … … 453 458 mosaic[i].nFitPhotom = N; 454 459 mosaic[i].Xm = 100.0*log10(stats.chisq); 460 461 if (mosaic[i].Mcal < -CLOUD_TOLERANCE) { 462 mosaic[i].Mcal = 0.0; 463 } 455 464 } 456 465 free (list); -
branches/eam_branches/ipp-20110505/Ohana/src/relphot/src/relphot.c
r31535 r31552 123 123 plot_chisq (catalog, Ncatalog); 124 124 } 125 if (i % 6 ==1) rationalize_mosaics (catalog, Ncatalog);125 // if (i < NLOOP - 1) rationalize_mosaics (catalog, Ncatalog); 126 126 // if (i % 6 == 1) rationalize_images (); 127 127 if (i % 6 == 2) clean_measures (catalog, Ncatalog, FALSE);
Note:
See TracChangeset
for help on using the changeset viewer.
