IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 29, 2019, 5:10:03 AM (7 years ago)
Author:
eugene
Message:

progress on deimos

File:
1 edited

Legend:

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

    r40642 r40655  
    3737  ALLOCATE (kernel, float, Nx*Ny);
    3838  Nkernel_pix = Nx*Ny;
    39   fprintf (stderr, "allocating %d pixels (%d,%d)\n", Nkernel_pix, Nx, Ny);
     39  // fprintf (stderr, "allocating %d pixels (%d,%d)\n", Nkernel_pix, Nx, Ny);
    4040
    4141  // XXX use Xref not Nx/2?
     
    5353    int pix;
    5454    pix = ix + (dyi + Nkernel_y2 + 0)*Nx;
    55     fprintf (stderr, "%d, %d, %d -- ", ix, (dyi + Nkernel_y2 + 0), pix);
     55    // fprintf (stderr, "%d, %d, %d -- ", ix, (dyi + Nkernel_y2 + 0), pix);
    5656    myAssert (pix < Nkernel_pix, "oops (make_kernel 1)");
    5757    kernel[pix] = 1.0 - dyf;
    5858
    5959    pix = ix + (dyi + Nkernel_y2 + 1)*Nx;
    60     fprintf (stderr, "%d, %d, %d -- ", ix, (dyi + Nkernel_y2 + 1), pix);
     60    // fprintf (stderr, "%d, %d, %d -- ", ix, (dyi + Nkernel_y2 + 1), pix);
    6161    myAssert (pix < Nkernel_pix, "oops (make_kernel 2)");
    6262    kernel[pix] = dyf;
    63     fprintf (stderr, ": %f %f\n", kernel[ix + (dyi + Nkernel_y2 + 0)*Nx], kernel[ix + (dyi + Nkernel_y2 + 1)*Nx]);
     63    // fprintf (stderr, ": %f %f\n", kernel[ix + (dyi + Nkernel_y2 + 0)*Nx], kernel[ix + (dyi + Nkernel_y2 + 1)*Nx]);
    6464  }
    6565}
     
    8585
    8686// generate a subimage of the full model for the range row - row + Ny
    87 // obj,sky,bck are vectors of the full length of the model (ie, not sub-vectors)
     87// obj,sky,bck are subset vectors corresponding to the range row to row+Ny
    8888float *deimos_make_model (opihi_flt *obj, opihi_flt *sky, opihi_flt *bck, Vector *psf, Vector *profile, Spline *trace, int Nx, int Ny, int row) {
    8989
Note: See TracChangeset for help on using the changeset viewer.