| | 1 | === IPP DVO Database Flags === |
| | 2 | |
| | 3 | In the DVO Database, there are bitmask flags associated with images, objects, and detection measurements. For the measurements, there are two types of flags: those generated by the pixel-level photometry analysis (photflags) and those associated with analyses made within the database itself (dbflags). |
| | 4 | |
| | 5 | For photflags, a summary can be found at the following location, along with an explanation of using bitmask flags. |
| | 6 | |
| | 7 | http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/IPP_Detection_Bitmasks |
| | 8 | |
| | 9 | For dbflags, the values are listed below and defined in: |
| | 10 | |
| | 11 | http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/browser/trunk/Ohana/src/libdvo/include/dvo.h |
| | 12 | |
| | 13 | The dbflags are not currently (2010.10.15) as firmly defined or set as the photflags: Many of the values are not currently used and may be changed or replaced. |
| | 14 | |
| | 15 | Flags associated with measurements (mextract.dbflags == mextract.db_flags) |
| | 16 | {{{ |
| | 17 | ID_MEAS_NOCAL = 0x00000001, // detection ignored for this analysis (photcode, time range) -- internal only |
| | 18 | ID_MEAS_POOR_PHOTOM = 0x00000002, // detection is photometry outlier |
| | 19 | ID_MEAS_SKIP_PHOTOM = 0x00000004, // detection was ignored for photometry measurement |
| | 20 | ID_MEAS_AREA = 0x00000008, // detection near image edge |
| | 21 | ID_MEAS_POOR_ASTROM = 0x00000010, // detection is astrometry outlier |
| | 22 | ID_MEAS_SKIP_ASTROM = 0x00000020, // detection was ignored for astrometry measurement |
| | 23 | ID_MEAS_USED_OBJ = 0x00000040, // detection was used during opdate objects |
| | 24 | ID_MEAS_USED_CHIP = 0x00000080, // detection was used during update chips |
| | 25 | ID_MEAS_BLEND_MEAS = 0x00000100, // detection is within radius of multiple objects |
| | 26 | ID_MEAS_BLEND_OBJ = 0x00000200, // multiple detections within radius of object |
| | 27 | ID_MEAS_UNDEF_3 = 0x00000400, // unused |
| | 28 | ID_MEAS_UNDEF_4 = 0x00000800, // unused |
| | 29 | ID_MEAS_BLEND_MEAS_X = 0x00001000, // detection is within radius of multiple objects across catalogs |
| | 30 | ID_MEAS_ARTIFACT = 0x00002000, // detection is thought to be non-astronomical |
| | 31 | ID_MEAS_UNDEF_5 = 0x00004000, // unused |
| | 32 | ID_MEAS_UNDEF_6 = 0x00008000, // unused |
| | 33 | }}} |
| | 34 | |
| | 35 | Flags associated with average objects (avextract.flags == avextract.objflags == avextract.obj_flags == mextract.objflags == mextract.obj_flags) |
| | 36 | {{{ |
| | 37 | ID_STAR_FEW = 0x00000001, // used within relphot: skip star |
| | 38 | ID_STAR_POOR = 0x00000002, // used within relphot: skip star |
| | 39 | ID_PROPER = 0x00000400, // star with large proper motion |
| | 40 | ID_TRANSIENT = 0x00001000, // is this mutually exclusive with USNO? |
| | 41 | ID_VARIABLE = 0x00002000, // not currently set? |
| | 42 | ID_ASTEROID = 0x00002000, // identified with an asteroid |
| | 43 | ID_BAD_OBJECT = 0x00004000, // if all measurements are bad, set this bit |
| | 44 | ID_MOVING = 0x00008000, // is a moving object |
| | 45 | ID_ROCK = 0x0000a000, // 0x8000 + 0x2000 |
| | 46 | ID_GHOST = 0x0000c001, // 0x8000 + 0x4000 + 0x0001 |
| | 47 | ID_TRAIL = 0x0000c002, // 0x8000 + 0x4000 + 0x0002 |
| | 48 | ID_BLEED = 0x0000c003, // 0x8000 + 0x4000 + 0x0003 |
| | 49 | ID_COSMIC = 0x0000c004, // 0x8000 + 0x4000 + 0x0004 |
| | 50 | ID_STAR_FIT_AVE = 0x00010000, // average position fitted |
| | 51 | ID_STAR_FIT_PM = 0x00020000, // proper motion fitted |
| | 52 | ID_STAR_FIT_PAR = 0x00040000, // parallax fitted |
| | 53 | ID_STAR_USE_AVE = 0x00080000, // average position used (not PM or PAR) |
| | 54 | ID_STAR_USE_PM = 0x00100000, // proper motion used (not AVE or PAR) |
| | 55 | ID_STAR_USE_PAR = 0x00200000, // parallax used (not AVE or PM) |
| | 56 | ID_OBJ_EXT = 0x01000000, // extended in our data (eg, PS) |
| | 57 | ID_OBJ_EXT_ALT = 0x02000000, // extended in external data (eg, 2MASS) |
| | 58 | ID_OBJ_GOOD = 0x04000000, // good-quality measurement in our data (eg, PS) |
| | 59 | ID_OBJ_GOOD_ALT = 0x08000000, // good-quality measurement in external data (eg, 2MASS) |
| | 60 | }}} |
| | 61 | |
| | 62 | Flags associated with images (imextract.flags == imextract.imflags) |
| | 63 | {{{ |
| | 64 | ID_IMAGE_NEW = 0x00000000, /* no calibrations yet attempted */ |
| | 65 | ID_IMAGE_PHOTOM_NOCAL = 0x00000001, /* user-set value used within relphot: ignore */ |
| | 66 | ID_IMAGE_PHOTOM_POOR = 0x00000002, /* relphot says image is bad (dMcal > limit) */ |
| | 67 | ID_IMAGE_PHOTOM_SKIP = 0x00000004, /* user-set value: assert that this image has bad photometry */ |
| | 68 | ID_IMAGE_PHOTOM_FEW = 0x00000008, /* currently too few measurements for photometry */ |
| | 69 | ID_IMAGE_ASTROM_NOCAL = 0x00000010, /* user-set value used within relastro: ignore */ |
| | 70 | ID_IMAGE_ASTROM_POOR = 0x00000020, /* relastro says image is bad (dR,dD > limit) */ |
| | 71 | ID_IMAGE_ASTROM_FAIL = 0x00000040, /* relastro fit diverged, fit not applied */ |
| | 72 | ID_IMAGE_ASTROM_SKIP = 0x00000080, /* user-set value: assert that this image has bad astrometry */ |
| | 73 | ID_IMAGE_ASTROM_FEW = 0x00000100, /* currently too few measurements for astrometry */ |
| | 74 | }}} |