IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 13, 2015, 5:19:12 AM (11 years ago)
Author:
eugene
Message:

adding flags to galphot

Location:
trunk/Ohana/src/libdvo
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libdvo/include/dvo.h

    r39047 r39125  
    138138  ID_MEAS_PHOTOM_KRON    = 0x00400000,  // this measurement is used for the mean kron mag
    139139} DVOMeasureFlags;
     140
     141typedef enum {
     142  ID_GALPHOT_FAIL_FIT       = 0x00000001, // fit failed to converge or was degenerate
     143  ID_GALPHOT_TOO_FEW        = 0x00000002, // not enough points to fit the model
     144  ID_GALPHOT_OUT_OF_RANGE   = 0x00000004, // fit minimum too far outside data range
     145  ID_GALPHOT_BAD_ERROR      = 0x00000008, // invalid error (nan or inf)
     146} DVOGalphotFlags;
    140147
    141148// XXX we used these names previously in markstar: replace with ID_MEAS_ARTIFACT
  • trunk/Ohana/src/libdvo/src/dvo_catalog.c

    r39106 r39125  
    552552  galphot->imageID = -1;
    553553  galphot->averef  = 0;
     554  galphot->flags   = 0;
    554555
    555556  galphot->photcode = 0;
  • trunk/Ohana/src/libdvo/src/dvo_convert_PS1_V5.c

    r39106 r39125  
    10311031    out[i].imageID       = in[i].imageID;
    10321032    out[i].averef        = in[i].averef;
     1033    out[i].flags         = in[i].flags;
    10331034    out[i].photcode      = in[i].photcode;
    10341035    out[i].modelType     = in[i].modelType;
     
    10651066    out[i].imageID       = in[i].imageID;
    10661067//  out[i].averef        = in[i].averef;
     1068//  out[i].flags         = in[i].flags;
    10671069    out[i].photcode      = in[i].photcode;
    10681070    out[i].modelType     = in[i].modelType;
     
    10971099    out[i].imageID       = in[i].imageID;
    10981100    out[i].averef        = in[i].averef;
     1101    out[i].flags         = in[i].flags;
    10991102    out[i].photcode      = in[i].photcode;
    11001103    out[i].modelType     = in[i].modelType;
  • trunk/Ohana/src/libdvo/src/dvo_photcode_ops.c

    r38986 r39125  
    19441944  }
    19451945
    1946 GALPHOT_FIELD(GAL_MAG,         mag)           
    1947 GALPHOT_FIELD(GAL_MAG_ERR,     magErr)    
    1948 GALPHOT_FIELD(GAL_MAJ,         majorAxis)             
     1946GALPHOT_FIELD(GAL_MAG,         mag)
     1947GALPHOT_FIELD(GAL_MAG_ERR,     magErr)
     1948GALPHOT_FIELD(GAL_MAJ,         majorAxis)
    19491949GALPHOT_FIELD(GAL_MAJ_ERR,     majorAxisErr)
    1950 GALPHOT_FIELD(GAL_MIN,         minorAxis)             
    1951 GALPHOT_FIELD(GAL_MIN_ERR,     minorAxisErr)    
    1952 GALPHOT_FIELD(GAL_THETA,       theta)      
    1953 GALPHOT_FIELD(GAL_THETA_ERR,   thetaErr)  
     1950GALPHOT_FIELD(GAL_MIN,         minorAxis)
     1951GALPHOT_FIELD(GAL_MIN_ERR,     minorAxisErr)
     1952GALPHOT_FIELD(GAL_THETA,       theta)
     1953GALPHOT_FIELD(GAL_THETA_ERR,   thetaErr)
    19541954GALPHOT_FIELD(GAL_INDEX,       index)     
    19551955GALPHOT_FIELD(GAL_CHISQ,       chisq)     
    19561956GALPHOT_FIELD(GAL_NPIX,        Npix)       
     1957GALPHOT_FIELD(GAL_FLAGS,       flags)       
    19571958GALPHOT_FIELD(GAL_TYPE,        modelType)       
Note: See TracChangeset for help on using the changeset viewer.