Changeset 36716
- Timestamp:
- May 1, 2014, 1:46:56 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/stackbatch.py (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/stackbatch.py
r36715 r36716 84 84 self.logger.infoPair ("finding fits file for: ","g.00000") 85 85 gfits = gpc1Db.getStackStageCmf(skychunk.dvoLabel, gstackID) 86 self.gfits = gfits 86 87 if rstackID > 0: 87 88 self.logger.infoPair ("finding fits file for: ","r.00000") 88 89 rfits = gpc1Db.getStackStageCmf(skychunk.dvoLabel, rstackID) 90 self.rfits = rfits 89 91 if istackID > 0: 90 92 self.logger.infoPair ("finding fits file for: ","i.00000") 91 93 ifits = gpc1Db.getStackStageCmf(skychunk.dvoLabel, istackID) 94 self.ifits = ifits 92 95 if zstackID > 0: 93 96 self.logger.infoPair ("finding fits file for: ","z.00000") 94 97 zfits = gpc1Db.getStackStageCmf(skychunk.dvoLabel, zstackID) 98 self.zfits = zfits 95 99 if ystackID > 0: 96 100 self.logger.infoPair ("finding fits file for: ","y.00000") 97 101 yfits = gpc1Db.getStackStageCmf(skychunk.dvoLabel, ystackID) 102 self.yfits = yfits 98 103 99 104 #from each of those get self.gheader, self.rheader, etc. … … 104 109 self.logger.errorPair("could not read FITS PHU for ",gstackID) 105 110 raise 111 self.gheader = gheader 106 112 if rstackID > 0: 107 113 if rfits: … … 110 116 self.logger.errorPair("could not read FITS PHU for ",rstackID) 111 117 raise 118 self.rheader = rheader 112 119 if istackID > 0: 113 120 if ifits: … … 116 123 self.logger.errorPair("could not read FITS PHU for ",istackID) 117 124 raise 125 self.iheader = iheader 118 126 if zstackID > 0: 119 127 if zfits: … … 122 130 self.logger.errorPair("could not read FITS PHU for ",zstackID) 123 131 raise 132 self.zheader = zheader 124 133 if ystackID > 0: 125 134 if yfits: … … 128 137 self.logger.errorPair("could not read FITS PHU for ",ystackID) 129 138 raise 130 139 self.yheader = yheader 131 140 # get stack meta data 141 self.gstackID = gstackID 142 self.rstackID = rstackID 143 self.istackID = istackID 144 self.zstackID = zstackID 145 self.ystackID = ystackID 146 132 147 metastackid = -999 133 148 if gstackID > 0: … … 180 195 # self.skycell = str( (tessID * (10000 * 1000)) + (int(self.projectioncell) * 1000) + cellID ) 181 196 182 ##self.analysisVer = meta[2];197 self.analysisVer = meta[2]; 183 198 184 199 #self.expTime = gpc1Db.getStackExpTime(self.id) 185 ##self.expTime = self.header['EXPTIME'] 186 200 187 201 # delete PSPS tables 188 202 self.scratchDb.dropTable("gStackMeta") … … 224 238 225 239 # create an output filename, which is {stackID}.FITS 240 self.logger.infoPair( "self.id", self.id) 241 self.logger.infoPair ("self.localOutPath",self.localOutPath) 226 242 self.outputFitsFile = "%08d.FITS" % self.id 227 243 self.outputFitsPath = "%s/%s" % (self.localOutPath, self.outputFitsFile) 228 244 self.logger.infoPair("self.outputFitsFile",self.outputFitsFile) 245 229 246 # set some constants 230 247 self.historyModNum = "0" … … 491 508 Populates the StackMeta table, mainly from dictionary values found in IPP FITS header 492 509 ''' 493 def populateStackMeta(self ):510 def populateStackMeta(self,filter): 494 511 495 512 self.logger.infoPair("Procesing table", "StackMeta") … … 971 988 # dec is reserved in MySQL, so STILTS replaces if with dec_, which is not the name of 972 989 # the column in PSPS 973 self.scratchDb.execute("ALTER TABLE StackObject CHANGE dec_ `dec` double") 990 ## we don't have that in stacks anymore (it is now gdec/rdec/etc) 991 ##self.scratchDb.execute("ALTER TABLE StackObject CHANGE dec_ `dec` double") 974 992 975 993 return True
Note:
See TracChangeset
for help on using the changeset viewer.
