IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 21, 2016, 11:24:05 AM (10 years ago)
Author:
heather
Message:

first steps for gaia object batches

File:
1 edited

Legend:

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

    r39764 r39785  
    819819
    820820        sql = "INSERT INTO diffobject ( \
     821               batch_id \
     822               ,region \
     823               ) VALUES ( \
     824               " + str(batchID) + " \
     825               ,'" + region + "' \
     826               )"
     827
     828        self.execute(sql)
     829
     830            '''
     831    Inserts some gaiaobject metadata for this batch ID
     832    '''
     833    def insertGaiaObjectMeta(self, batchID, region):
     834
     835        sql = "INSERT INTO gaiaobject ( \
    821836               batch_id \
    822837               ,region \
     
    11041119        ,queue_FW \
    11051120        ,queue_FO \
     1121        ,queue_FG \
     1122        ,queue_GO \
    11061123        ,parallel \
    11071124        ,P2_smf_version \
     
    11791196###        if rs.getInt(25) == 1: self.skychunk.batchTypes.append("FG") fix this when P2 is done
    11801197        if rs.getInt(25) == 1: self.skychunk.batchTypes.append("FO")
     1198        if rs.getInt(26) == 1: self.skychunk.batchTypes.append("FG")
     1199        if rs.getInt(27) == 1: self.skychunk.batchTypes.append("GO")
     1200       
    11811201
    11821202        self.skychunk.force = True # TODO
    11831203        self.skychunk.parallel = False # TODO
    11841204
    1185         if rs.getInt(26) == 1: self.skychunk.parallel = True
    1186         self.skychunk.P2_smf_version = rs.getString(27)
     1205        if rs.getInt(28) == 1: self.skychunk.parallel = True
     1206        self.skychunk.P2_smf_version = rs.getString(29)
    11871207        # options: "use_new", "not_reproc", "use_original"
    11881208
    1189         self.skychunk.ST_cmf_version = rs.getString(28)
     1209        self.skychunk.ST_cmf_version = rs.getString(30)
    11901210        # options: not used?
    11911211
     
    12121232        # print "typename: " + rsmd.getColumnTypeName(16)
    12131233
    1214         self.skychunk.trange_start = rs.getString(29)
     1234        self.skychunk.trange_start = rs.getString(31)
    12151235        # options: "YYYY-MM-DD,HH:MM:SS" or "0000-00-00 00:00:00"
    12161236
    1217         self.skychunk.trange_end = rs.getString(30)
     1237        self.skychunk.trange_end = rs.getString(32)
    12181238        # options: "YYYY-MM-DD,HH:MM:SS" or "0000-00-00 00:00:00"
    12191239
Note: See TracChangeset for help on using the changeset viewer.