Changeset 5621 for trunk/archive/scripts/src/phase2/papPhase2.c
- Timestamp:
- Nov 28, 2005, 2:27:22 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/archive/scripts/src/phase2/papPhase2.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/scripts/src/phase2/papPhase2.c
r5583 r5621 16 16 #include "pmNonLinear.h" 17 17 #include "pmSubtractBias.h" 18 #include "pmChipMosaic.h" 18 19 19 20 // Phase 2 needs to: … … 81 82 #endif 82 83 83 psT raceSetLevel("pmConfigCameraFromHeader", 10);84 psTimerStart("phase2"); 84 85 85 86 // Parse the configurations … … 276 277 psLogMsg("phase2", PS_LOG_INFO, "Operating only on chip %d\n", chipNum); 277 278 } 279 280 psLogMsg("phase2", PS_LOG_INFO, "Setup completed after %f sec.\n", psTimerMark("phase2")); 278 281 279 282 // Read in the input pixels … … 447 450 } 448 451 452 psLogMsg("phase2", PS_LOG_INFO, "Input completed after %f sec.\n", psTimerMark("phase2")); 453 449 454 psArray *inputChips = input->chips; // Array of chips in input image 450 455 psArray *biasChips = bias->chips; // Array of chips in bias image … … 766 771 // XXX: Temporary: until the other functions are altered to do this themselves. 767 772 // Trim, so that flat, fringe etc computations are faster. 773 #if 0 768 774 #ifndef PRODUCTION 769 775 psRegion *trimRegion = psMetadataLookupPtr(NULL, inputCell->concepts, "CELL.TRIMSEC"); … … 772 778 inputReadout->image = trimmed; 773 779 #endif 774 780 #endif 775 781 // Flat-field correction 776 782 if (doFlat) { … … 804 810 } 805 811 812 806 813 } // Iterating over readouts 807 814 } // Iterating over cells 815 816 // Testing pmChipMosaic 817 { 818 psImage *mosaic = pmChipMosaic(inputChip, 1, 1); // Mosaic of chip 819 psFits *mosaicFile = psFitsAlloc("mosaic.fits"); // FITS file to which to write 820 psFitsWriteImage(mosaicFile, NULL, mosaic, 0); 821 psFree(mosaicFile); 822 psFree(mosaic); 823 } 824 808 825 } // Iterating over chips 826 827 psLogMsg("phase2", PS_LOG_INFO, "Processing completed after %f sec.\n", psTimerMark("phase2")); 809 828 810 829 // Write the output … … 812 831 pmFPAWriteMask(input, outputFile); 813 832 pmFPAWriteWeight(input, outputFile); 833 834 psLogMsg("phase2", PS_LOG_INFO, "Output completed after %f sec.\n", psTimerMark("phase2")); 814 835 815 836 #ifdef PRODUCTION … … 831 852 psFree(overscanFit); 832 853 psFree(overscanStats); 854 855 psLogMsg("phase2", PS_LOG_INFO, "Cleanup completed after %f sec.\n", psTimerMark("phase2")); 856 psTimerStop(); 833 857 834 858 #if 1
Note:
See TracChangeset
for help on using the changeset viewer.
