Changeset 42383
- Timestamp:
- Feb 8, 2023, 11:58:20 AM (3 years ago)
- Location:
- trunk/ppViz/src/ppVizPSF
- Files:
-
- 3 edited
-
ppVizPSF.h (modified) (1 diff)
-
ppVizPSFArguments.c (modified) (2 diffs)
-
ppVizPSFLoop.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppViz/src/ppVizPSF/ppVizPSF.h
r27667 r42383 15 15 psString outRoot; // Output root name 16 16 float minFlux; // Minimum flux for sources 17 bool useResiduals; // include PSF residuals in output? 17 18 int size; // Size of PSF image 18 19 float x, y; // Position of fake source -
trunk/ppViz/src/ppVizPSF/ppVizPSFArguments.c
r27667 r42383 55 55 psMetadataAddF32(arguments, PS_LIST_TAIL, "-x", 0, "x position of fake source [0..1]", NAN); 56 56 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 57 60 if (argc == 1 || !psArgumentParse(arguments, &argc, argv) || argc != 2) { 58 61 usage(argv[0], arguments, data); … … 67 70 data->x = psMetadataLookupF32(NULL, arguments, "-x"); 68 71 data->y = psMetadataLookupF32(NULL, arguments, "-y"); 72 73 data->useResiduals = psMetadataLookupBool(NULL, arguments, "-use-resid"); 74 69 75 psMetadataAddStr(data->config->arguments, PS_LIST_TAIL, "OUTPUT", 0, "Output root name", data->outRoot); 70 76 -
trunk/ppViz/src/ppVizPSF/ppVizPSFLoop.c
r36862 r42383 157 157 158 158 // 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 } 161 166 fprintf(stderr,"still here"); 162 167 if (sources) {
Note:
See TracChangeset
for help on using the changeset viewer.
