IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 25, 2021, 2:20:42 PM (5 years ago)
Author:
eugene
Message:

psf trend was having integer truncation in the order division

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20211108/psModules/src/objects/pmPSFtryModel.c

    r36856 r41967  
    151151        if (Nx > Ny) {
    152152            options->psfTrendNx = i;
    153             options->psfTrendNy = PS_MAX (orderMin, (int)(i * (Ny / Nx) + 0.5));
     153            options->psfTrendNy = PS_MAX (orderMin, (int)(i * (Ny / (float) Nx) + 0.5));
    154154        } else {
    155155            options->psfTrendNy = i;
    156             options->psfTrendNx = PS_MAX (orderMin, (int)(i * (Nx / Ny) + 0.5));
    157         }
     156            options->psfTrendNx = PS_MAX (orderMin, (int)(i * (Nx / (float) Ny) + 0.5));
     157        }
     158
     159        fprintf (stderr, "fitting %d x %d model for PSF\n", options->psfTrendNx, options->psfTrendNy);
    158160
    159161        // free existing data, if any
Note: See TracChangeset for help on using the changeset viewer.