Changeset 25027 for branches/pap/pswarp/src/pswarpLoop.c
- Timestamp:
- Aug 7, 2009, 4:08:25 PM (17 years ago)
- Location:
- branches/pap
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
pswarp/src/pswarpLoop.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/pswarp/src/pswarpLoop.c
r23753 r25027 79 79 "SKYCELL.CAMERA"); ///< Name of camera for skycell 80 80 pmConfigCamerasCull(config, skyCamera); 81 pmConfigRecipesCull(config, "PSWARP,PPSTATS,PSPHOT, MASKS,JPEG");81 pmConfigRecipesCull(config, "PSWARP,PPSTATS,PSPHOT,PSASTRO,MASKS,JPEG"); 82 82 83 83 … … 297 297 } 298 298 299 // Correct image for change in the plate scale 300 { 301 psAssert(input && input->fpa && input->fpa->toSky, "Require astrometry for input"); 302 psAssert(outFPA && outFPA && outFPA->toSky, "Require astrometry for output"); 303 304 double inScale = input->fpa->toSky->Xs + input->fpa->toSky->Ys; // Plate scale for input 305 double outScale = outFPA->toSky->Xs + outFPA->toSky->Ys; // Plate scale for output 306 float correction = PS_SQR(outScale / inScale); // Correction factor to apply to image 307 psLogMsg("pswarp", PS_LOG_INFO, "Correcting flux by %f to account for pixel scales", correction); 308 309 psBinaryOp(output->image, output->image, "*", psScalarAlloc(correction, PS_TYPE_F32)); 310 if (output->variance) { 311 psBinaryOp(output->variance, output->variance, "*", 312 psScalarAlloc(PS_SQR(correction), PS_TYPE_F32)); 313 } 314 } 315 316 299 317 // Set variance factor 300 318 {
Note:
See TracChangeset
for help on using the changeset viewer.
