IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 11, 2015, 11:08:06 AM (11 years ago)
Author:
eugene
Message:

use Ohana / fhead to read headers (ex PHU) so we avoid seek problems, etc; merge reading of exptime, zp, zperr, ninjected, magerf into the init methods of diff and stack batches

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/testCode.py

    r39068 r39103  
    9696        print "words[1]: " + words[1]
    9797
     98       
     99
    98100        # self.connectMysql(argv)
    99101        # self.importIppTables()
     
    118120    testcode.run(sys.argv)
    119121except: pass
     122
     123        # XXX a test of fits header reading:
     124        ## XX myFits = Fits(self.logger, self.config, sys.argv[2])
     125        ## XX
     126        ## XX for ix in range(7, -1, -1):
     127        ## XX     for iy in range(7, -1, -1):
     128        ## XX         if (ix == 0) and (iy == 0): continue
     129        ## XX         if (ix == 7) and (iy == 0): continue
     130        ## XX         if (ix == 0) and (iy == 7): continue
     131        ## XX         if (ix == 7) and (iy == 7): continue
     132        ## XX         extname = "XY%d%d.hdr" % (ix, iy)
     133        ## XX
     134        ## XX         header = myFits.findAndReadHeader(extname, False)
     135        ## XX         print "read " + extname
     136        ## XX
     137        ## XX os._exit(3)
     138
     139        ## the above works in loader.init()
Note: See TracChangeset for help on using the changeset viewer.