Changeset 13529
- Timestamp:
- May 25, 2007, 5:09:39 PM (19 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 3 edited
-
psphotLoadPSF.c (modified) (1 diff)
-
psphotMakeResiduals.c (modified) (1 diff)
-
psphotReadoutCleanup.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotLoadPSF.c
r13416 r13529 16 16 17 17 if (!psphotPSFstats (readout, recipe, psf)) psAbort("cannot measure PSF shape terms"); 18 19 psLogMsg ("psphot", 3, "using externally supplied PSF model for this readout"); 20 21 // we return a psf which can be free (and which may be removed from the metadata) 22 psMemIncrRefCounter (psf); 18 23 return psf; 19 24 } -
trunk/psphot/src/psphotMakeResiduals.c
r13408 r13529 12 12 13 13 int SPATIAL_ORDER = psMetadataLookupS32(&status, recipe, "PSF.RESIDUALS.SPATIAL_ORDER"); 14 #if 0 // True when PSF.RESIDUALS.SPATIAL_ORDER's in default recipe 15 PS_ASSERT (status, false); 16 #else 17 if (!status) { 18 SPATIAL_ORDER = 1; // i.e. linear 19 } 20 #endif 14 PS_ASSERT (status, false); 21 15 if (SPATIAL_ORDER != 0 && SPATIAL_ORDER != 1) { 22 16 psError(PSPHOT_ERR_CONFIG, true, "PSF.RESIDUALS.SPATIAL_ORDER must be 0 or 1 (not %d)", -
trunk/psphot/src/psphotReadoutCleanup.c
r13008 r13529 40 40 } 41 41 if (psf) { 42 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.PSF", PS_DATA_UNKNOWN, "psphot psf", psf); 42 // save the psf for possible output. if there was already an entry, it was loaded from external sources 43 // the new one may have been updated or modified, so replace the existing entry 44 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.PSF", PS_DATA_UNKNOWN | PS_META_REPLACE, "psphot psf", psf); 43 45 } 44 46 … … 48 50 pmFPAfileDropInternal (config->files, "PSPHOT.BACKGND"); 49 51 50 if (psErrorCodeLast() != PS_ERR_NONE) abort(); 52 if (psErrorCodeLast() != PS_ERR_NONE) { 53 psErrorStackPrint(stderr, "unexpected remaining errors"); 54 abort(); 55 } 51 56 52 57 // XXX move this to top of loop
Note:
See TracChangeset
for help on using the changeset viewer.
