IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38715


Ignore:
Timestamp:
Sep 7, 2015, 3:45:11 PM (11 years ago)
Author:
eugene
Message:

test for df existence before applying

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150625/Ohana/src/libdvo/src/AstromOffsetMapOps.c

    r38698 r38715  
    405405    // data value & weight for this point
    406406    if (!isfinite(f[i])) continue;
    407     if (!isfinite(df[i])) continue;
    408     if (df[i] == 0.0) continue;
     407    if (df && !isfinite(df[i])) continue;
     408    if (df && df[i] == 0.0) continue;
    409409
    410410    // if (mask && (mask[i] & maskValue)) continue;
     
    421421    int N = Nvalue[I];
    422422    values[I][N] = f[i];
    423     dvalues[I][N] = df[i];
     423    dvalues[I][N] = df ? df[i] : 1.0;
    424424    Nvalue[I] ++;
    425425  }   
Note: See TracChangeset for help on using the changeset viewer.