Changeset 35417 for trunk/ippToPsps/jython/fits.py
- Timestamp:
- Apr 19, 2013, 4:35:54 PM (13 years ago)
- Location:
- trunk/ippToPsps
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
jython/fits.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20130307/ippToPsps (added) merged: 35350,35352,35369,35402-35404,35413
- Property svn:mergeinfo changed
-
trunk/ippToPsps/jython/fits.py
r35097 r35417 87 87 88 88 2880 is the magic number that the FITS format uses to break up data: extensions always begin on multiples of 2880 bytes 89 90 Note that we may not be able to distinguish the case where a header is expected from one where the absence of a header 91 just tells us that the header is not available. In some cases, we may not want to emit the error message ("not found") 92 93 XXX WOW! this block is reading the entire file to get the header. 94 major inefficiency... I thought the FITS interactions all went 95 through STILTS 89 96 ''' 90 def findAndReadHeader(self, name ):97 def findAndReadHeader(self, name, VERBOSE): 91 98 92 99 found = False … … 114 121 115 122 self.file.seek(origIndex, 0) 116 self.logger.errorPair("Could not read header", name)123 if VERBOSE: self.logger.errorPair("Could not read header", name) 117 124 return 118 125 else:
Note:
See TracChangeset
for help on using the changeset viewer.
