IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 14, 2018, 2:27:25 PM (8 years ago)
Author:
eugene
Message:

add avperiodogram function; fix sorts to put NAN at one end; fix impeaks and findrowpeaks to ignore NAN values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/impeaks.c

    r36679 r40398  
    100100  int Npeaks = 0;
    101101  for (ix = 1; ix < Nx - 1; ix++) {
     102    if (!isfinite(row[ix])) continue; // ignore NAN values
    102103    if (row[ix] <  threshold) continue;   // only accept pixels above threshold
    103104    if (row[ix] <  row[ix - 1]) continue; // peak pixel must be at least preceeding pixel
Note: See TracChangeset for help on using the changeset viewer.