IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 19, 2019, 5:33:23 PM (7 years ago)
Author:
eugene
Message:

avoid NANs; testing fitalt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20190329/src/opihi/mana/deimos_mkobj.c

    r40817 r40838  
    223223      dxr = 1 - dxf;
    224224      Npof += dxi;
     225      // fprintf (stderr, "%d: %f : %d\n", iy, dx, Npof);
    225226      if (VERBOSE && (iy % 200 == 0)) { gprint (GP_ERR, "%d : %f : %d : %f %f\n", iy, dx, dxi, dxf, dxr); }
    226227    }
     
    241242          if (doInterp) {
    242243            if ((n > 0) && (n < NpsfFull)) {
    243               value += objVy*psfV[n]*dxr + objVy*psfV[n-1]*dxf;
     244              if (isfinite(psfV[n]) && isfinite(psfV[n-1])) {
     245                value += objVy*psfV[n]*dxr + objVy*psfV[n-1]*dxf;
     246              }
    244247            }
    245248            if (n == 0) {
    246               value += objVy*psfV[n]*dxr;
     249              if (isfinite(psfV[n])) {
     250                value += objVy*psfV[n]*dxr;
     251              }
    247252            }
    248253          } else {
    249             value += objVy*psfV[n];
     254            if (isfinite(psfV[n])) {
     255              value += objVy*psfV[n];
     256            }
    250257          }
    251258        }
Note: See TracChangeset for help on using the changeset viewer.