Changeset 33690
- Timestamp:
- Apr 3, 2012, 5:46:39 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 21 edited
-
ippScripts/scripts/staticsky.pl (modified) (8 diffs)
-
ippconfig/recipes/filerules-split.mdc (modified) (2 diffs)
-
psModules/src/camera/Makefile.am (modified) (2 diffs)
-
psModules/src/camera/pmFPAExpNumIO.c (added)
-
psModules/src/camera/pmFPAExpNumIO.h (added)
-
psModules/src/camera/pmFPAfile.c (modified) (2 diffs)
-
psModules/src/camera/pmFPAfile.h (modified) (1 diff)
-
psModules/src/camera/pmFPAfileIO.c (modified) (8 diffs)
-
psModules/src/objects/pmSource.c (modified) (1 diff)
-
psModules/src/objects/pmSource.h (modified) (1 diff)
-
psModules/src/objects/pmSourceIO_CMF_PS1_DV1.c (modified) (2 diffs)
-
psModules/src/objects/pmSourceIO_CMF_PS1_DV2.c (modified) (2 diffs)
-
psModules/src/objects/pmSourceIO_CMF_PS1_SV1.c (modified) (2 diffs)
-
psModules/src/objects/pmSourceOutputs.c (modified) (2 diffs)
-
psModules/src/objects/pmSourceOutputs.h (modified) (1 diff)
-
psphot/src/Makefile.am (modified) (1 diff)
-
psphot/src/psphot.h (modified) (1 diff)
-
psphot/src/psphotArguments.c (modified) (1 diff)
-
psphot/src/psphotKronIterate.c (modified) (2 diffs)
-
psphot/src/psphotParseCamera.c (modified) (2 diffs)
-
psphot/src/psphotSetNFrames.c (added)
-
psphot/src/psphotStackArguments.c (modified) (1 diff)
-
psphot/src/psphotStackImageLoop.c (modified) (3 diffs)
-
psphot/src/psphotStackParseCamera.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/staticsky.pl
r31662 r33690 89 89 90 90 my $logDest = $ipprc->filename("LOG.EXP", $outroot); 91 $ipprc->redirect_ output($logDest) or my_die( "Unable to redirect output", $sky_id, $PS_EXIT_SYS_ERROR ) if $redirect;91 $ipprc->redirect_to_logfile($logDest) or my_die( "Unable to redirect output", $sky_id, $PS_EXIT_SYS_ERROR ) if $redirect; 92 92 93 93 my $traceDest = $ipprc->filename("TRACE.EXP", $outroot); … … 148 148 my $maskCnv = $ipprc->filename("PPSTACK.OUTPUT.MASK", $path_base ); # Mask name 149 149 my $weightCnv = $ipprc->filename("PPSTACK.OUTPUT.VARIANCE", $path_base ); # Weight name 150 my $expnumCnv = $ipprc->filename("PPSTACK.OUTPUT.EXPNUM", $path_base ); # Expnum name 150 151 151 152 my $imageRaw = $ipprc->filename("PPSTACK.UNCONV", $path_base ); # Image name 152 153 my $maskRaw = $ipprc->filename("PPSTACK.UNCONV.MASK", $path_base ); # Mask name 153 154 my $weightRaw = $ipprc->filename("PPSTACK.UNCONV.VARIANCE", $path_base ); # Weight name 155 my $expnumRaw = $ipprc->filename("PPSTACK.UNCONV.EXPNUM", $path_base ); # Expnum name 154 156 155 157 my $sources = $ipprc->filename("PSPHOT.OUT.CMF.MEF", $path_base ); # Sources name … … 162 164 &my_die("Couldn't find input: $maskRaw", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$maskRaw"); 163 165 &my_die("Couldn't find input: $weightRaw", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$weightRaw"); 166 &my_die("Couldn't find input: $expnumRaw", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$expnumRaw"); 164 167 &my_die("Couldn't find input: $imageCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$imageCnv"); 165 168 &my_die("Couldn't find input: $maskCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$maskCnv"); 166 169 &my_die("Couldn't find input: $weightCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$weightCnv"); 170 &my_die("Couldn't find input: $expnumCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$expnumCnv"); 167 171 &my_die("Couldn't find input: $psfCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$psfCnv"); 168 172 &my_die("Couldn't find input: $sources", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$sources"); … … 171 175 print $listFile " RAW:MASK STR " . $maskRaw . "\n"; 172 176 print $listFile " RAW:VARIANCE STR " . $weightRaw . "\n"; 177 print $listFile " RAW:EXPNUM STR " . $expnumRaw . "\n"; 173 178 174 179 print $listFile " CNV:IMAGE STR " . $imageCnv . "\n"; 175 180 print $listFile " CNV:MASK STR " . $maskCnv . "\n"; 176 181 print $listFile " CNV:VARIANCE STR " . $weightCnv . "\n"; 182 print $listFile " CNV:EXPNUM STR " . $expnumCnv . "\n"; 177 183 print $listFile " CNV:PSF STR " . $psfCnv . "\n"; 178 184 … … 288 294 my $use_raw = metadataLookupBool($recipeData, 'PSPHOT.STACK.USE.RAW'); 289 295 290 my ($image, $mask, $variance );296 my ($image, $mask, $variance, $expnum); 291 297 if ($use_raw) { 292 298 $image = $ipprc->filename("PPSTACK.UNCONV", $path_base ); # Image name … … 297 303 $mask = $ipprc->filename("PPSTACK.OUTPUT.MASK", $path_base ); # Mask name 298 304 $variance = $ipprc->filename("PPSTACK.OUTPUT.VARIANCE", $path_base ); # Weight name 305 $expnum = $ipprc->filename("PPSTACK.OUTPUT.EXPNUM", $path_base ); # Weight name 299 306 } 300 307 … … 306 313 &my_die("Couldn't find input: $mask", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$mask"); 307 314 &my_die("Couldn't find input: $variance", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$variance"); 315 &my_die("Couldn't find input: $expnum", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$expnum"); 308 316 309 317 # Perform stack photometry analysis … … 313 321 $command .= " -mask $mask"; 314 322 $command .= " -variance $variance"; 323 $command .= " -expnum $expnum"; 315 324 $command .= " -threads $threads" if defined $threads; 316 325 $command .= " -recipe PSPHOT $recipe_psphot"; -
trunk/ippconfig/recipes/filerules-split.mdc
r33636 r33690 74 74 PSPHOT.INPUT.CMF INPUT @FILES CHIP CMF 75 75 PSPHOT.INPUT.TEXT INPUT @FILES CHIP SRCTEXT 76 PSPHOT.EXPNUM INPUT @FILES CHIP MASK76 PSPHOT.EXPNUM INPUT @FILES CHIP EXPNUM 77 77 78 78 ## files used by psphotStack … … 80 80 PSPHOT.STACK.MASK.RAW INPUT @FILES CHIP MASK 81 81 PSPHOT.STACK.VARIANCE.RAW INPUT @FILES CHIP VARIANCE 82 PSPHOT.STACK.EXPNUM.RAW INPUT @FILES CHIP EXPNUM 82 83 PSPHOT.STACK.PSF.RAW INPUT @FILES CHIP PSF 83 84 PSPHOT.STACK.INPUT.CNV INPUT @FILES CHIP IMAGE 84 85 PSPHOT.STACK.MASK.CNV INPUT @FILES CHIP MASK 85 86 PSPHOT.STACK.VARIANCE.CNV INPUT @FILES CHIP VARIANCE 87 PSPHOT.STACK.EXPNUM.CNV INPUT @FILES CHIP EXPNUM 86 88 PSPHOT.STACK.PSF.CNV INPUT @FILES CHIP PSF 87 89 PSPHOT.STACK.SOURCES INPUT @FILES FPA CMF -
trunk/psModules/src/camera/Makefile.am
r24836 r33690 30 30 pmReadoutStack.c \ 31 31 pmReadoutFake.c \ 32 pmFPABin.c 32 pmFPABin.c \ 33 pmFPAExpNumIO.c 33 34 34 35 pkginclude_HEADERS = \ … … 59 60 pmReadoutStack.h \ 60 61 pmReadoutFake.h \ 61 pmFPABin.h 62 pmFPABin.h \ 63 pmFPAExpNumIO.h 62 64 63 65 CLEANFILES = *~ -
trunk/psModules/src/camera/pmFPAfile.c
r31671 r33690 543 543 if (!strcasecmp(type, "PATTERN")) { 544 544 return PM_FPA_FILE_PATTERN; 545 } 546 if (!strcasecmp(type, "EXPNUM")) { 547 return PM_FPA_FILE_EXPNUM; 545 548 } 546 549 … … 589 592 case PM_FPA_FILE_PATTERN: 590 593 return "PATTERN"; 594 case PM_FPA_FILE_EXPNUM: 595 return "EXPNUM"; 591 596 default: 592 597 return ("NONE"); -
trunk/psModules/src/camera/pmFPAfile.h
r29833 r33690 51 51 PM_FPA_FILE_PATTERN, 52 52 PM_FPA_FILE_LINEARITY, 53 PM_FPA_FILE_EXPNUM, 53 54 } pmFPAfileType; 54 55 -
trunk/psModules/src/camera/pmFPAfileIO.c
r29935 r33690 53 53 #include "pmSubtractionIO.h" 54 54 #include "pmPatternIO.h" 55 #include "pmFPAExpNumIO.h" 55 56 #include "pmConcepts.h" 56 57 #include "pmConfigRun.h" … … 231 232 status = pmAstromModelReadForView (view, file, config); 232 233 break; 234 case PM_FPA_FILE_EXPNUM: 235 status = pmExpNumRead(view, file, config); 236 break; 233 237 case PM_FPA_FILE_ASTROM_REFSTARS: 234 238 case PM_FPA_FILE_JPEG: … … 291 295 case PM_FPA_FILE_DARK: 292 296 case PM_FPA_FILE_PATTERN: 297 case PM_FPA_FILE_EXPNUM: 293 298 { 294 299 // create FPA structure component based on view … … 500 505 status = pmFPAviewWriteSourcePlot (view, file, config); 501 506 break; 507 508 case PM_FPA_FILE_EXPNUM: 509 // when ppStack output's EXPNUM file it uses a file rule where the file type is MASK 510 psError(PS_ERR_IO, true, "cannot write type EXPNUM (%s)", file->name); 511 return false; 502 512 503 513 case PM_FPA_FILE_WCS: … … 562 572 case PM_FPA_FILE_ASTROM_REFSTARS: 563 573 case PM_FPA_FILE_LINEARITY: 574 case PM_FPA_FILE_EXPNUM: 564 575 psTrace ("psModules.camera", 5, "closing %s (%s) (%d:%d:%d)\n", file->filename, file->name, view->chip, view->cell, view->readout); 565 576 status = psFitsClose (file->fits); … … 636 647 case PM_FPA_FILE_ASTROM_MODEL: 637 648 case PM_FPA_FILE_ASTROM_REFSTARS: 649 case PM_FPA_FILE_EXPNUM: 638 650 psTrace ("psModules.camera", 6, "NOT freeing %s (%s) : save for further analysis\n", file->filename, file->name); 639 651 return true; … … 797 809 case PM_FPA_FILE_ASTROM_REFSTARS: 798 810 case PM_FPA_FILE_LINEARITY: 811 case PM_FPA_FILE_EXPNUM: 799 812 psTrace ("psModules.camera", 5, "opening %s (%s) (%d:%d:%d)\n", 800 813 file->filename, file->name, view->chip, view->cell, view->readout); … … 996 1009 status = pmAstromRefstarsWritePHU (view, file, config); 997 1010 break; 1011 case PM_FPA_FILE_EXPNUM: 998 1012 case PM_FPA_FILE_ASTROM_MODEL: 999 1013 case PM_FPA_FILE_SX: -
trunk/psModules/src/objects/pmSource.c
r32695 r33690 160 160 source->parent = NULL; 161 161 source->imageID = -1; 162 source->nFrames = 0; 162 163 163 164 psMemSetDeallocator(source, (psFreeFunc) sourceFree); -
trunk/psModules/src/objects/pmSource.h
r32695 r33690 118 118 pmSource *parent; ///< reference to the master source from which this is derived 119 119 int imageID; 120 psU16 nFrames; 120 121 }; 121 122 -
trunk/psModules/src/objects/pmSourceIO_CMF_PS1_DV1.c
r32347 r33690 81 81 } 82 82 83 short nImageOverlap;84 83 float magOffset; 85 84 float zeroptErr; 86 85 float fwhmMajor; 87 86 float fwhmMinor; 88 pmSourceOutputsCommonValues (& nImageOverlap, &magOffset, &zeroptErr, &fwhmMajor, &fwhmMinor, readout, imageHeader);87 pmSourceOutputsCommonValues (&magOffset, &zeroptErr, &fwhmMajor, &fwhmMinor, readout, imageHeader); 89 88 90 89 table = psArrayAllocEmpty (sources->n); … … 161 160 psMetadataAdd (row, PS_LIST_TAIL, "FLAGS", PS_DATA_U32, "psphot analysis flags", source->mode); 162 161 163 // XXX not sure how to get this : need to load Nimages with weight? 164 psMetadataAdd (row, PS_LIST_TAIL, "N_FRAMES", PS_DATA_U16, "Number of frames overlapping source center", nImageOverlap); 162 psMetadataAdd (row, PS_LIST_TAIL, "N_FRAMES", PS_DATA_U16, "Number of frames overlapping source center", source->nFrames); 165 163 psMetadataAdd (row, PS_LIST_TAIL, "PADDING", PS_DATA_S16, "padding", 0); 166 164 -
trunk/psModules/src/objects/pmSourceIO_CMF_PS1_DV2.c
r32347 r33690 82 82 table = psArrayAllocEmpty (sources->n); 83 83 84 short nImageOverlap;85 84 float magOffset; 86 85 float zeroptErr; 87 86 float fwhmMajor; 88 87 float fwhmMinor; 89 pmSourceOutputsCommonValues (& nImageOverlap, &magOffset, &zeroptErr, &fwhmMajor, &fwhmMinor, readout, imageHeader);88 pmSourceOutputsCommonValues (&magOffset, &zeroptErr, &fwhmMajor, &fwhmMinor, readout, imageHeader); 90 89 91 90 // we write out PSF-fits for all sources, regardless of quality. the source flags tell us the state … … 180 179 181 180 // XXX not sure how to get this : need to load Nimages with weight? 182 psMetadataAdd (row, PS_LIST_TAIL, "N_FRAMES", PS_DATA_U16, "Number of frames overlapping source center", nImageOverlap);181 psMetadataAdd (row, PS_LIST_TAIL, "N_FRAMES", PS_DATA_U16, "Number of frames overlapping source center", source->nFrames); 183 182 psMetadataAdd (row, PS_LIST_TAIL, "PADDING", PS_DATA_S16, "padding", 0); 184 183 -
trunk/psModules/src/objects/pmSourceIO_CMF_PS1_SV1.c
r32977 r33690 84 84 table = psArrayAllocEmpty (sources->n); 85 85 86 short nImageOverlap;87 86 float magOffset; 88 87 float zeroptErr; 89 88 float fwhmMajor; 90 89 float fwhmMinor; 91 pmSourceOutputsCommonValues (& nImageOverlap, &magOffset, &zeroptErr, &fwhmMajor, &fwhmMinor, readout, imageHeader);90 pmSourceOutputsCommonValues (&magOffset, &zeroptErr, &fwhmMajor, &fwhmMinor, readout, imageHeader); 92 91 93 92 // we write out PSF-fits for all sources, regardless of quality. the source flags tell us the state … … 170 169 psMetadataAdd (row, PS_LIST_TAIL, "FLAGS2", PS_DATA_U32, "psphot analysis flags", source->mode2); 171 170 172 // XXX not sure how to get this : need to load Nimages with weight? 173 psMetadataAdd (row, PS_LIST_TAIL, "N_FRAMES", PS_DATA_U16, "Number of frames overlapping source center", nImageOverlap); 171 psMetadataAdd (row, PS_LIST_TAIL, "N_FRAMES", PS_DATA_U16, "Number of frames overlapping source center", source->nFrames); 174 172 psMetadataAdd (row, PS_LIST_TAIL, "PADDING", PS_DATA_S16, "padding", 0); 175 173 -
trunk/psModules/src/objects/pmSourceOutputs.c
r32347 r33690 40 40 #include "pmSourceOutputs.h" 41 41 42 bool pmSourceOutputsCommonValues ( short *nImageOverlap,float *magOffset, float *zeroptErr, float *fwhmMajor, float *fwhmMinor, pmReadout *readout, psMetadata *header) {42 bool pmSourceOutputsCommonValues (float *magOffset, float *zeroptErr, float *fwhmMajor, float *fwhmMinor, pmReadout *readout, psMetadata *header) { 43 43 44 44 pmFPA *fpa = readout->parent->parent->parent; … … 72 72 } 73 73 74 *nImageOverlap = psMetadataLookupS32 (&status2, header, "NINPUTS");75 74 return true; 76 75 -
trunk/psModules/src/objects/pmSourceOutputs.h
r32347 r33690 56 56 } pmSourceOutputsMoments; 57 57 58 bool pmSourceOutputsCommonValues ( short *nImageOverlap,float *magOffset, float *zeroptErr, float *fwhmMajor, float *fwhmMinor, pmReadout *readout, psMetadata *header);58 bool pmSourceOutputsCommonValues (float *magOffset, float *zeroptErr, float *fwhmMajor, float *fwhmMinor, pmReadout *readout, psMetadata *header); 59 59 60 60 bool pmSourceOutputsSetValues (pmSourceOutputs *outputs, pmSource *source, pmChip *chip, float fwhmMajor, float fwhmMinor, float magOffset); -
trunk/psphot/src/Makefile.am
r32633 r33690 206 206 psphotPetrosianStats.c \ 207 207 psphotPetrosianVisual.c \ 208 psphotEfficiency.c 208 psphotEfficiency.c \ 209 psphotSetNFrames.c 209 210 210 211 # re-instate these -
trunk/psphot/src/psphot.h
r32695 r33690 481 481 bool psphotStackObjectsSelectForAnalysis (pmConfig *config, const pmFPAview *view, const char *filerule, psArray *objects); 482 482 483 bool psphotSetNFrames (pmConfig *config, const pmFPAview *view, const char *filerule); 484 bool psphotSetNFramesReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index); 485 483 486 #endif -
trunk/psphot/src/psphotArguments.c
r31154 r33690 217 217 pmConfigFileSetsMD (config->arguments, &argc, argv, "PSPHOT.PSF", "-psf", "-psflist"); 218 218 pmConfigFileSetsMD (config->arguments, &argc, argv, "SRC", "-src", "-srclist"); 219 pmConfigFileSetsMD (config->arguments, &argc, argv, "EXPNUM", "-expnum", "-expnumlist"); 219 220 220 221 if (argc == 1) { -
trunk/psphot/src/psphotKronIterate.c
r33089 r33690 150 150 if (!psphotKronIterate_Threaded(job)) { 151 151 psError(PS_ERR_UNKNOWN, false, "Unable to guess model."); 152 psFree(AnalysisRegion);152 // psFree(AnalysisRegion); 153 153 return false; 154 154 } … … 222 222 float windowRadius = PS_MAX(RADIUS, maxWindow); 223 223 224 #ifdef notdef 225 fprintf(stderr, "Redefining pixels for source: %d %4d %4d new radius: %f\n", 226 i, source->peak->x, source->peak->y, windowRadius+2); 227 #endif 224 228 // re-allocate image, weight, mask arrays for each peak with box big enough to fit BIG_RADIUS 225 229 pmSourceRedefinePixels (source, readout, source->peak->x, source->peak->y, windowRadius + 2); -
trunk/psphot/src/psphotParseCamera.c
r29936 r33690 2 2 3 3 // define the needed / desired I/O files 4 5 4 6 bool psphotParseCamera (pmConfig *config) { 5 7 … … 40 42 } 41 43 44 pmFPAfileBindFromArgs (&status, input, config, "PSPHOT.EXPNUM", "EXPNUM"); 45 if (!status) { 46 psError (PS_ERR_UNKNOWN, false, "failed to load find definition"); 47 return NULL; 48 } 49 50 42 51 // define the additional input/output files associated with psphot 43 52 if (!psphotDefineFiles (config, input)) { -
trunk/psphot/src/psphotStackArguments.c
r31154 r33690 53 53 psMetadataAddStr (options, PS_LIST_TAIL, "BREAK_POINT", PS_META_REPLACE, "", argv[N]); 54 54 psArgumentRemove (N, &argc, argv); 55 } 56 if ((N = psArgumentGet (argc, argv, "-ds9regions"))) { 57 psArgumentRemove (N, &argc, argv); 58 pmSubtractionRegions(true); 55 59 } 56 60 -
trunk/psphot/src/psphotStackImageLoop.c
r33030 r33690 30 30 } 31 31 32 psMetadata *recipe = psMetadataLookupPtr (NULL, config->recipes, PSPHOT_RECIPE); 33 bool useRaw = psMetadataLookupBool (NULL, recipe, "PSPHOT.STACK.USE.RAW"); 34 if (useRaw && inputRaw == NULL) { 35 psLogMsg ("psphot", 1, "PSPHOT.STACK.USE.RAW set but no raw input."); 36 useRaw = false; 37 } 38 32 39 pmFPAview *view = pmFPAviewAlloc (0); 33 40 34 // XXX for now, just load the full set of images up front 41 42 // XXX for now, just load the full set of images up front except for EXPNUM which we defer 43 pmFPAfileActivate (config->files, false, "PSPHOT.STACK.EXPNUM.RAW"); 35 44 if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) ESCAPE ("failed input for fpa in psphot."); 36 45 … … 86 95 UpdateHeadersForChip(config, view); 87 96 88 // save output which is saved at the chip level 89 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) ESCAPE ("failed output for Chip in psphot."); 97 // Defer output until we have performed psphotSetNFrames() 98 pmFPAfileActivate (config->files, false, NULL); 99 100 // Iterate up 101 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) ESCAPE ("failed pmFPAfileIOChecks for Chip in psphot."); 90 102 } 91 103 psMemDump("doneloop"); … … 93 105 UpdateHeadersForFPA(config, view); 94 106 95 // save output which is saved at the fpa level 107 // Iterate up output which is saved at the fpa level 108 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) ESCAPE ("failed ouput pmFPAfileIOChecks FPA in psphot."); 109 110 // Load the appropriate EXPNUM image 111 pmFPAfileActivate (config->files, true, useRaw ? "PSPHOT.STACK.EXPNUM.RAW" : "PSPHOT.STACK.EXPNUM.CNV"); 112 113 if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) ESCAPE ("failed input for fpa EXPNUM in psphot."); 114 115 // for psphot, we force data to be read at the chip level 116 while ((chip = pmFPAviewNextChip (view, input->fpa, 1)) != NULL) { 117 psLogMsg ("psphot", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process); 118 if (! chip->process || ! chip->file_exists) { continue; } 119 if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) ESCAPE ("failed input for Chip EXPNUM in psphotStack."); 120 121 // there is now only a single chip (multiple readouts?). loop over it and process 122 while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) { 123 psLogMsg ("psphot", 5, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process); 124 if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) ESCAPE ("failed input for Cell in psphotStack."); 125 126 // process each of the readouts 127 while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) { 128 psLogMsg ("psphot", 6, "Readout %d: %x %x\n", view->readout, cell->file_exists, cell->process); 129 if (! readout->data_exists) { continue; } 130 131 if (!psphotSetNFrames (config, view, useRaw ? inputRaw->name : inputCnv->name)) ESCAPE ("failed to setNFrames."); 132 } 133 } 134 // now activate all files to trigger final output 135 pmFPAfileActivate (config->files, true, NULL); 136 137 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) ESCAPE ("failed output for Chip in psphot."); 138 } 96 139 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) ESCAPE ("failed ouput for FPA in psphot."); 97 140 -
trunk/psphot/src/psphotStackParseCamera.c
r31154 r33690 59 59 } 60 60 } 61 psString expnum = psMetadataLookupStr(&status, input, "RAW:EXPNUM"); // Name of expnum image 62 if (expnum && strlen(expnum) > 0) { 63 if (!defineFile(config, rawInputFile, "PSPHOT.STACK.EXPNUM.RAW", expnum, PM_FPA_FILE_EXPNUM)) { 64 psError(PS_ERR_UNKNOWN, false, "Unable to define file from expnum %d (%s)", i, expnum); 65 return false; 66 } 67 } 61 68 nRaw ++; 62 69 } … … 81 88 if (!defineFile(config, cnvInputFile, "PSPHOT.STACK.VARIANCE.CNV", variance, PM_FPA_FILE_VARIANCE)) { 82 89 psError(PS_ERR_UNKNOWN, false, "Unable to define file from variance %d (%s)", i, variance); 90 return false; 91 } 92 } 93 psString expnum = psMetadataLookupStr(&status, input, "CNV:EXPNUM"); // Name of EXPNUM image 94 if (expnum && strlen(expnum) > 0) { 95 if (!defineFile(config, cnvInputFile, "PSPHOT.STACK.EXPNUM.CNV", expnum, PM_FPA_FILE_EXPNUM)) { 96 psError(PS_ERR_UNKNOWN, false, "Unable to define file from expnum %d (%s)", i, expnum); 83 97 return false; 84 98 }
Note:
See TracChangeset
for help on using the changeset viewer.
