IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 24, 2009, 2:19:31 PM (17 years ago)
Author:
bills
Message:

various changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/magic/remove/src/streaksremove.c

    r23936 r23965  
    3434    }
    3535
    36     streakFiles *sfiles = openFiles(config, true);
     36    streakFiles *sfiles = openFiles(config, true, argv[0]);
    3737    setupAstrometry(sfiles);
    3838
     
    6565        }
    6666        psF64 cwp_t = psTimerClear("COMPUTE_WARPED_PIXELS");
    67         printf("time to compute warped pixels: %f\n", cwp_t);
     67        psLogMsg("streaksremove", PS_LOG_INFO, "time to compute warped pixels: %f\n", cwp_t);
    6868    }
    6969   
     
    113113                                      sfiles->inImage->numCols, sfiles->inImage->numRows);
    114114
    115             printf("time to get streak pixels: %f\n", psTimerClear("GET_STREAK_PIXELS"));
     115            psLogMsg("streaksremove", PS_LOG_INFO, "time to get streak pixels: %f\n", psTimerClear("GET_STREAK_PIXELS"));
    116116
    117117           
     
    124124                    exciseNonWarpedPixels(sfiles, maskStreak);
    125125
    126                     printf("time to excise non warped pixels: %f\n", psTimerClear("EXCISE_NON_WARPED"));
     126                    psLogMsg("streaksremove", PS_LOG_INFO, "time to excise non warped pixels: %f\n", psTimerClear("EXCISE_NON_WARPED"));
    127127                }
    128128                totalStreakPixels +=  psArrayLength(pixels);
     
    140140                    }
    141141                }
    142                 printf("time to remove streak pixels: %f\n", psTimerClear("REMOVE_STREAKS"));
     142                psLogMsg("streaksremove", PS_LOG_INFO, "time to remove streak pixels: %f\n", psTimerClear("REMOVE_STREAKS"));
    143143
    144144                if (nanForRelease) {
     
    161161        writeImages(sfiles, exciseImageCube);
    162162
    163         printf("time to process component %d: %f\n", sfiles->extnum, psTimerClear("PROCESS_COMPONENT"));
     163        psLogMsg("streaksremove", PS_LOG_INFO, "time to process component %d: %f\n", sfiles->extnum, psTimerClear("PROCESS_COMPONENT"));
    164164    } while (streakFilesNextExtension(sfiles));
    165165
    166166    psFree(streaks);
    167167
    168     printf("pixels: %ld streak pixels: %ld %4.2f%%\n", totalPixels, totalStreakPixels, 100. * totalStreakPixels / totalPixels);
     168    psLogMsg("streaksremove", PS_LOG_INFO, "pixels: %ld streak pixels: %ld %4.2f%%\n", totalPixels, totalStreakPixels, 100. * totalStreakPixels / totalPixels);
    169169
    170170    psTimerStart("CLOSE_IMAGES");
    171171    // close all files
    172172    closeImages(sfiles);
    173     printf("time to close images: %f\n", psTimerClear("CLOSE_IMAGES"));
     173    psLogMsg("streaksremove", PS_LOG_INFO, "time to close images: %f\n", psTimerClear("CLOSE_IMAGES"));
    174174
    175175    // NOTE: from here on we can't just quit if something goes wrong.
     
    218218    streaksNebulousCleanup();
    219219    pmConfigDone();
    220     printf("time to run streaksremove: %f\n", psTimerClear("STREAKSREMOVE"));
     220    psLogMsg("streaksremove", PS_LOG_INFO, "time to run streaksremove: %f\n", psTimerClear("STREAKSREMOVE"));
    221221    psLibFinalize();
    222222
Note: See TracChangeset for help on using the changeset viewer.