IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 5, 2015, 5:09:21 PM (11 years ago)
Author:
heather
Message:

schema 21 / sas 39 ipptopsps - random now float/double, forced object column names changed to be less confusing

File:
1 edited

Legend:

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

    r38290 r38397  
    173173                   ,ForcedMeanObject." + filter[1] + "nIncKronFlux    = NUSED_KRON_WRP \
    174174                   ,ForcedMeanObject." + filter[1] + "nIncApFlux      = NUSED_AP_WRP \
    175                    ,ForcedMeanObject." + filter[1] + "PSFFlux         = FLUX_PSF_WRP \
    176                    ,ForcedMeanObject." + filter[1] + "PSFFluxErr      = FLUX_PSF_WRP_ERR \
    177                    ,ForcedMeanObject." + filter[1] + "PSFFluxStd      = FLUX_PSF_WRP_STDEV \
    178                    ,ForcedMeanObject." + filter[1] + "KronFlux        = FLUX_KRON_WRP \
    179                    ,ForcedMeanObject." + filter[1] + "KronFluxErr     = FLUX_KRON_WRP_ERR \
    180                    ,ForcedMeanObject." + filter[1] + "KronFluxStd     = FLUX_KRON_WRP_STDEV \
    181                    ,ForcedMeanObject." + filter[1] + "ApFlux          = FLUX_AP_WRP \
    182                    ,ForcedMeanObject." + filter[1] + "ApFluxErr       = FLUX_AP_WRP_ERR \
    183                    ,ForcedMeanObject." + filter[1] + "ApFluxStd       = FLUX_AP_WRP_STDEV \
     175                   ,ForcedMeanObject." + filter[1] + "FPSFFlux         = FLUX_PSF_WRP \
     176                   ,ForcedMeanObject." + filter[1] + "FPSFFluxErr      = FLUX_PSF_WRP_ERR \
     177                   ,ForcedMeanObject." + filter[1] + "FPSFFluxStd      = FLUX_PSF_WRP_STDEV \
     178                   ,ForcedMeanObject." + filter[1] + "FKronFlux        = FLUX_KRON_WRP \
     179                   ,ForcedMeanObject." + filter[1] + "FKronFluxErr     = FLUX_KRON_WRP_ERR \
     180                   ,ForcedMeanObject." + filter[1] + "FKronFluxStd     = FLUX_KRON_WRP_STDEV \
     181                   ,ForcedMeanObject." + filter[1] + "FApFlux          = FLUX_AP_WRP \
     182                   ,ForcedMeanObject." + filter[1] + "FApFluxErr       = FLUX_AP_WRP_ERR \
     183                   ,ForcedMeanObject." + filter[1] + "FApFluxStd       = FLUX_AP_WRP_STDEV \
    184184                   ,ForcedMeanObject." + filter[1] + "Flags          = FLAGS "
    185185
     
    333333        sqlLine.group("ippObjID",        "OBJ_ID + (CAT_ID << 32)") # NOTE: shift by 32 bits exactly
    334334        sqlLine.group("batchID",         "'" + str(self.batchID) + "'")
    335         sqlLine.group("randomForcedObjID",        "FLOOR(RAND("+str(self.batchID)+")*9223372036854775807)")
     335        sqlLine.group("randomForcedObjID",        "RAND("+str(self.batchID)+")")
    336336        sqlLine.group("nDetections",      "'0'")
    337337        sql = sqlLine.makeRaw(") SELECT ", " FROM " + cptTableName)
Note: See TracChangeset for help on using the changeset viewer.