IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 16, 2005, 3:04:36 PM (21 years ago)
Author:
eugene
Message:

moving to internal vs external measure/average: R,D + dR,dD.
NOTE * dR,dD now represent 1.0 arcsec, not 0.01 arcsec.

* all use has been updated to match

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/dvomisc.c

    r3462 r4800  
    1515 
    1616  for (i = 0; i < Naverage; i++) {
    17     A = average[i].R;
    18     D = average[i].D;
     17    A = average[i].R_PS;
     18    D = average[i].D_PS;
    1919    SD =  cos(RAD_DEG*A + zeta)*sin(theta)*cos(RAD_DEG*D) + cos(theta)*sin(RAD_DEG*D);
    2020    CD = sqrt (1 - SD*SD);
     
    2828      RA += 360;
    2929   
    30     average[i].R = RA;
    31     average[i].D = DEC;
     30    average[i].R_PS = RA;
     31    average[i].D_PS = DEC;
    3232  }
    3333
     
    5959    j = (l << 1) + 1;
    6060    while (j <= ir) {
    61       if (j < ir && ave[j].R < ave[j+1].R) j++;
    62       if (tmp.R < ave[j].R) {
     61      if (j < ir && ave[j].R_PS < ave[j+1].R_PS) j++;
     62      if (tmp.R_PS < ave[j].R_PS) {
    6363        ave[i] = ave[j];
    6464        j += (i=j) + 1;
Note: See TracChangeset for help on using the changeset viewer.