IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 25, 2008, 4:51:39 PM (18 years ago)
Author:
eugene
Message:

convert opihi vectors to double type, add option for int type as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20081124/Ohana/src/opihi/dvo/paverage.c

    r20820 r20839  
    1010  double Radius, Rmin, Rmax, R, D;
    1111  unsigned IDclip, IDchoice, LimExclude;
    12   float *Xvec, *Yvec, *Zvec;
     12  opihi_flt *Xvec, *Yvec, *Zvec;
    1313  void *Signal;
    1414
     
    9696  Npts = 0;
    9797  NPTS = 1000;
    98   ALLOCATE (Xvec, float, NPTS);
    99   ALLOCATE (Yvec, float, NPTS);
    100   ALLOCATE (Zvec, float, NPTS);
     98  ALLOCATE (Xvec, opihi_flt, NPTS);
     99  ALLOCATE (Yvec, opihi_flt, NPTS);
     100  ALLOCATE (Zvec, opihi_flt, NPTS);
    101101
    102102  // prepare to handle interrupt signals
     
    133133      R = average[i].R;
    134134      D = average[i].D;
    135       status = fRD_to_XY (&Xvec[Npts], &Yvec[Npts], R, D, &graphmode.coords);
     135      status = RD_to_XY (&Xvec[Npts], &Yvec[Npts], R, D, &graphmode.coords);
    136136      if (!status) continue;
    137137      Npts ++;
     
    139139      if (Npts == NPTS - 1) {
    140140          NPTS += 1000;
    141           REALLOCATE (Xvec, float, NPTS);
    142           REALLOCATE (Yvec, float, NPTS);
    143           REALLOCATE (Zvec, float, NPTS);
     141          REALLOCATE (Xvec, opihi_flt, NPTS);
     142          REALLOCATE (Yvec, opihi_flt, NPTS);
     143          REALLOCATE (Zvec, opihi_flt, NPTS);
    144144      }
    145145      if ((Npts > NCHUNK) || (Nloaded >= 25)) {
Note: See TracChangeset for help on using the changeset viewer.