Changeset 39071 for trunk/ippToPsps/jython/diffbatch.py
- Timestamp:
- Nov 7, 2015, 2:40:16 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/diffbatch.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/diffbatch.py
r39049 r39071 84 84 self.projectionID ={} 85 85 self.expID ={} 86 86 self.psfModelID = {} 87 self.psfFWHM = {} 88 self.psfFwhmMajor = {} 89 self.psfFwhmMinor = {} 90 87 91 # number is special - it is simply a list of diff skyfile IDs, used for 88 92 # looping over things … … 168 172 self.md5sum[num] = self.posFits[num].getMd5sum() 169 173 174 ## MEH adding psfFWHM info from header 175 ## -- XXX hard-wired platescale : 0.25 176 pltscale = 0.25 177 self.psfFwhmMajor[num] = pltscale * self.getKeyFloat(self.header[num], "%.8f", 'FWHM_MAJ') 178 self.psfFwhmMinor[num] = pltscale * self.getKeyFloat(self.header[num], "%.8f", 'FWHM_MIN') 179 self.psfFWHM[num] = 0.5*(self.psfFwhmMajor[num] + self.psfFwhmMinor[num]) 180 181 self.psfmodel_name[num] = self.getKeyValue(self.header[num], 'PSFMODEL') 182 self.psfmodelID[num] = self.scratchDb.getFitModelID(self.psfmodel_name[num]) 183 184 170 185 # drop the existing tables 171 186 … … 218 233 sqlLine.group("negImageID", self.negImageID[num]); 219 234 sqlLine.group("ippDiffID", self.ippDiffID[num]); 220 221 ## MEH adding projectionID -- want str for pre-0 in both?222 235 sqlLine.group("projectionID", str(self.projectionID[num])) 223 236 sqlLine.group("skycellID", str(self.skycellID[num])) … … 226 239 sqlLine.group("md5sum", str(self.md5sum[num])) 227 240 sqlLine.group("expTime", self.expTime[num]); 241 sqlLine.group("psfModelID", self.psfmodelID[num]) 242 sqlLine.group("psfFWHM", self.psfFWHM[num]) 243 sqlLine.group("psfWidMajor", self.psfFwhmMajor[num]) 244 sqlLine.group("psfWidMinor", self.psfFwhmMinor[num]) 245 sqlLine.group("psfTheta", self.getKeyFloat(header, "%.8f", 'ANGLE')) 246 sqlLine.group("numStamps", self.getKeyValue(self.header[num], 'SUBTRACTION.STAMPS')) 247 sqlLine.group("stampDevMean", self.getKeyFloat(self.header[num], "%.8e", 'SUBTRACTION.DEV.MEAN')) 248 sqlLine.group("stampDevRMS", self.getKeyFloat(self.header[num], "%.8e", 'SUBTRACTION.DEV.RMS')) 249 sqlLine.group("normalization", self.getKeyFloat(self.header[num], "%.8e", 'SUBTRACTION.NORM')) 250 sqlLine.group("convolveMax", self.getKeyFloat(self.header[num], "%.8e", 'SUBTRACTION.CONV.MAX')) 251 sqlLine.group("deconvolveMax", self.getKeyFloat(self.header[num], "%.8e", 'SUBTRACTION.DECONV.MAX')) 228 252 sqlLine.group("ctype1", self.getKeyValue(self.header[num], 'CTYPE1')); 229 253 sqlLine.group("ctype2", self.getKeyValue(self.header[num], 'CTYPE2'));
Note:
See TracChangeset
for help on using the changeset viewer.
