IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 18, 2019, 5:02:59 PM (7 years ago)
Author:
eugene
Message:

cleanup opihi sort functions; add deimos fitobj function

File:
1 edited

Legend:

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

    r40291 r40642  
    7171void printPhotcodeSequence (Average *average, SecFilt *secfilt, int entry, int type);
    7272
    73 void sort_index_float (float *X, int *IDX, int N) {
    74 
    75 # define SWAPFUNC(A,B){ float tmp; int itmp;            \
    76     tmp = X[A]; X[A] = X[B]; X[B] = tmp;                \
    77     itmp = IDX[A]; IDX[A] = IDX[B]; IDX[B] = itmp;      \
    78   }
    79 # define COMPARE(A,B)(X[A] < X[B])
    80 
    81   OHANA_SORT (N, COMPARE, SWAPFUNC);
    82 
    83 # undef SWAPFUNC
    84 # undef COMPARE
    85 
    86 }
    87 
    8873int gstar (int argc, char **argv) {
    8974 
     
    712697        }
    713698
    714         sort_index_float (value, index, catalog.average[k].Nmeasure);
     699        sort_float_index (value, index, catalog.average[k].Nmeasure);
    715700
    716701        for (j = 0; j < catalog.average[k].Nmeasure; j++, m++) {
Note: See TracChangeset for help on using the changeset viewer.