IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42383


Ignore:
Timestamp:
Feb 8, 2023, 11:58:20 AM (3 years ago)
Author:
eugene
Message:

merge from eam_branches/ipp-20220316. add option to include the PSF residual map in the PSF visualization

Location:
trunk/ppViz/src/ppVizPSF
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppViz/src/ppVizPSF/ppVizPSF.h

    r27667 r42383  
    1515    psString outRoot;                   // Output root name
    1616    float minFlux;                      // Minimum flux for sources
     17    bool useResiduals;                  // include PSF residuals in output?
    1718    int size;                           // Size of PSF image
    1819    float x, y;                         // Position of fake source
  • trunk/ppViz/src/ppVizPSF/ppVizPSFArguments.c

    r27667 r42383  
    5555    psMetadataAddF32(arguments, PS_LIST_TAIL, "-x", 0, "x position of fake source [0..1]", NAN);
    5656    psMetadataAddF32(arguments, PS_LIST_TAIL, "-y", 0, "y position of fake source [0..1]", NAN);
     57
     58    psMetadataAddBool(arguments, PS_LIST_TAIL, "-use-resid", 0, "Number of fake sources", false);
     59
    5760    if (argc == 1 || !psArgumentParse(arguments, &argc, argv) || argc != 2) {
    5861        usage(argv[0], arguments, data);
     
    6770    data->x = psMetadataLookupF32(NULL, arguments, "-x");
    6871    data->y = psMetadataLookupF32(NULL, arguments, "-y");
     72
     73    data->useResiduals = psMetadataLookupBool(NULL, arguments, "-use-resid");
     74
    6975    psMetadataAddStr(data->config->arguments, PS_LIST_TAIL, "OUTPUT", 0, "Output root name", data->outRoot);
    7076
  • trunk/ppViz/src/ppVizPSF/ppVizPSFLoop.c

    r36862 r42383  
    157157
    158158                // We have trouble with PSF residuals, so don't use them
    159                 psFree(psf->residuals);
    160                 psf->residuals = NULL;
     159                // XXX EAM 2022.05.02 : re-instating the residuals; what kind of trouble??
     160                // optionally use residuals (if -use-residuals is supplied)
     161                if (!data->useResiduals) {
     162                    fprintf (stderr, "skipping residuals\n");
     163                    psFree(psf->residuals);
     164                    psf->residuals = NULL;
     165                }
    161166                fprintf(stderr,"still here");
    162167                if (sources) {
Note: See TracChangeset for help on using the changeset viewer.