IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 29, 2013, 2:30:34 PM (13 years ago)
Author:
heather
Message:

this is whatever is current (or was currently used) for sas14. I assume its ok

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/queue.py

    r35417 r35605  
    3737        self.datastore = Datastore(self.logger, self.skychunk, self.ippToPspsDb)
    3838
    39         # print "made datastore"
     39        print "made datastore"
    4040
    4141        # connect to scratch database
    4242        self.scratchDb = ScratchDb(self.logger, self.config)
    4343
    44         # print "connect to scratchdb"
     44        print "connect to scratchdb"
    4545
    4646        try:
     
    5050            raise
    5151
    52         # print "got objects"
     52        print "got objects"
    5353
    5454        self.skychunk.printAll()
     
    6262    '''
    6363    def run(self):
    64 
     64        print "here"
    6565        # this outer while loop simply waits a few minutes then starts queuing again (as more stuff may appear in DVO over time)
    6666        while True:
    6767
    6868            self.ippToPspsDb.removeAllBoxes()
    69        
     69            print "remove boxes"
    7070            # queue up batches that are processed but not loaded to datastore
    7171            for batchType in self.skychunk.batchTypes:
    72 
     72                self.logger.infoPair("BatchType",batchType)
    7373                # self.logger.infoTitle("Previous failed datastore loads")
    7474                # self.publishAnyUnpublishedBatches(batchType)
     
    7676                # get totals for whole area to check if there is anything to do
    7777                processedIDs = self.ippToPspsDb.getProcessedIDs(batchType)
     78                print "got processed ids"
    7879                consistantlyFailedIDs = self.ippToPspsDb.getConsistentlyFailedIDs(batchType)
    79 
     80                print "got here"
    8081                # for object batches, get full list of stuff from Dvo
    8182                # XXX : need to fix 'dvo.setSkyArea' or this may not return the full list for a parallel dvo
     
    136137                    if (dec > 85): raise
    137138
    138                     # print "dec, dD: ", dec, dD
     139                    print "dec, dD: ", dec, dD ,self.skychunk.maxDec
    139140
    140141                    # a given box centered at RA,DEC with (linear) size of SIDE has the following bounds
    141                     dR = 0.5*self.skychunk.boxSize / math.cos(math.radians(dec))
     142                    #dR = 0.5*self.skychunk.boxSize / math.cos(math.radians(dec))
     143                    dR = 0.5*self.skychunk.boxSize
    142144                    ra = self.skychunk.minRa + dR
    143145                   
    144                     # print "ra, dR: ", ra, dR
     146                    print "ra, dR, maxRa", ra, dR, self.skychunk.maxRa
    145147
    146148                    # XXX not sure why this is not done with a for-loop...
    147149                    while dec <= self.skychunk.maxDec:
    148150                        while ra <= self.skychunk.maxRa:
    149            
     151                           
    150152                           # a given box centered at RA,DEC with (linear) size of SIDE has the following bounds
    151153                           minRA  = ra  - dR
     
    175177                        if (dec > 85): raise
    176178
    177                         dR = 0.5*self.skychunk.boxSize / math.cos(math.radians(dec))
     179                        #dR = 0.5*self.skychunk.boxSize / math.cos(math.radians(dec))
     180                        dR = 0.5*self.skychunk.boxSize
    178181                        ra = self.skychunk.minRa + dR
    179182
Note: See TracChangeset for help on using the changeset viewer.