IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31552


Ignore:
Timestamp:
May 13, 2011, 2:32:07 PM (15 years ago)
Author:
eugene
Message:

squish negative zero point images

Location:
branches/eam_branches/ipp-20110505/Ohana/src/relphot/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110505/Ohana/src/relphot/src/ImageOps.c

    r31535 r31552  
    353353   
    354354    liststats (list, dlist, N, &stats);
     355
     356    float CLOUD_TOLERANCE = 0.01;
    355357    image[i].Mcal  = stats.mean;
    356358    image[i].dMcal = stats.error;
     
    358360    image[i].nFitPhotom = N;
    359361    image[i].Xm    = 100.0*log10(stats.chisq);
     362
     363    if (image[i].Mcal < -CLOUD_TOLERANCE) {
     364      image[i].Mcal = 0.0;
     365    }
    360366  }
    361367  free (list);
  • branches/eam_branches/ipp-20110505/Ohana/src/relphot/src/MosaicOps.c

    r31535 r31552  
    197197  image = getimages (&Nimage, NULL);
    198198
     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
    199201  for (i = 0; i < Nmosaic; i++) {
    200202    for (j = 0; j < Nimlist[i]; j++) {
    201203      im = imlist[i][j];
    202       image[im].Mcal = mosaic[i].Mcal;
     204      image[im].Mcal += mosaic[i].Mcal;
    203205      image[im].dMcal = mosaic[i].dMcal;
    204206      image[im].Xm = mosaic[i].Xm;
     
    208210      image[im].flags |= (mosaic[i].flags & ID_IMAGE_PHOTOM_POOR);
    209211    }
     212    mosaic[i].Mcal = 0.0;
    210213  }     
    211214}
     
    448451    liststats (list, dlist, N, &stats);
    449452    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;
    450455    mosaic[i].Mcal  = stats.mean;
    451456    mosaic[i].dMcal = stats.error;
     
    453458    mosaic[i].nFitPhotom = N;
    454459    mosaic[i].Xm    = 100.0*log10(stats.chisq);
     460
     461    if (mosaic[i].Mcal < -CLOUD_TOLERANCE) {
     462      mosaic[i].Mcal = 0.0;
     463    }
    455464  }
    456465  free (list);
  • branches/eam_branches/ipp-20110505/Ohana/src/relphot/src/relphot.c

    r31535 r31552  
    123123      plot_chisq (catalog, Ncatalog);
    124124    }
    125     if (i % 6 == 1) rationalize_mosaics (catalog, Ncatalog);
     125    // if (i < NLOOP - 1) rationalize_mosaics (catalog, Ncatalog);
    126126    // if (i % 6 == 1) rationalize_images ();
    127127    if (i % 6 == 2) clean_measures (catalog, Ncatalog, FALSE);
Note: See TracChangeset for help on using the changeset viewer.