Changeset 24557 for branches/eam_branches/20090522/pswarp/src/pswarpLoop.c
- Timestamp:
- Jun 25, 2009, 2:00:56 PM (17 years ago)
- Location:
- branches/eam_branches/20090522
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
pswarp/src/pswarpLoop.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090522
- Property svn:mergeinfo changed
-
branches/eam_branches/20090522/pswarp/src/pswarpLoop.c
r23753 r24557 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.
