Changeset 39467 for trunk/ippToPsps/jython/dvo.py
- Timestamp:
- Mar 15, 2016, 2:16:07 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/dvo.py (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/dvo.py
r39153 r39467 95 95 self.correctDvo = True 96 96 if not self.loadSkyTable(): 97 self.correctDvo = False98 return 97 os._exit(1) 98 99 99 if not self.loadPhotcodes(): 100 self.correctDvo = False101 return 100 os._exit(1) 101 102 102 if not self.loadImages(): 103 self.correctDvo = False104 return 103 os._exit(1) 104 105 105 106 106 ''' … … 108 108 ''' 109 109 def loadPhotcodes(self): 110 111 # go no further if we've already partly ingested a different DVO112 if not self.correctDvo: return113 110 114 111 if (self.skychunk.dvoLocation == 'none'): 115 112 # print "do not load Photcodes for place-holder DVO " + self.skychunk.dvoLocation 116 return False113 return True 117 114 118 115 # check if we have up-to-date version … … 120 117 if self.scratchDb.alreadyImportedThisDvoTable(path): 121 118 self.logger.debugPair("DVO Photcodes.dat file", "up-to-date") 122 return 119 return True 123 120 124 121 self.logger.infoSeparator() … … 132 129 133 130 self.scratchDb.setImportedThisDvoTable(path) 131 return True 134 132 135 133 ''' … … 137 135 ''' 138 136 def loadImages(self): 139 140 # go no further if we've already partly ingested a different DVO141 if not self.correctDvo: return142 137 143 138 # check if we have up-to-date version … … 145 140 if self.scratchDb.alreadyImportedThisDvoTable(path): 146 141 self.logger.debugPair("DVO Images.dat file", "up-to-date") 147 return 142 return True 148 143 149 144 self.logger.infoSeparator() … … 158 153 159 154 self.scratchDb.setImportedThisDvoTable(path) 155 return True 160 156 161 157 ''' … … 227 223 def loadSkyTable(self): 228 224 229 # go no further if we've already partly ingested a different DVO230 if not self.correctDvo: return False231 232 225 if (self.skychunk.dvoLocation == 'none'): 233 226 # print "do not load SkyTable for place-holder DVO " + self.skychunk.dvoLocation 234 return False227 return True 235 228 236 229 path = self.skychunk.dvoLocation + "/SkyTable.fits" 237 230 if self.scratchDb.alreadyImportedThisDvoTable(path): 238 231 self.logger.debugPair("DVO SkyTable.fits file", "up-to-date") 239 return False232 return True 240 233 241 234 # self.logger.infoSeparator() … … 296 289 def setSkyArea(self, minRa=-1., maxRa=361., minDec=-91., maxDec=91): 297 290 298 # go no further if we've already partly ingested a different DVO299 if not self.correctDvo: return300 301 291 if (maxRa - minRa <= 0) or (maxDec - minDec) <= 0: 302 292 self.logger.errorPair("Zero range in either RA or Dec",
Note:
See TracChangeset
for help on using the changeset viewer.
