Changeset 32036 for trunk/ippToPsps
- Timestamp:
- Aug 4, 2011, 11:52:43 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/fits.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/fits.py
r31975 r32036 29 29 30 30 # ok, we have a file, now copy it locally to save on NFS overhead 31 self.logger. infoPair("FITS file", self.originalPath)31 self.logger.debugPair("FITS file", self.originalPath) 32 32 self.localCopyPath = self.localDir + "/temp.fits" 33 33 shutil.copy2(self.originalPath, self.localCopyPath) … … 36 36 self.file = open(self.localCopyPath) 37 37 self.header = self.parseHeader() 38 self.logger. infoPair("FITS local copy", self.localCopyPath)39 self.logger. infoPair("FITS primary header", "%d cards found" % len(self.header))38 self.logger.debugPair("FITS local copy", self.localCopyPath) 39 self.logger.debugPair("FITS primary header", "%d cards found" % len(self.header)) 40 40 41 41 # move file pointer back to the start of the file 42 42 self.rewindToStart() 43 44 ''' 45 Returns count of 'cards' found in primary header 46 ''' 47 def getPrimaryHeaderCardCount(self): 48 return len(self.header) 43 49 44 50 ''' … … 47 53 def getPath(self): 48 54 return self.localCopyPath 55 56 ''' 57 Returns the path to the LOCAL COPY of this FITS file 58 ''' 59 def getOriginalPath(self): 60 return self.originalPath 49 61 50 62 '''
Note:
See TracChangeset
for help on using the changeset viewer.
