Changeset 10410
- Timestamp:
- Dec 1, 2006, 3:35:01 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/detrend/pmShutterCorrection.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/pmShutterCorrection.c
r10257 r10410 9 9 10 10 #include "pmFPA.h" 11 #include "pmHDUUtils.h" 12 #include "psVectorBracket.h" 11 13 #include "pmShutterCorrection.h" 12 #include "psVectorBracket.h"13 14 14 15 /// Measure shutter correction: … … 633 634 } 634 635 636 pmHDU *hdu = pmHDUFromCell(cell);// HDU of interest 637 638 psVector *md5 = psImageMD5(shutter->image); // md5 hash 639 psString md5string = psMD5toString(md5); // String 640 psFree(md5); 641 psStringPrepend(&md5string, "Shutter image MD5: "); 642 psMetadataAddStr(hdu->header, PS_LIST_TAIL, "HISTORY", PS_META_DUPLICATE_OK, md5string, ""); 643 psFree(md5string); 644 645 635 646 psImage *shutterImage = psImageSubset(shutter->image, region); // Subimage with shutter 636 647 if (!shutterImage) { … … 648 659 } 649 660 } 650 651 661 psFree(shutterImage); 652 662 663 psTime *time = psTimeGetNow(PS_TIME_TAI); // The time now, used for reporting 664 psString timeString = psTimeToISO(time); // String with time 665 psFree(time); 666 psStringPrepend(&timeString, "Shutter correction completed at "); 667 psMetadataAddStr(hdu->header, PS_LIST_TAIL, "HISTORY", PS_META_DUPLICATE_OK, 668 timeString, ""); 669 psFree(timeString); 670 671 653 672 return true; 654 673 }
Note:
See TracChangeset
for help on using the changeset viewer.
