IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34649 for trunk


Ignore:
Timestamp:
Nov 1, 2012, 11:36:15 AM (14 years ago)
Author:
bills
Message:

dvo SecFiltFlags defines a bit that doesn't fit in smallint. We need it so move it to
bit 17

File:
1 edited

Legend:

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

    r34639 r34649  
    116116            filterID = self.scratchDb.getFilterID(filter[1])
    117117
    118             # NOTE: mask of cps.FLAGS is required to insure that it fits in Object.{grizy}Flags (which is 16 bits)
    119             # DVO SecfiltFlags uses bit 24 (0x01 0000) which is out of range
     118            # NOTE: Manipulation of FLAGS from cpsTable is to move ID_SECF_OBJ_EXT flag (0x01000000)
     119            # from bit 24 to bit 13 so that it fits into the SMALLINT Object.Flags
    120120
    121121            sql = "UPDATE Object JOIN \
     
    133133                   ," + filter[1] + "20pct = MAG_20/1000 \
    134134                   ," + filter[1] + "80pct = MAG_80/1000 \
    135                    ," + filter[1] + "Flags = (0x7fff & FLAGS) \
     135                   ," + filter[1] + "Flags = (0x7fff & FLAGS) | ((FLAGS >> 11) & 0x2000) \
    136136                   ," + filter[1] + "StackDetectID = (10 * STACK_DETECT_ID) + " + str(filterID)
    137137
Note: See TracChangeset for help on using the changeset viewer.