Changeset 37586
- Timestamp:
- Nov 12, 2014, 12:05:37 PM (12 years ago)
- Location:
- trunk/ippToPsps
- Files:
-
- 16 edited
-
config/tables.DF.vot (modified) (1 diff)
-
config/tables.DO.vot (modified) (1 diff)
-
config/tables.FO.vot (modified) (1 diff)
-
config/tables.FW.vot (modified) (1 diff)
-
config/tables.P2.vot (modified) (1 diff)
-
jython/stackbatch.py (modified) (5 diffs)
-
pspsschema/SchemaNew19.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/DiffDetObject (modified) (1 diff)
-
pspsschema/SchemaNew19.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/DiffDetObject.txt (modified) (1 diff)
-
pspsschema/SchemaNew19.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/DiffDetection (modified) (1 diff)
-
pspsschema/SchemaNew19.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/DiffDetection.txt (modified) (1 diff)
-
pspsschema/SchemaNew19.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/ForcedMeanObject (modified) (1 diff)
-
pspsschema/SchemaNew19.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/ForcedMeanObject.txt (modified) (1 diff)
-
pspsschema/SchemaNew19.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/ForcedWarpExtended (modified) (1 diff)
-
pspsschema/SchemaNew19.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/ForcedWarpExtended.txt (modified) (1 diff)
-
pspsschema/SchemaNew19.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/ForcedWarpMeasurement (modified) (1 diff)
-
pspsschema/SchemaNew19.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/ForcedWarpMeasurement.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/config/tables.DF.vot
r37249 r37586 94 94 <DESCRIPTION>ODM diff object identifier</DESCRIPTION> 95 95 </FIELD> 96 <FIELD name="diffgcobjID" arraysize="1" datatype="long" unit="dimensionless" default="NA">97 <DESCRIPTION>galactic coordinates ODM object identifier</DESCRIPTION>98 </FIELD>99 96 <FIELD name="diffDetID" arraysize="1" datatype="long" unit="dimensionless" default="NA"> 100 97 <DESCRIPTION>ODM diff detection identifier</DESCRIPTION> -
trunk/ippToPsps/config/tables.DO.vot
r36698 r37586 11 11 <FIELD name="diffObjID" arraysize="1" datatype="long" unit="dimensionless" default="NA"> 12 12 <DESCRIPTION>ODM object identifier index</DESCRIPTION> 13 </FIELD>14 <FIELD name="diffgcobjID" arraysize="1" datatype="long" unit="dimensionless" default="NA">15 <DESCRIPTION>galactic coordinates ODM object identifier</DESCRIPTION>16 13 </FIELD> 17 14 <FIELD name="ippObjID" arraysize="1" datatype="long" unit="dimensionless" default="NA"> -
trunk/ippToPsps/config/tables.FO.vot
r37475 r37586 12 12 <DESCRIPTION>unique psps id</DESCRIPTION> 13 13 </FIELD> 14 <FIELD name="gcobjID" arraysize="1" datatype="long" unit="dimensionless" default="NA">15 <DESCRIPTION>galactic coordinates ODM object identifier</DESCRIPTION>16 </FIELD>17 14 <FIELD name="ippObjID" arraysize="1" datatype="long" unit="dimensionless" default="NA"> 18 15 <DESCRIPTION>IPP object number</DESCRIPTION> -
trunk/ippToPsps/config/tables.FW.vot
r37475 r37586 118 118 <DESCRIPTION>unique psps id</DESCRIPTION> 119 119 </FIELD> 120 <FIELD name="gcobjID" arraysize="1" datatype="long" unit="dimensionless" default="NA">121 <DESCRIPTION>galactic coordinates ODM object identifier</DESCRIPTION>122 </FIELD>123 120 <FIELD name="detectID" arraysize="1" datatype="long" unit="dimensionless" default="NA"> 124 121 <DESCRIPTION>ODM detection identifier</DESCRIPTION> -
trunk/ippToPsps/config/tables.P2.vot
r37475 r37586 383 383 <DESCRIPTION>ODM object identifier</DESCRIPTION> 384 384 </FIELD> 385 <FIELD name="unique_psps_ ob_id" arraysize="1" datatype="long" unit="dimensionless" default="NA">385 <FIELD name="unique_psps_p2_id" arraysize="1" datatype="long" unit="dimensionless" default="NA"> 386 386 <DESCRIPTION>unique psps id</DESCRIPTION> 387 387 </FIELD> -
trunk/ippToPsps/jython/stackbatch.py
r37577 r37586 293 293 self.generateRandomIDs() 294 294 295 self.generateStackDetectRowIDs() 296 295 297 # add indexes StackObjectThin 296 298 self.scratchDb.createIndex("StackObjectThin", "objID") … … 382 384 self.logger.infoPair("Procesing table", tablename) 383 385 self.insertDvoIDs(tablename, "StackObjectThin") 384 386 385 387 # if we are going to add a key, do it here so it is useful 386 388 self.scratchDb.createIndex(tablename, "objID") … … 949 951 950 952 953 def generateStackDetectRowIDs(self): 954 sql = "UPDATE StackObjectThin join (select @r:=@r+1 rownum, objID from \ 955 (select @r:=0) r, StackObjectThin t) as foo using (objID) set \ 956 stackDetectRowID = ((" + str(self.batchID) + " << 32 ) + rownum)"; 957 try: self.scratchDb.execute(sql) 958 except: 959 self.logger.errorPair('failed sql',sql) 960 return 961 962 951 963 ''' 952 964 select objID (psps object ID) from dvo restricted to this set of imageIDs. also insert … … 1008 1020 if (i < len(self.filters) - 1): 1009 1021 fields += ", " 1010 1022 1023 if (table == "StackObjectAttributes"): 1024 fields += "stackDetectRowID, " 1011 1025 sql = "INSERT INTO " + table + " (" + fields + ") " 1012 1026 sql += "SELECT " + fields + " FROM " + mainTable … … 1016 1030 self.logger.errorPair('failed sql',sql) 1017 1031 return 1018 1032 1033 1034 1019 1035 ''' 1020 1036 Does the processing, i.e. pulling stuff from IPP tables into PSPS tables -
trunk/ippToPsps/pspsschema/SchemaNew19.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/DiffDetObject
r37474 r37586 3 3 diffObjID dimensionless BIGINT 8 NA ODM object identifier index 4 4 unique_psps_do_id dimentionless BIGINT 8 NA unique id provided by ipptopsps, based on batch_Id + counter 5 diffgcObjID dimensionless BIGINT 8 NA ODM galactic coordinates identifier6 5 ippObjID dimensionless BIGINT 8 NA IPP object number 7 6 surveyID dimensionless TINYINT 1 255 Survey ID -
trunk/ippToPsps/pspsschema/SchemaNew19.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/DiffDetObject.txt
r37474 r37586 3 3 diffObjID = dvo / addstar 4 4 unique_psps_do_id = ipptopsps 5 diffgcObjID = dvo / addstar6 5 ippObjID = dvo / addstar 7 6 surveyID = ipptopsps -
trunk/ippToPsps/pspsschema/SchemaNew19.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/DiffDetection
r37474 r37586 2 2 diffObjID dimensionless BIGINT 8 NA diff object identifier 3 3 unique_psps_df_id dimensionless BIGINT 8 NA unique psps id (combination of batch_id, and counter) provided by ipptopsps 4 diffgcObjID dimensionless BIGINT 8 NA ODM galactic coordinates identifier5 4 diffDetID dimensionless BIGINT 8 NA diff detection identifier 6 5 diffDetMetaID dimensionless BIGINT 8 NA diff detection meta identifier -
trunk/ippToPsps/pspsschema/SchemaNew19.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/DiffDetection.txt
r37474 r37586 2 2 diffObjID = dvo / addstar 3 3 unique_psps_df_id = ipptopsps 4 diffgcObjID = dvo / addstar5 4 diffDetID = dvo / addstar 6 5 diffDetMetaID = dvo / addstar -
trunk/ippToPsps/pspsschema/SchemaNew19.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/ForcedMeanObject
r37474 r37586 2 2 objID dimensionless BIGINT 8 NA ODM object identifier index 3 3 unique_psps_fo_id dimensionless BIGINT 8 NA unique id supplied by ipptopsps 4 gcObjID dimensionless BIGINT 8 NA ODM galactic coordinates identifier5 4 ippObjID dimensionless BIGINT 8 NA IPP object identifier 6 5 nDetections dimensionless SMALLINT 2 -999 total number of detection measurements in all filters -
trunk/ippToPsps/pspsschema/SchemaNew19.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/ForcedMeanObject.txt
r37524 r37586 2 2 objID = cpt.extID 3 3 unique_psps_fo_id = ipptopsps 4 gcobjID = remove?5 4 ippObjID = cpt.objID | cpt.catID << 32 6 5 nDetections = sql sum of cps.NCODE (xnTotal) -
trunk/ippToPsps/pspsschema/SchemaNew19.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/ForcedWarpExtended
r37474 r37586 2 2 objID dimensionless BIGINT 8 NA ODM object identifier 3 3 unique_psps_fw_id dimentionless BIGINT 8 NA unique id supplied by ipptopsps 4 gcObjID dimensionless BIGINT 8 NA ODM galactic coordinates identifier5 4 detectID dimensionless BIGINT 8 NA ODM detection identifier 6 5 ippObjID dimensionless BIGINT 8 NA ippobject id generated by IPP -
trunk/ippToPsps/pspsschema/SchemaNew19.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/ForcedWarpExtended.txt
r37524 r37586 2 2 objID = cpt.extID (???) 3 3 unique_psps_fw_id = ipptopsps 4 gcObjID = remove?5 4 detectID = cpm.extID (???) 6 5 ippObjID = cpx.obj_ID | cpx.cat_ID << 32 -
trunk/ippToPsps/pspsschema/SchemaNew19.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/ForcedWarpMeasurement
r37474 r37586 2 2 objID dimensionless BIGINT 8 NA ODM object identifier 3 3 unique_psps_fw_id dimensionless BIGINT 8 NA unique identifier provided by ipptopsps 4 gcObjID dimensionless BIGINT 8 NA ODM galactic coordinates identifier5 4 detectID dimensionless BIGINT 8 NA ODM detection identifier 6 5 ippObjID dimensionless BIGINT 8 NA ippobject id generated by IPP -
trunk/ippToPsps/pspsschema/SchemaNew19.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/ForcedWarpMeasurement.txt
r37524 r37586 2 2 objID = cpt.extID (???) 3 3 unique_psps_fw_id = ipptopsps 4 gcObjID = remove?5 4 detectID = cpm.extID (???) 6 5 ippObjID = cpx.obj_id | cps.cat_id << 32
Note:
See TracChangeset
for help on using the changeset viewer.
