IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 17, 2015, 8:39:34 PM (11 years ago)
Author:
eugene
Message:

working on relastro

File:
1 edited

Legend:

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

    r38062 r38599  
    748748    n = measure[0].averef;
    749749
     750    // apply proper-motion from average position to measure epoch:
     751    float dTime = (measure[k].t - catalog[c].average[n].Tmean) / (86400*365.25) ; // time relative to Tmean in years
     752
    750753    /* apply the current image transformation or use the current value of R+dR, D+dD? */
    751754    ref[i].R = catalog[c].average[n].R;
    752755    ref[i].D = catalog[c].average[n].D;
     756   
     757    // XXX do this in a better way?
     758    ref[i].R += dTime * catalog[c].average[n].uR / 3600.0 / cos(ref[i].D*RAD_DEG);
     759    ref[i].D += dTime * catalog[c].average[n].uD / 3600.0;
    753760
    754761    // if we are correcting for the Galaxy Motion Model, we assume the mean R,D is at the J2000 epoch position
Note: See TracChangeset for help on using the changeset viewer.