IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 27, 2018, 1:15:19 PM (8 years ago)
Author:
eugene
Message:

add hooks to query GALPHOT table in avextract, mextract

File:
1 edited

Legend:

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

    r40291 r40463  
    12721272# undef LENSFIELD
    12731273
    1274 # define GALPHOT_FIELD(NAME, VALUE) float GalphotValue_##NAME (PhotCode *code, dvoMagClassType class, GalPhot *galphot, int Ngalphot)
    1275 
    1276 GALPHOT_FIELD(GAL_MAG,         mag);           
    1277 GALPHOT_FIELD(GAL_MAG_ERR,     magErr);   
    1278 GALPHOT_FIELD(GAL_MAJ,         majorAxis);             
    1279 GALPHOT_FIELD(GAL_MAJ_ERR,     majorAxisErr);
    1280 GALPHOT_FIELD(GAL_MIN,         minorAxis);             
    1281 GALPHOT_FIELD(GAL_MIN_ERR,     minorAxisErr);   
    1282 GALPHOT_FIELD(GAL_THETA,       theta);     
    1283 GALPHOT_FIELD(GAL_THETA_ERR,   thetaErr); 
    1284 GALPHOT_FIELD(GAL_INDEX,       index);     
    1285 GALPHOT_FIELD(GAL_CHISQ,       chisq);     
    1286 GALPHOT_FIELD(GAL_NPIX,        Npix);       
    1287 GALPHOT_FIELD(GAL_FLAGS,       flags);       
    1288 GALPHOT_FIELD(GAL_TYPE,        modelType);       
     1274# define GALPHOT_FIELD(NAME, VALUE, TYPE, DEFAULT) TYPE GalphotValue_##NAME (PhotCode *code, dvoMagClassType class, GalPhot *galphot, int Ngalphot);
     1275
     1276//GALPHOT_FIELD(GAL_MAG,               mag);           
     1277//GALPHOT_FIELD(GAL_MAG_ERR,     magErr);   
     1278//GALPHOT_FIELD(GAL_MAJ,               majorAxis);             
     1279//GALPHOT_FIELD(GAL_MAJ_ERR,     majorAxisErr);
     1280//GALPHOT_FIELD(GAL_MIN,               minorAxis);             
     1281//GALPHOT_FIELD(GAL_MIN_ERR,     minorAxisErr);   
     1282//GALPHOT_FIELD(GAL_THETA,       theta);     
     1283//GALPHOT_FIELD(GAL_THETA_ERR,   thetaErr); 
     1284//GALPHOT_FIELD(GAL_INDEX,       index);     
     1285//GALPHOT_FIELD(GAL_CHISQ,       chisq);     
     1286//GALPHOT_FIELD(GAL_NPIX,        Npix);       
     1287//GALPHOT_FIELD(GAL_FLAGS,       flags);       
     1288//GALPHOT_FIELD(GAL_TYPE,        modelType);       
     1289
     1290GALPHOT_FIELD(GAL_MAG,         mag,          float, NAN)
     1291GALPHOT_FIELD(GAL_MAG_ERR,     magErr,       float, NAN)
     1292GALPHOT_FIELD(GAL_MAJ,         majorAxis,    float, NAN)
     1293GALPHOT_FIELD(GAL_MAJ_ERR,     majorAxisErr, float, NAN)
     1294GALPHOT_FIELD(GAL_MIN,         minorAxis,    float, NAN)
     1295GALPHOT_FIELD(GAL_MIN_ERR,     minorAxisErr, float, NAN)
     1296GALPHOT_FIELD(GAL_THETA,       theta,        float, NAN)
     1297GALPHOT_FIELD(GAL_THETA_ERR,   thetaErr,     float, NAN)
     1298GALPHOT_FIELD(GAL_INDEX,       index,        float, NAN)     
     1299GALPHOT_FIELD(GAL_CHISQ,       chisq,        float, NAN)     
     1300GALPHOT_FIELD(GAL_NPIX,        Npix,         float, NAN)       
     1301
     1302GALPHOT_FIELD(GAL_TYPE,        modelType,    short, 0)       
     1303
     1304GALPHOT_FIELD(GAL_FLAGS,       flags,        unsigned int, 0)       
     1305GALPHOT_FIELD(GAL_OBJ_ID,      objID,        unsigned int, 0)       
     1306GALPHOT_FIELD(GAL_CAT_ID,      catID,        unsigned int, 0)       
     1307GALPHOT_FIELD(GAL_DET_ID,      detID,        unsigned int, 0)       
     1308GALPHOT_FIELD(GAL_IMAGE_ID,    imageID,      unsigned int, 0)       
    12891309
    12901310# undef GALPHOT_FIELD
Note: See TracChangeset for help on using the changeset viewer.