IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17781


Ignore:
Timestamp:
May 23, 2008, 11:29:44 AM (18 years ago)
Author:
Paul Price
Message:

Adding DT_WARP to stats metadata.

Location:
trunk/pswarp/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarp.c

    r14641 r17781  
    1313int main (int argc, char **argv)
    1414{
    15     psTimerStart ("complete");
     15    psTimerStart("pswarp");
    1616
    1717    psLibInit(NULL);
     
    1919    // model inits are needed in pmSourceIO
    2020    // models defined in psphot/src/models are not available in psastro
    21     pmModelClassInit ();
     21    pmModelClassInit();
    2222
    23     pmConfig *config = pswarpArguments (argc, argv);
    24     if (!config) usage ();
     23    pmConfig *config = pswarpArguments(argc, argv);
     24    if (!config) usage();
    2525
    2626    if (!pswarpOptions(config)) {
     
    3030
    3131    // load identify the data sources
    32     if (!pswarpParseCamera (config)) {
     32    if (!pswarpParseCamera(config)) {
    3333        psErrorStackPrint(stderr, "error setting up the camera\n");
    3434        exit (1);
     
    3636
    3737    // load the skycell layout information
    38     if (!pswarpDefine (config)) {
     38    if (!pswarpDefine(config)) {
    3939        psErrorStackPrint(stderr, "error loading output definition\n");
    4040        exit (1);
     
    4747    }
    4848
    49     psLogMsg ("pswarp", 3, "complete pswarp run: %f sec\n", psTimerMark ("complete"));
    50     pswarpCleanup (config);
     49    psLogMsg("pswarp", 3, "complete pswarp run: %f sec\n", psTimerMark("pswarp"));
     50    pswarpCleanup(config);
    5151    psLibFinalize();
    52     exit (EXIT_SUCCESS);
     52    exit(EXIT_SUCCESS);
    5353}
  • trunk/pswarp/src/pswarpLoop.c

    r17569 r17781  
    352352    // Write out summary statistics
    353353    if (stats) {
     354        psMetadataAddF32(stats, PS_LIST_TAIL, "DT_WARP", 0, "Time for warp completion",
     355                         psTimerMark("pswarp"));
     356
    354357        const char *statsMDC = psMetadataConfigFormat(stats);
    355358        if (!statsMDC) {
Note: See TracChangeset for help on using the changeset viewer.