IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37631


Ignore:
Timestamp:
Nov 18, 2014, 8:23:10 PM (12 years ago)
Author:
eugene
Message:

tweaks on the galaxy model

Location:
branches/eam_branches/ipp-20140904/Ohana/src/relastro/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140904/Ohana/src/relastro/src/ImageOps.c

    r37622 r37631  
    814814    ref[i].D = catalog[c].average[n].D;
    815815
    816     // XXX subtract off dR,dD GAL here
     816    // if we are correcting for the Galaxy Motion Model, we assume the mean R,D is at the J2000 epoch position
    817817    if (USE_GALAXY_MODEL) {
    818818      myAssert (!isnan(measure[0].RoffGAL), "oops");
  • branches/eam_branches/ipp-20140904/Ohana/src/relastro/src/UpdateChips.c

    r37606 r37631  
    141141    // apply the modified R,D back to the measures
    142142    setImageRaw (catalog, Ncatalog, i, raw, Nraw, MODE_MOSAIC);
     143    if (USE_GALAXY_MODEL) {
     144      image[i].flags |= ID_IMAGE_ASTROM_GMM;
     145    }
    143146
    144147    saveCenter (image, &Ro[i], &Do[i], i);
  • branches/eam_branches/ipp-20140904/Ohana/src/relastro/src/UpdateObjectOffsets.c

    r37622 r37631  
    5959
    6060    // uses MeasureTiny values, but will also update Measure values when populated
    61     UpdateObjects (&catalog, 1, 0);
     61    // if Galaxy Motion Model correction is active, do not apply at this last stage
     62    UpdateObjects (&catalog, 1, FALSE);
    6263
    6364    free_tiny_values(&catalog);
  • branches/eam_branches/ipp-20140904/Ohana/src/relastro/src/UpdateObjects.c

    r37622 r37631  
    209209    double Di = getMeanD (&measure[k], average, secfilt);
    210210
    211     if (USE_GALAXY_MODEL && (Nloop > 0)) {
     211    // if we are correcting for the Galaxy Motion Model, only should apply it here
     212    // (a) when we are working to correct the images (mean R,D assumed to be at J2000) and
     213    // (b) if we think the measure R,D is already at the image epoch position
     214    if (USE_GALAXY_MODEL && applyGalaxyOffset) {
    212215      Ri -= measure[k].RoffGAL / 3600.0;
    213216      Di -= measure[k].DoffGAL / 3600.0;
  • branches/eam_branches/ipp-20140904/Ohana/src/relastro/src/relastro_images.c

    r37622 r37631  
    7373      for (i = 0; i < NLOOP; i++) {
    7474        // XXX is is really possible that I do not update the measure.R,D on each loop??
    75         UpdateObjects (catalog, Ncatalog, i); // calculate <R>,<D>
     75        UpdateObjects (catalog, Ncatalog, (i > 0)); // calculate <R>,<D>; if (i > 0), apply Galaxy Motion Model (if desired)
    7676        FrameCorrection (catalog, Ncatalog);
    7777        // if (i > 2) FrameCorrection (catalog, Ncatalog);
Note: See TracChangeset for help on using the changeset viewer.