IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 20, 2015, 4:05:47 PM (11 years ago)
Author:
watersc1
Message:

Change to mkcmf.c to make index=2 petRadErr = NAN to exercise a case for ipp2psps. Change to stackbatch.py in ipp2psps to catch these NAN values and convert them into a best-guess of 10% of the petRad value.

File:
1 edited

Legend:

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

    r38891 r38906  
    854854            raise
    855855
     856        # modify petRadiusErr if it is not set correctlyu
     857
     858        sqlLine = sqlUtility("UPDATE " + tablename + " AS a SET")
     859        sqlLine.group("a." + filter + "petRadiusErr", "a." + filter + "petRadius * 0.1")
     860        sql = sqlLine.makeEquals("WHERE a." + filter + "petRadiusErr IS NULL")
     861
     862        try: self.scratchDb.execute(sql)
     863        except:
     864            self.logger.errorPair('failed sql',sql)
     865            raise
     866
     867
    856868    '''
    857869    Populates the StackApFlx table
Note: See TracChangeset for help on using the changeset viewer.