IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38661


Ignore:
Timestamp:
Aug 3, 2015, 9:29:52 AM (11 years ago)
Author:
eugene
Message:

dropping the RoffGAL field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/update_catalog_setgalmodel.c

    r37807 r38661  
    1919  // first set the proper motion based on Galactic rotation and solar motion
    2020  for (i = 0; i < catalog[0].Naverage; i++) {
    21 
    22     {
    23       m = average[i].measureOffset;
    24       Measure *measure = &catalog[0].measure[m];
    25       for (j = 0; j < average[i].Nmeasure; j++) {
    26         measure[j].RoffGAL = 0.0; // XXX divide by dcos? project and calculate?
    27         measure[j].DoffGAL = 0.0; // XXX divide by dcos? project and calculate?
    28       }
    29     }
    3021
    3122    if (average[i].Nstarpar == 0) continue;
     
    6354    starpar->uDEC = uD;
    6455
    65     m = average[i].measureOffset;
    66     Measure *measure = &catalog[0].measure[m];
    67 
    68     // use the model uR,uD values to move the expected position based on the reference date;
    69     for (j = 0; j < average[i].Nmeasure; j++) {
    70 
    71       double dtime = (measure[j].t - timeRef) / 86400.0 / 365.25;
    72 
    73       // do not modify the original Xccd,Yccd values
    74       measure[j].RoffGAL = uR * dtime; // XXX divide by dcos? project and calculate?
    75       measure[j].DoffGAL = uD * dtime; // XXX divide by dcos? project and calculate?
    76     }
     56    average[i].uRgal = uR;
     57    average[i].uDgal = uD;
    7758  }
    7859
Note: See TracChangeset for help on using the changeset viewer.