Changeset 38090
- Timestamp:
- Apr 6, 2015, 4:38:40 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
-
ippScripts/scripts/addstar_run.pl (modified) (1 diff)
-
ippToPsps/config/tables.DO.vot (modified) (2 diffs)
-
ippToPsps/config/tables.FO.vot (modified) (12 diffs)
-
ippToPsps/jython/diffobjectbatch.py (modified) (1 diff)
-
ippToPsps/jython/forcedobjectbatch.py (modified) (2 diffs)
-
ippToPsps/jython/gpc1db.py (modified) (3 diffs)
-
ippToPsps/pspsschema/SchemaNew20.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/DiffDetObject (modified) (1 diff)
-
ippToPsps/pspsschema/SchemaNew20.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/DiffDetObject.txt (modified) (1 diff)
-
ippToPsps/pspsschema/SchemaNew20.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/ForcedMeanLensing (modified) (1 diff)
-
ippToPsps/pspsschema/SchemaNew20.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/ForcedMeanLensing.txt (modified) (1 diff)
-
ippToPsps/pspsschema/SchemaNew20.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/ForcedMeanObject (modified) (1 diff)
-
ippToPsps/pspsschema/SchemaNew20.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/ForcedMeanObject.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/addstar_run.pl
r37739 r38090 102 102 103 103 if ($stage =~/fullforce/) { 104 $reduction='DEFAULT'; 105 #hardwired because why not 106 } 107 if ($stage =~/diff/) { 104 108 $reduction='DEFAULT'; 105 109 #hardwired because why not -
trunk/ippToPsps/config/tables.DO.vot
r37763 r38090 21 21 <DESCRIPTION>Survey ID</DESCRIPTION> 22 22 </FIELD> 23 <FIELD name="skyCellID" arraysize="1" datatype="float" unit="dimensionless" default="-999">24 <DESCRIPTION>single float giving PrimaryCell.SkyCell identifier</DESCRIPTION>25 </FIELD>26 23 <FIELD name="htmID" arraysize="1" datatype="long" unit="dimensionless" default="NA"> 27 24 <DESCRIPTION>HTM index</DESCRIPTION> … … 30 27 <DESCRIPTION>Zone index</DESCRIPTION> 31 28 </FIELD> 32 <FIELD name="random ID" arraysize="1" datatype="long" unit="dimensionless" default="0">29 <FIELD name="randomDiffObjID" arraysize="1" datatype="long" unit="dimensionless" default="0"> 33 30 <DESCRIPTION>Random integer between 0 and 2^32 = 4,394,967,296</DESCRIPTION> 34 31 </FIELD> -
trunk/ippToPsps/config/tables.FO.vot
r37927 r38090 15 15 <DESCRIPTION>IPP object number</DESCRIPTION> 16 16 </FIELD> 17 <FIELD name="randomForcedObjID" arraysize="1" datatype="long" unit="dimensionless" default="NA"> 18 <DESCRIPTION>random id</DESCRIPTION> 19 </FIELD> 17 20 <FIELD name="nDetections" arraysize="1" datatype="short" unit="dimensionless" default="-999"> 18 21 <DESCRIPTION>total number of detection measurements in all filters</DESCRIPTION> … … 21 24 <DESCRIPTION>batch id</DESCRIPTION> 22 25 </FIELD> 23 <FIELD name="gStackID" arraysize="1" datatype="long" unit="dimensionless" default="NA">24 <DESCRIPTION>stack image id (how to carry through IPP+DVO</DESCRIPTION>25 </FIELD>26 26 <FIELD name="gnTotal" arraysize="1" datatype="short" unit="dimensionless" default="-999"> 27 27 <DESCRIPTION>number of detections in g filter</DESCRIPTION> … … 105 105 <DESCRIPTION>polarization, KSB-corrected 2Mxy / (Mxx + Myy)</DESCRIPTION> 106 106 </FIELD> 107 <FIELD name="rStackID" arraysize="1" datatype="long" unit="dimensionless" default="NA">108 <DESCRIPTION>stack image id (how to carry through IPP+DVO</DESCRIPTION>109 </FIELD>110 107 <FIELD name="rnTotal" arraysize="1" datatype="short" unit="dimensionless" default="-999"> 111 108 <DESCRIPTION>number of detections in r filter</DESCRIPTION> … … 189 186 <DESCRIPTION>polarization, KSB-corrected 2Mxy / (Mxx + Myy)</DESCRIPTION> 190 187 </FIELD> 191 <FIELD name="iStackID" arraysize="1" datatype="long" unit="dimensionless" default="NA">192 <DESCRIPTION>stack image id (how to carry through IPP+DVO</DESCRIPTION>193 </FIELD>194 188 <FIELD name="inTotal" arraysize="1" datatype="short" unit="dimensionless" default="-999"> 195 189 <DESCRIPTION>number of detections in i filter</DESCRIPTION> … … 273 267 <DESCRIPTION>polarization, KSB-corrected 2Mxy / (Mxx + Myy)</DESCRIPTION> 274 268 </FIELD> 275 <FIELD name="zStackID" arraysize="1" datatype="long" unit="dimensionless" default="NA">276 <DESCRIPTION>stack image id (how to carry through IPP+DVO</DESCRIPTION>277 </FIELD>278 269 <FIELD name="znTotal" arraysize="1" datatype="short" unit="dimensionless" default="-999"> 279 270 <DESCRIPTION>number of detections in z filter</DESCRIPTION> … … 356 347 <FIELD name="zE2" arraysize="1" datatype="float" unit="dimensionless" default="-999"> 357 348 <DESCRIPTION>polarization, KSB-corrected 2Mxy / (Mxx + Myy)</DESCRIPTION> 358 </FIELD>359 <FIELD name="yStackID" arraysize="1" datatype="long" unit="dimensionless" default="NA">360 <DESCRIPTION>stack image id (how to carry through IPP+DVO</DESCRIPTION>361 349 </FIELD> 362 350 <FIELD name="ynTotal" arraysize="1" datatype="short" unit="dimensionless" default="-999"> … … 457 445 <DESCRIPTION>IPP object number</DESCRIPTION> 458 446 </FIELD> 447 <FIELD name="randomForcedObjID" arraysize="1" datatype="long" unit="dimensionless" default="NA"> 448 <DESCRIPTION>random number</DESCRIPTION> 449 </FIELD> 459 450 <FIELD name="nDetections" arraysize="1" datatype="short" unit="dimensionless" default="-999"> 460 451 <DESCRIPTION>total number of detection measurements in all filters</DESCRIPTION> … … 463 454 <DESCRIPTION>batch id</DESCRIPTION> 464 455 </FIELD> 465 <FIELD name="gStackID" arraysize="1" datatype="long" unit="dimensionless" default="NA">466 <DESCRIPTION>stack image id (how to carry through IPP+DVO</DESCRIPTION>467 </FIELD>468 456 <FIELD name="gLensObjSmearX11" arraysize="1" datatype="float" unit="arcsec^-2" default="-999"> 469 457 <DESCRIPTION>per-object smear polarizability X11 term</DESCRIPTION> … … 526 514 <DESCRIPTION>psf model shear polarizability E2 term</DESCRIPTION> 527 515 </FIELD> 528 <FIELD name="rStackID" arraysize="1" datatype="long" unit="dimensionless" default="NA">529 <DESCRIPTION>stack image id (how to carry through IPP+DVO</DESCRIPTION>530 </FIELD>531 516 <FIELD name="rLensObjSmearX11" arraysize="1" datatype="float" unit="arcsec^-2" default="-999"> 532 517 <DESCRIPTION>per-object smear polarizability X11 term</DESCRIPTION> … … 589 574 <DESCRIPTION>psf model shear polarizability E2 term</DESCRIPTION> 590 575 </FIELD> 591 <FIELD name="iStackID" arraysize="1" datatype="long" unit="dimensionless" default="NA">592 <DESCRIPTION>stack image id (how to carry through IPP+DVO</DESCRIPTION>593 </FIELD>594 576 <FIELD name="iLensObjSmearX11" arraysize="1" datatype="float" unit="arcsec^-2" default="-999"> 595 577 <DESCRIPTION>per-object smear polarizability X11 term</DESCRIPTION> … … 652 634 <DESCRIPTION>psf model shear polarizability E2 term</DESCRIPTION> 653 635 </FIELD> 654 <FIELD name="zStackID" arraysize="1" datatype="long" unit="dimensionless" default="NA">655 <DESCRIPTION>stack image id (how to carry through IPP+DVO</DESCRIPTION>656 </FIELD>657 636 <FIELD name="zLensObjSmearX11" arraysize="1" datatype="float" unit="arcsec^-2" default="-999"> 658 637 <DESCRIPTION>per-object smear polarizability X11 term</DESCRIPTION> … … 714 693 <FIELD name="zLensPSFShearE2" arraysize="1" datatype="float" unit="dimensionless" default="-999"> 715 694 <DESCRIPTION>psf model shear polarizability E2 term</DESCRIPTION> 716 </FIELD>717 <FIELD name="yStackID" arraysize="1" datatype="long" unit="dimensionless" default="NA">718 <DESCRIPTION>stack image id (how to carry through IPP+DVO</DESCRIPTION>719 695 </FIELD> 720 696 <FIELD name="yLensObjSmearX11" arraysize="1" datatype="float" unit="arcsec^-2" default="-999"> -
trunk/ippToPsps/jython/diffobjectbatch.py
r37927 r38090 288 288 sqlLine.group("ippObjID", "OBJ_ID + (CAT_ID << 32)") # NOTE: shift by 32 bits exactly 289 289 sqlLine.group("surveyID", "'" + str(self.surveyID) + "'") 290 sqlLine.group("random ID", "FLOOR(RAND("+str(self.batchID)+")*9223372036854775807)") # XXX where does this number come from??290 sqlLine.group("randomDiffObjID", "FLOOR(RAND("+str(self.batchID)+")*9223372036854775807)") # XXX where does this number come from?? 291 291 sqlLine.group("batchID", "'" + str(self.batchID) + "'") 292 292 sqlLine.group("dvoRegionID", "CAT_ID") -
trunk/ippToPsps/jython/forcedobjectbatch.py
r37927 r38090 328 328 sqlLine.group("ippObjID", "OBJ_ID + (CAT_ID << 32)") # NOTE: shift by 32 bits exactly 329 329 sqlLine.group("batchID", "'" + str(self.batchID) + "'") 330 sqlLine.group("randomForcedObjID", "FLOOR(RAND("+str(self.batchID)+")*9223372036854775807)") 330 331 sqlLine.group("nDetections", "'0'") 331 332 sql = sqlLine.makeRaw(") SELECT ", " FROM " + cptTableName) … … 354 355 sqlLine.group("objID", "objID") 355 356 sqlLine.group("uniquePspsFOid","uniquePspsFOid") 357 sqlLine.group("randomForcedObjID","randomForcedObjID") 356 358 sqlLine.group("ippObjID", "ippObjID") 357 359 sqlLine.group("batchID", "batchID") 358 360 sqlLine.group("nDetections", "nDetections") 359 sqlLine.group("gStackID", "gStackID")360 sqlLine.group("rStackID", "rStackID")361 sqlLine.group("iStackID", "iStackID")362 sqlLine.group("zStackID", "zStackID")363 sqlLine.group("yStackID", "yStackID")364 361 365 362 sql = sqlLine.makeRaw(") SELECT ", " FROM ForcedMeanObject") -
trunk/ippToPsps/jython/gpc1db.py
r37935 r38090 113 113 114 114 stage = "diff" 115 sql = "SELECT DISTINCT stage_extra1, radeg,decdeg\115 sql = "SELECT stage_id, avg(radeg),avg(decdeg) \ 116 116 FROM addRun \ 117 117 JOIN addProcessedExp using (add_id) \ … … 140 140 AND radeg BETWEEN " + str(minRA) + " AND " + str(maxRA) + " \ 141 141 AND dateobs >= '" + tstart + "'\ 142 AND dateobs <= '" + tend + "' "143 142 AND dateobs <= '" + tend + "'\ 143 GROUP BY stage_id" 144 144 145 145 elif batchType == "FW": 146 146 147 147 stage = "fullforce" 148 sql = "SELECT DISTINCT add_id, radeg, decdegFROM fullForceInput \148 sql = "SELECT stage_id, avg(radeg), avg(decdeg) FROM fullForceInput \ 149 149 JOIN addRun ON(fullForceInput.ff_id = addRun.stage_id AND fullForceInput.warp_id = addRun.stage_extra1) \ 150 150 JOIN minidvodbRun USING(minidvodb_name) \ … … 167 167 AND radeg BETWEEN " + str(minRA) + " AND " + str(maxRA) + " \ 168 168 AND mjd_obs >= (to_days('" + tstart + "')-678941) \ 169 AND mjd_obs <= (to_days('" + tend + "') - 678941) " 169 AND mjd_obs <= (to_days('" + tend + "') - 678941) \ 170 GROUP BY stage_id" 170 171 171 172 try: -
trunk/ippToPsps/pspsschema/SchemaNew20.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/DiffDetObject
r38088 r38090 5 5 ippObjID dimensionless BIGINT 8 NA IPP object number 6 6 surveyID dimensionless TINYINT 1 255 Survey ID 7 skyCellID dimensionless REAL 4 -999 single float giving PrimaryCell.SkyCell identifier8 7 htmID dimensionless BIGINT 8 NA HTM index 9 8 zoneID dimensionless INT 4 NA Zone index 10 random ID dimensionless BIGINT 8 0 Random integer between 0 and 2^32 = 4,394,967,296 remaining ramdom integer 09 randomDiffObjID dimensionless BIGINT 8 0 Random integer between 0 and 2^32 = 4,394,967,296 remaining ramdom integer 0 11 10 batchID dimensionless BIGINT 8 -999 12 11 dvoRegionID dimensionless INT 4 -999 identifier to dvo spatial region -
trunk/ippToPsps/pspsschema/SchemaNew20.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/DiffDetObject.txt
r38088 r38090 5 5 ippObjID = dvo:cpt.objID | cpt.catID <<32 6 6 surveyID = ipptopsps 7 skyCellID = smf header ?? how does this work for objects8 7 htmID = PSPS 9 8 zoneID = PSPS 10 random ID = ipptopsps9 randomDiffObjID = ipptopsps 11 10 batchID = ipptopsps 12 11 dvoRegionID = dvo:cpt:catID -
trunk/ippToPsps/pspsschema/SchemaNew20.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/ForcedMeanLensing
r38088 r38090 3 3 uniquePspsFOid dimensionless BIGINT 8 NA unique id supplied by ipptopsps 4 4 ippObjID dimensionless BIGINT 8 NA IPP object identifier 5 randomForcedMeanObjID dimensionless BIGINT 8 NA random number for this object 5 6 nDetections dimensionless SMALLINT 2 -999 total number of detection measurements in all filters 6 7 batchID dimensionless BIGINT 8 NA batch id 7 8 ----------------------------------------------------- replicate to bottom for each filter 8 gStackID dimensionless INT 4 stack image id (how to carry through IPP + DVO)9 9 gLensObjSmearX11 arcsec^-2 REAL 4 -999 per-object smear polarizability X11 term 10 10 gLensObjSmearX12 arcsec^-2 REAL 4 -999 per-object smear polarizability X12 term -
trunk/ippToPsps/pspsschema/SchemaNew20.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/ForcedMeanLensing.txt
r38088 r38090 3 3 uniquePspsFOid = ipptopsps 4 4 ippObjID = cpt.objID | cpt.catID << 32 5 randomForcedObjID = ipptopsps 5 6 nDetections = sql sum of cps.NCODE (xnTotal) 6 7 batchID = ipptopsps 7 8 ---------------- = 8 gStackID = ipptopsps / gpc1 db9 9 gLensObjSmearX11 = cpy.X11_SM_OBJ 10 10 gLensObjSmearX12 = cpy.X12_SM_OBJ -
trunk/ippToPsps/pspsschema/SchemaNew20.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/ForcedMeanObject
r38088 r38090 3 3 uniquePspsFOid dimensionless BIGINT 8 NA unique id supplied by ipptopsps 4 4 ippObjID dimensionless BIGINT 8 NA IPP object identifier 5 randomForcedObjID dimensionless BIGINT 8 NA random number generated by ipptopsps 5 6 nDetections dimensionless SMALLINT 2 -999 total number of detection measurements in all filters 6 7 batchID dimensionless BIGINT 8 NA batch id 7 8 ----------------------------------------------------- replicate to bottom for each filter 8 gStackID dimensionless INT 4 stack image id (how to carry through IPP + DVO)9 9 gnTotal dimensionless SMALLINT 2 -999 number of detections in g filter 10 10 gnIncPSFFlux dimensionless SMALLINT 2 -999 number of detections included in robust psf mean in g filter -
trunk/ippToPsps/pspsschema/SchemaNew20.0/PSPS_TABLES/Fundamental_IPP_Data_Product_Tables/ForcedMeanObject.txt
r38088 r38090 3 3 uniquePspsFOid = ipptopsps 4 4 ippObjID = cpt.objID | cpt.catID << 32 5 randomForcedObjID = ipptopsps 5 6 nDetections = sql sum of cps.NCODE (xnTotal) 6 7 batchID = ipptopsps 7 8 ---------------- = 8 gStackID = ipptopsps / gpc1 db9 9 gnTotal = cps.NWARP 10 10 gnIncPSFFlux = cps.NUSED_WRP
Note:
See TracChangeset
for help on using the changeset viewer.
