IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 29, 2019, 4:23:48 PM (7 years ago)
Author:
eugene
Message:

fix some fitting details (slit tilt interpolation)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/mana/deimos_mkmodel.c

    r40655 r40659  
    164164        opihi_flt g = 0.0, s = 0.0;
    165165        for (int n = -Nkernel_y2; n <= Nkernel_y2; n++) {
    166           if (iy + n < 0) continue; // bottom edge of full image
    167           if (iy + n >= Ny) continue; // top edge of full image
     166          if (iy - n < 0) continue; // bottom edge of full image
     167          if (iy - n >= Ny) continue; // top edge of full image
    168168          int pix = ix + (n + Nkernel_y2)*Nx;
    169169          myAssert (pix < Nkernel_pix, "oops (apply_tilt)");
    170           s += kernel[pix]*input[ix + (iy + n)*Nx];
     170          s += kernel[pix]*input[ix + (iy - n)*Nx];
    171171          g += kernel[pix]; // optimization: save g[ix], all should be the same
    172172        }
Note: See TracChangeset for help on using the changeset viewer.