IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35656


Ignore:
Timestamp:
Jun 12, 2013, 2:22:27 PM (13 years ago)
Author:
heather
Message:

this is whatever is in at the moment (for sa16/kepler) heather is going to fix the colums...

Location:
trunk/ippToPsps
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/config/settings.xml

    r35503 r35656  
    66  <!-- path for storing logs -->
    77  <!-- XXX Need to make this different for tests and real, also for different installations -->
    8   <logPath>logs</logPath>
    9 
     8  <logPath>SAS15</logPath>
    109  <!-- local scratch Db section (REAL version) -->
    1110  <localdatabase>
  • trunk/ippToPsps/jython/queue.py

    r35605 r35656  
    134134
    135135                    dD = 0.5*self.skychunk.boxSize
     136                   
    136137                    dec = self.skychunk.minDec + dD
     138                    #dec = self.skychunk.minDec
     139
    137140                    if (dec > 85): raise
    138141
     
    142145                    #dR = 0.5*self.skychunk.boxSize / math.cos(math.radians(dec))
    143146                    dR = 0.5*self.skychunk.boxSize
     147                                       
    144148                    ra = self.skychunk.minRa + dR
    145149                   
     
    149153                    while dec <= self.skychunk.maxDec:
    150154                        while ra <= self.skychunk.maxRa:
    151                            
     155                           print "here"
    152156                           # a given box centered at RA,DEC with (linear) size of SIDE has the following bounds
    153157                           minRA  = ra  - dR
     
    167171                                       len(ids)))
    168172               
    169                            # print "box_id: ", box_id
     173                           print "box_id: ", box_id
    170174
    171175                           if len(ids) > 0: self.ippToPspsDb.insertPending(box_id, batchType, ids)
  • trunk/ippToPsps/jython/stackbatch.py

    r35605 r35656  
    728728
    729729        # now update StackMeta with correct number of inputs
    730         sql = "UPDATE StackMeta SET nP2Images = (SELECT COUNT(*) FROM StackToImage)"
     730        sql = "UPDATE StackMeta SET nP2Images = (SELECT COUNT(distinct(floor(imageID/100))) FROM StackToImage)"
    731731        self.scratchDb.execute(sql)
    732732
Note: See TracChangeset for help on using the changeset viewer.