IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41349 for trunk


Ignore:
Timestamp:
Apr 28, 2020, 2:05:31 PM (6 years ago)
Author:
tdeboer
Message:

glint enum added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourceIO_Glints.c

    r41348 r41349  
    192192                if (!strcasecmp(glintType, "RIGHT")  && ((star->FP->x - glintLength) > 19500.))  continue;
    193193           
     194                //Set a glint type enum as well
     195                double glintTypeEnum = 0;
     196                if (!strcasecmp(glintType, "TOP"))  glintTypeEnum = 0;
     197                if (!strcasecmp(glintType, "BOTTOM"))  glintTypeEnum = 1;
     198                if (!strcasecmp(glintType, "LEFT"))  glintTypeEnum = 2;
     199                if (!strcasecmp(glintType, "RIGHT"))  glintTypeEnum = 3;
     200
    194201                //save the glint positions
    195202                psMetadata *row = psMetadataAlloc ();
     
    201208                psMetadataAdd (row, PS_LIST_TAIL, "GLINT_ANGLE", PS_DATA_F32, "glint angle (degrees)",        glintAngle/PM_RAD_DEG);
    202209                psMetadataAdd (row, PS_LIST_TAIL, "GLINT_TYPE",  PS_DATA_STRING, "glint type",                glintType);
     210                psMetadataAdd (row, PS_LIST_TAIL, "GLINT_TYPE_ENUM", PS_DATA_F32, "glint type enum",          glintTypeEnum);
    203211
    204212                psArrayAdd (table, 100, row);
Note: See TracChangeset for help on using the changeset viewer.