IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10410


Ignore:
Timestamp:
Dec 1, 2006, 3:35:01 PM (20 years ago)
Author:
Paul Price
Message:

Whoops, typo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmShutterCorrection.c

    r10257 r10410  
    99
    1010#include "pmFPA.h"
     11#include "pmHDUUtils.h"
     12#include "psVectorBracket.h"
    1113#include "pmShutterCorrection.h"
    12 #include "psVectorBracket.h"
    1314
    1415/// Measure shutter correction:
     
    633634    }
    634635
     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
    635646    psImage *shutterImage = psImageSubset(shutter->image, region); // Subimage with shutter
    636647    if (!shutterImage) {
     
    648659        }
    649660    }
    650 
    651661    psFree(shutterImage);
    652662
     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
    653672    return true;
    654673}
Note: See TracChangeset for help on using the changeset viewer.