IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38807


Ignore:
Timestamp:
Oct 6, 2015, 5:31:07 PM (11 years ago)
Author:
watersc1
Message:

Change to detectionbatch.py to check that the fringe is populated before adding detrend4

File:
1 edited

Legend:

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

    r38802 r38807  
    242242        sqlLine.group("detrend2",         self.getKeyValue(header, 'DETREND.DARK'))
    243243        sqlLine.group("detrend3",         self.getKeyValue(header, 'DETREND.FLAT'))
    244         sqlLine.group("detrend4",         self.getKeyValue(header, 'DETREND.FRINGE'))
    245244    #what happens if it can't find it?
     245        # CZW: I think this should properly trap the fringe
     246        if self.getKeyValue(header, 'DETREND.FRINGE') != "NULL":
     247            sqlLine.group("detrend4",         self.getKeyValue(header, 'DETREND.FRINGE'))
     248
    246249        sqlLine.group("detrend5",         self.getKeyValue(header, 'DETREND.NOISEMAP'))
    247250        sqlLine.group("detrend6",         self.getKeyValue(header, 'DETREND.NONLIN'))
Note: See TracChangeset for help on using the changeset viewer.