IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36815


Ignore:
Timestamp:
Jun 4, 2014, 3:42:24 PM (12 years ago)
Author:
heather
Message:

current ipptopsps before we discovered we need skinny objects

Location:
trunk/ippToPsps
Files:
70 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/config/ippToPspsDbSchema.sql

    r36706 r36815  
    278278
    279279-- Dump completed on 2012-04-10  6:00:59
     280
     281
     282DROP TABLE IF EXISTS `dvodb`;
     283SET @saved_cs_client     = @@character_set_client;
     284SET character_set_client = utf8;
     285CREATE TABLE `dvodb` (
     286  `dvo_db` varchar(30) default NULL,
     287  `batch_type` varchar(10) default NULL,
     288  `stage_id` bigint(20) unsigned default NULL,
     289  `ra_center` float default NULL,
     290  `dec_center` float default NULL,
     291  `uniq_key` varchar(30) default NULL,
     292  UNIQUE KEY `uniq_key` (`uniq_key`)
     293) ENGINE=InnoDB DEFAULT CHARSET=latin1;
     294SET character_set_client = @saved_cs_client;
     295
     296
  • trunk/ippToPsps/config/parse_vot.pl

    r36706 r36815  
    33# this thing will just parse the votables and print out in 'ken schema style'
    44
    5 #$wiki=1;
    6 $csv = 1;
     5$wiki=1;
     6#$csv = 1;
    77$infield = 0;
    88$intable = 0;
  • trunk/ippToPsps/jython/Makefile.am

    r36697 r36815  
    2222  gpc1db.py \
    2323  initbatch.py \
     24  insert.dvodb.info.py \       
    2425  ipptopspsdb.py \
    2526  ipptopsps.py \
  • trunk/ippToPsps/jython/ipptopspsdb.py

    r36697 r36815  
    16511651        # self.logger.infoPair("Items written to alt Db", "%d" % count)
    16521652
     1653
     1654    '''
     1655    Creates a temporary table and shoves it full of stage_ids and ra/dec coords
     1656    '''
     1657    def storeAllItemsInDvodb(self, rows, dvo_db, batchType):
     1658
     1659        #try:
     1660        #    self.execute("DROP TABLE all_pending")
     1661        #except:
     1662        #    pass
     1663
     1664        #self.execute("CREATE TEMPORARY TABLE all_pending (stage_id bigint(20), ra_bore float, dec_bore float)")
     1665        for row in rows:
     1666
     1667            try:
     1668                uniq = dvo_db + "."+ batchType + "." + str(row[0])
     1669                sql = "INSERT INTO dvodb (dvo_db, batch_type, stage_id, ra_center, dec_center, uniq_key) \
     1670                       VALUES ( '" + dvo_db + "', '" + batchType + "'," + str(row[0]) + "," + str(row[1]) + " \
     1671                       , " + str(row[2]) + ", '"+uniq+"' ) "
     1672                print "sql 1: ", sql
     1673                self.execute(sql)
     1674            except: continue
     1675
     1676        #count = self.getRowCount("all_pending")
     1677        #self.logger.infoPair("Items written to Db", "%d" % count)
     1678
     1679
     1680
    16531681    '''
    16541682    Gets all items in the all_pending temporary table within the bounds of this box
  • trunk/ippToPsps/jython/odm.py

    r36614 r36815  
    3131
    3232        tempFile = tempfile.NamedTemporaryFile(mode='w+b')
    33 
     33        self.logger.infoPair("checkOdmStatus.pl -b " + batch + " -f " + tempFile.name, "")
    3434        p = Popen("checkOdmStatus.pl -b " + batch + " -f " + tempFile.name,
    3535                shell=True,
Note: See TracChangeset for help on using the changeset viewer.