IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30296


Ignore:
Timestamp:
Jan 19, 2011, 9:45:03 AM (15 years ago)
Author:
rhenders
Message:

Now totalling total that are not mergeworthy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/perl/exposureSummary.pl

    r29999 r30296  
    8686my $totalUnmerged = 0;
    8787my $totalMergeWorthy = 0;
     88my $totalNotMergeWorthy = 0;
    8889my $totalProcessed = 0;
    8990my $totalOnDatastore = 0;
    9091my $totalLoadedToOdm = 0;
    9192my $totalLoadFailed = 0;
     93my $totalMergeWorthy = 0;
    9294my $totalUnderObjIdLimit = 0;
    9395my $totalUnprocessed = 0;
    9496my $totalUnprocessedAvailableSmfs = 0;
    95 my $totalOdmFailures = 0;
     97my $remainingOdmFailures = 0;
    9698my $totalUnprocessedMissingSmfs = 0;
     99my $totalProcessedNotOnDatastore = 0;
    97100
    98101
    99102open (UNPRO, ">unprocessedExposures.txt") or print "* Problem opening data file for unprocessed exposures\n";
    100103open (ODMFAIL, ">odmFailures.txt") or print "* Problem opening data file for ODM failures\n";
     104open (NOTONDATASTORE, ">notOnDatastore.txt") or print "* Problem opening data file for exposures not on datastore\n";
    101105
    102106if ($checkNeb) {
     
    114118    if ($verbose) {print "$totalUnmerged | $expId \n"; }
    115119
     120    # processed stuff
    116121    if ($ippToPspsDb->isExposureProcessed($expId)) {
    117122
    118123        $totalProcessed++;
    119124
    120         if ($ippToPspsDb->isExposureAlreadyPublished($expId)) {
     125        if (!$ippToPspsDb->isExposureAlreadyPublished($expId)) {
     126
     127            $totalProcessedNotOnDatastore++;
     128            print NOTONDATASTORE "$expId\n";
     129        }
     130        else {
    121131
    122132            $totalOnDatastore++;
     
    126136                $totalLoadedToOdm++;
    127137
    128                 if ($ippToPspsDb->didLoadFail($expId)) {
    129 
    130                     $totalLoadFailed++;
     138                if ($ippToPspsDb->isMergeWorthy($expId)) {
     139
     140                    $totalMergeWorthy++;
    131141                }
    132                 if ($ippToPspsDb->isMinObjIdUnderLimit($expId)) {
    133 
    134                     $totalUnderObjIdLimit++;
    135                 }
     142                # not mergeworthy
    136143                else {
    137144
    138                     $totalOdmFailures++;
    139                     print ODMFAIL "$expId\n";
     145                    $totalNotMergeWorthy++;
     146
     147                    #if ($ippToPspsDb->didLoadFail($expId)) {
     148
     149                    #    $totalLoadFailed++;
     150                    #}
     151                    if ($ippToPspsDb->isMinObjIdUnderLimit($expId)) {
     152
     153                        $totalUnderObjIdLimit++;
     154                    }
     155                    else {
     156
     157                        $remainingOdmFailures++;
     158                        print ODMFAIL "$expId\n";
     159                    }
    140160                }
    141161            }
    142162        }
    143163    }
     164    # unprocessed stuff
    144165    else {
    145166
     
    181202close(UNPRO);
    182203close(ODMFAIL);
     204close(NOTONDATASTORE);
    183205if ($checkNeb) {
    184206
     
    186208    close(NOTMISSSMF);
    187209}
    188 my $totalProcessedNotOnDatastore = $totalProcessed - $totalOnDatastore;
    189210my $totalOnDatastoreNotLoaded = $totalOnDatastore - $totalLoadedToOdm;
    190211print "***********************************************************\n";
     
    205226print "*       on datastore                         = $totalOnDatastore\n";
    206227print "*         not loaded to ODM                  = $totalOnDatastoreNotLoaded\n";
    207 print "*         loaded to ODM but rejected         = $totalLoadedToOdm\n";
    208 print "*           under -30 dec limit              = $totalUnderObjIdLimit\n";
    209 print "*           remaining ODM failures           = $totalOdmFailures\n";
     228print "*         loaded to ODM                      = $totalLoadedToOdm\n";
     229print "*           MergeWorthy                      = $totalMergeWorthy\n";
     230print "*           not MergeWorthy                  = $totalNotMergeWorthy\n";
     231print "*             under -30 dec limit            = $totalUnderObjIdLimit\n";
     232print "*             remaining failures             = $remainingOdmFailures\n";
    210233print "*\n";
    211234print "***********************************************************\n";
Note: See TracChangeset for help on using the changeset viewer.