IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38906


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.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/mkcmf.c

    r38893 r38906  
    13141314      PETRO_MAG_ERR       [i] = fSN;
    13151315      PETRO_RADIUS        [i] = 8.0;
    1316       PETRO_RADIUS_ERR    [i] = 0.1;
     1316      if (i == 2) {
     1317        PETRO_RADIUS_ERR    [i] = NAN;
     1318      }
     1319      else {
     1320        PETRO_RADIUS_ERR    [i] = 0.1;
     1321      }
    13171322      PETRO_RADIUS_50     [i] = 4.0;
    13181323      PETRO_RADIUS_50_ERR [i] = 0.1;
  • 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.