IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 27, 2018, 3:20:35 PM (8 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/czw_branch/20170908/Ohana
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20170908/Ohana

  • branches/czw_branch/20170908/Ohana/src/libdvo/include/dvo.h

    r40063 r40477  
    3333  DVO_FORMAT_PS1_V4,
    3434  DVO_FORMAT_PS1_V5,
     35  DVO_FORMAT_PS1_V6,
    3536  DVO_FORMAT_PS1_V5_LOAD,
    3637} DVOCatFormat;
     
    220221/* Secfilt.flags values -- these values are 32 bit (as of PS1_V1) */
    221222typedef enum {
    222   ID_SECF_STAR_FEW      = 0x00000001, // used within relphot: skip star
    223   ID_SECF_STAR_POOR     = 0x00000002, // used within relphot: skip star
    224   ID_SECF_USE_SYNTH     = 0x00000004, // synthetic photometry used in average measurement
    225   ID_SECF_USE_UBERCAL   = 0x00000008, // ubercal photometry used in average measurement
    226   ID_SECF_HAS_PS1       = 0x00000010, // PS1 photometry used in average measurement
    227   ID_SECF_HAS_PS1_STACK = 0x00000020, // PS1 stack photometry exists
    228   ID_SECF_HAS_TYCHO     = 0x00000040, // Tycho photometry used for synth mags
    229   ID_SECF_FIX_SYNTH     = 0x00000080, // synth mags repaired with zpt map
    230   ID_SECF_RANK_0        = 0x00000100, // average magnitude uses rank 0 values
    231   ID_SECF_RANK_1        = 0x00000200, // average magnitude uses rank 1 values
    232   ID_SECF_RANK_2        = 0x00000400, // average magnitude uses rank 2 values
    233   ID_SECF_RANK_3        = 0x00000800, // average magnitude uses rank 3 values
    234   ID_SECF_RANK_4        = 0x00001000, // average magnitude uses rank 4 values
    235   ID_SECF_OBJ_EXT_PSPS  = 0x00002000, // In PSPS ID_SECF_OBJ_EXT is moved here so it fits within 16 bits
    236   ID_SECF_STACK_PRIMARY = 0x00004000, // PS1 stack photometry comes from primary skycell
    237   ID_SECF_STACK_BESTDET = 0x00008000, // PS1 stack best measurement is a detection (not forced)
    238   ID_SECF_STACK_PRIMDET = 0x00010000, // PS1 stack primary measurement is a detection (not forced)
    239 
    240   ID_SECF_HAS_SDSS      = 0x00100000, // this photcode has SDSS photometry
    241   ID_SECF_HAS_HSC       = 0x00200000, // this photcode has HSC  photometry
    242   ID_SECF_HAS_CFH       = 0x00400000, // this photcode has CFH  photometry (mostly Megacam)
    243   ID_SECF_HAS_DES       = 0x00800000, // this photcode has DES  photometry
    244 
    245   ID_SECF_OBJ_EXT       = 0x01000000, // extended in this band
    246 
    247   ID_SECF_CHIP_FLAGS    = 0x01003f1f, // all chip-related bits (used to reset the correct bits only)
    248   ID_SECF_STACK_FLAGS   = 0x00004020, // all stack-related bits (
     223  ID_SECF_STAR_FEW               = 0x00000001, // used within relphot: skip star
     224  ID_SECF_STAR_POOR              = 0x00000002, // used within relphot: skip star
     225  ID_SECF_USE_SYNTH              = 0x00000004, // synthetic photometry used in average measurement
     226  ID_SECF_USE_UBERCAL            = 0x00000008, // ubercal photometry used in average measurement
     227  ID_SECF_HAS_PS1                = 0x00000010, // PS1 photometry used in average measurement
     228  ID_SECF_HAS_PS1_STACK          = 0x00000020, // PS1 stack photometry exists
     229  ID_SECF_HAS_TYCHO              = 0x00000040, // Tycho photometry used for synth mags
     230  ID_SECF_FIX_SYNTH              = 0x00000080, // synth mags repaired with zpt map
     231  ID_SECF_RANK_0                 = 0x00000100, // average magnitude uses rank 0 values
     232  ID_SECF_RANK_1                 = 0x00000200, // average magnitude uses rank 1 values
     233  ID_SECF_RANK_2                 = 0x00000400, // average magnitude uses rank 2 values
     234  ID_SECF_RANK_3                 = 0x00000800, // average magnitude uses rank 3 values
     235  ID_SECF_RANK_4                 = 0x00001000, // average magnitude uses rank 4 values
     236  ID_SECF_OBJ_EXT_PSPS           = 0x00002000, // In PSPS ID_SECF_OBJ_EXT is moved here so it fits within 16 bits
     237  ID_SECF_STACK_PRIMARY          = 0x00004000, // PS1 stack photometry includes a primary skycell
     238  ID_SECF_STACK_BESTDET          = 0x00008000, // PS1 stack best measurement is a detection (not forced)
     239  ID_SECF_STACK_PRIMDET          = 0x00010000, // PS1 stack primary measurement is a detection (not forced)
     240  ID_SECF_STACK_PRIMARY_MULTIPLE = 0x00020000, // PS1 stack object has multiple primary measurements
     241
     242  ID_SECF_HAS_SDSS               = 0x00100000, // this photcode has SDSS photometry
     243  ID_SECF_HAS_HSC                = 0x00200000, // this photcode has HSC  photometry
     244  ID_SECF_HAS_CFH                = 0x00400000, // this photcode has CFH  photometry (mostly Megacam)
     245  ID_SECF_HAS_DES                = 0x00800000, // this photcode has DES  photometry
     246
     247  ID_SECF_OBJ_EXT                = 0x01000000, // extended in this band
     248
     249  ID_SECF_CHIP_FLAGS             = 0x01003f1f, // all chip-related bits (used to reset the correct bits only)
     250  ID_SECF_STACK_FLAGS            = 0x0003c020, // all stack-related bits (
    249251} DVOSecfiltFlags;
    250252
     
    501503  double         R;
    502504  double         D;
    503   float          M;
    504   float          Mcal;
     505  float          M; // change to Mpsf eventually to disambiguate
     506  float          Mkron;
     507  float          McalPSF;
     508  float          McalAPER;
    505509  float          Mflat;
    506510  float          dM;
     
    10731077# include "ps1_v4_defs.h"
    10741078# include "ps1_v5_defs.h"
     1079# include "ps1_v6_defs.h"
    10751080# include "ps1_v5_ld_defs.h"
    10761081# include "ps1_ref_defs.h"
     
    12671272# undef LENSFIELD
    12681273
    1269 # define GALPHOT_FIELD(NAME, VALUE) float GalphotValue_##NAME (PhotCode *code, dvoMagClassType class, GalPhot *galphot, int Ngalphot)
    1270 
    1271 GALPHOT_FIELD(GAL_MAG,         mag);           
    1272 GALPHOT_FIELD(GAL_MAG_ERR,     magErr);   
    1273 GALPHOT_FIELD(GAL_MAJ,         majorAxis);             
    1274 GALPHOT_FIELD(GAL_MAJ_ERR,     majorAxisErr);
    1275 GALPHOT_FIELD(GAL_MIN,         minorAxis);             
    1276 GALPHOT_FIELD(GAL_MIN_ERR,     minorAxisErr);   
    1277 GALPHOT_FIELD(GAL_THETA,       theta);     
    1278 GALPHOT_FIELD(GAL_THETA_ERR,   thetaErr); 
    1279 GALPHOT_FIELD(GAL_INDEX,       index);     
    1280 GALPHOT_FIELD(GAL_CHISQ,       chisq);     
    1281 GALPHOT_FIELD(GAL_NPIX,        Npix);       
    1282 GALPHOT_FIELD(GAL_FLAGS,       flags);       
    1283 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)       
    12841309
    12851310# undef GALPHOT_FIELD
Note: See TracChangeset for help on using the changeset viewer.