Changeset 36360
- Timestamp:
- Dec 9, 2013, 12:51:46 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
ippScripts/scripts/skycell_jpeg.pl (modified) (2 diffs)
-
ippconfig/recipes/filerules-split.mdc (modified) (1 diff)
-
ppSkycell/src/ppSkycellLoop.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/skycell_jpeg.pl
r35853 r36360 271 271 272 272 my %products = ('image' => "PPSTACK.UNCONV", 273 'mask' => "PPSTACK.UNCONV.MASK",273 # 'mask' => "PPSTACK.UNCONV.MASK", 274 274 'variance' => "PPSTACK.UNCONV.VARIANCE", 275 275 'exp' => "PPSTACK.UNCONV.EXP", … … 327 327 $command .= " -Di BIN1 1 -Di BIN2 1 "; 328 328 } 329 # elsif ($key eq 'image') { 330 # $command .= " -masks $tangents{$projection_cell}{mask}{NAME} "; 331 # } 332 # elsif ($key eq 'mask') { 333 # next; # This should be made with the images. 334 # } 335 else { 336 # Append the image list to other objects, in case the WCS information is unpopulated 337 $command .= " -wcsref $tangents{$projection_cell}{image}{NAME} "; 338 } 329 elsif ($key eq 'image') { 330 $command .= " -exptimeOrder 1 "; 331 } 332 elsif ($key eq 'variance') { 333 $command .= " -exptimeOrder 2 "; 334 } 335 # Append the image list to other objects, in case the WCS information is unpopulated 336 $command .= " -wcsref $tangents{$projection_cell}{image}{NAME} "; 337 339 338 if ($tangents{$projection_cell}{$key}{N} > 0) { 340 339 print "$command\n"; -
trunk/ippconfig/recipes/filerules-split.mdc
r36169 r36360 380 380 PPSKYCELL.JPEG1 OUTPUT {OUTPUT}.0.b1.jpeg JPEG NONE CHIP TRUE NONE 381 381 PPSKYCELL.JPEG2 OUTPUT {OUTPUT}.0.b2.jpeg JPEG NONE CHIP TRUE NONE 382 PPSKYCELL.BIN1 OUTPUT {OUTPUT}.b1.fits IMAGE COMP_IMGFPA TRUE NONE383 PPSKYCELL.BIN2 OUTPUT {OUTPUT}.b2.fits IMAGE COMP_IMGFPA TRUE NONE382 PPSKYCELL.BIN1 OUTPUT {OUTPUT}.b1.fits IMAGE NONE FPA TRUE NONE 383 PPSKYCELL.BIN2 OUTPUT {OUTPUT}.b2.fits IMAGE NONE FPA TRUE NONE 384 384 PPSKYCELL.BIN1.MASK OUTPUT {OUTPUT}.b1.mk.fits MASK COMP_MASK FPA TRUE NONE 385 385 PPSKYCELL.BIN2.MASK OUTPUT {OUTPUT}.b2.mk.fits MASK COMP_MASK FPA TRUE NONE -
trunk/ppSkycell/src/ppSkycellLoop.c
r36357 r36360 158 158 } 159 159 160 psStats *stats = psStatsAlloc(PS_STAT_ROBUST_MEDIAN); 161 psVectorStats(stats,exptimes,NULL, NULL, 0); 160 float exptime_target = 1.0; 161 162 // psStats *stats = psStatsAlloc(PS_STAT_ROBUST_MEDIAN); 163 // psVectorStats(stats,exptimes,NULL, NULL, 0); 164 // exptime_target = stats->robustMedian; 162 165 163 166 pmFPAfileActivate(data->config->files, false, NULL); … … 258 261 259 262 // Scale by exposure time 260 double exptime_factor = pow(exptimes->data.F64[j]/ stats->robustMedian,data->exptimeOrder);263 double exptime_factor = pow(exptimes->data.F64[j]/exptime_target,data->exptimeOrder); 261 264 if ((isfinite(exptime_factor))&&(exptime_factor != 0.0)) { 262 265 psBinaryOp(bin1RO->image,bin1RO->image,"/", … … 424 427 psMetadataItem *item1; 425 428 item1 = psMetadataLookup(Fcell1->concepts,"CELL.EXPOSURE"); 426 item1->data.F32 = stats->robustMedian;429 item1->data.F32 = exptime_target; 427 430 428 431 pmReadout *Fro1 = pmReadoutAlloc(Fcell1); … … 474 477 475 478 psMetadataItem *item2 = psMetadataLookup(Fcell2->concepts,"CELL.EXPOSURE"); 476 item2->data.F32 = stats->robustMedian;479 item2->data.F32 = exptime_target; 477 480 478 481 pmReadout *Fro2 = pmReadoutAlloc(Fcell2);
Note:
See TracChangeset
for help on using the changeset viewer.
