IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3837


Ignore:
Timestamp:
May 4, 2005, 11:17:54 AM (21 years ago)
Author:
rhl
Message:

misc cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pois/python/pois.py

    r3813 r3837  
    157157    # Read inputs
    158158    imageRegion = psLib.psRegionAlloc(0, 0, 0, 0)
    159     reference = psLib.psFitsAlloc(config.refFile)
    160     refImage = psLib.psFitsReadImage(None, reference, imageRegion, 0)
    161 
     159
     160    fd = psLib.psFitsAlloc(config.refFile)
     161    refImage = psLib.psFitsReadImage(None, fd, imageRegion, 0)
     162    del fd
    162163    psTrace("pois", 3, ("Read %s: %dx%d\n" % (config.refFile, refImage.numCols, refImage.numRows)))
    163     del reference
    164 
    165     input = psLib.psFitsAlloc(config.inFile)
    166     #inHeader = psLib.psFitsReadHeader(None, input)
    167     inImage = psLib.psFitsReadImage(None, input, imageRegion, 0)
     164
     165    fd = psLib.psFitsAlloc(config.inFile)
     166    inImage = psLib.psFitsReadImage(None, fd, imageRegion, 0)
     167    del fd
    168168    psTrace("pois", 3, ("Read %s: %dx%d\n" % (config.inFile, inImage.numCols, inImage.numRows)))
    169     del input; del imageRegion
     169   
     170    del imageRegion
    170171
    171172    if section:
Note: See TracChangeset for help on using the changeset viewer.