IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 18, 2014, 9:44:36 PM (12 years ago)
Author:
eugene
Message:

major rework for mag-related selections (allow mag:psf:inst:stk, etc)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140610/Ohana/src/libdvo/include/dvodb.h

    r36898 r36908  
    2222
    2323/* magnitude types */
    24 enum {MAG_NONE,
     24
     25typedef enum {
     26  MAG_SRC_NONE,
     27  MAG_SRC_CHP,
     28  MAG_SRC_WRP,
     29  MAG_SRC_STK,
     30} dvoMagSourceType;
     31
     32typedef enum {
     33  MAG_LEVEL_NONE,       // -2.5*log(DN) [ie, not DN/sec]
     34  MAG_LEVEL_INST,               // -2.5*log(DN) [ie, not DN/sec]
     35  MAG_LEVEL_CAT,                // MAG_INST + 2.5*log(exptime) + C_lambda + K_lambda*(airmass - 1)
     36  MAG_LEVEL_SYS, // MAG_CAT + \sum_i A_i * (color_i - color_o) [color correction for measure photcode]
     37  MAG_LEVEL_REL, // MAG_SYS - Mcal [specific zero point for image]
     38  MAG_LEVEL_CAL, // MAG_REL + \sum_i A_i * (color_i - color_o) [color correction for average photcode]
     39  MAG_LEVEL_AVE,
     40  MAG_LEVEL_REF,
     41} dvoMagLevelType;
     42
     43typedef enum {
     44  MAG_OPTION_NONE,
     45  MAG_OPTION_MAG,
     46  MAG_OPTION_FLUX,
     47  MAG_OPTION_FLUX_ERR,
     48  MAG_OPTION_ERR,
     49  MAG_OPTION_STDEV,
     50  MAG_OPTION_CHISQ,
     51  MAG_OPTION_MIN,
     52  MAG_OPTION_MAX,
     53  MAG_OPTION_NCODE,
     54  MAG_OPTION_NPHOT, // Nused
     55  MAG_OPTION_UC_DIST,
     56  MAG_OPTION_STACK_DET_ID,
     57  MAG_OPTION_FLAGS,
     58} dvoMagOptionType;
     59
     60typedef enum {
     61  MAG_CLASS_NONE,
     62  MAG_CLASS_PSF,
     63  MAG_CLASS_KRON,
     64  MAG_CLASS_APER,
     65} dvoMagClassType;
     66
     67# if (0)
     68enum {
     69  MAG_NONE,
    2570
    2671      // these magnitude types are from the measurement table (or derived therein)
     
    5398      // these magnitude types are from the average (secfilt) table:
    5499      // the following imply PSF magnitudes (or fluxes)
    55       MAG_AVE,
    56       MAG_REF,
    57100      MAG_STDEV,
    58101      MAG_AVE_ERR,
     
    79122      MAG_UC_DIST,
    80123      MAG_STACK_DET_ID,
    81 };
     124} ;
     125# endif
    82126
    83127/* measure fields */
     
    173217      MEAS_EXTERN_ID,
    174218      MEAS_EXPNAME_AS_INT,
    175       MEAS_MCAL_OFFSET,
     219      MEAS_MCAL_OFFSET, // make this a dvoMagOption?
    176220      MEAS_FLAT,
    177221      MEAS_CENTER_OFFSET,
    178       MEAS_FLUX_PSF,
    179       MEAS_FLUX_PSF_ERR,
    180       MEAS_FLUX_KRON,
    181       MEAS_FLUX_KRON_ERR,
    182222      MEAS_REF_COLOR,
    183223};
     
    312352  int table;
    313353  int ID;
    314   int magMode;
     354
     355  dvoMagSourceType magSource; // chip, (forced) warp, stack [only relevant for averages]
     356  dvoMagLevelType magLevel;  // inst, cat, sys, rel, ave, ref, err, min, max, stdev, nphot, chisq,
     357  dvoMagOptionType magOption;  // psf, kron, aper
     358  dvoMagClassType magClass;
     359
    315360  char type;
    316361  PhotCode *photcode;
     
    374419
    375420int          GetMagMode             PROTO((char *string));
    376 PhotCode    *ParsePhotcodeField     PROTO((char *field, int *mode, int def));
     421int          ParsePhotcodeField     PROTO((dbField *field, char *fieldName));
    377422int          ParseMeasureField      PROTO((dbField *field, char *fieldName));
    378423int          ParseAverageField      PROTO((dbField *field, char *fieldName));
Note: See TracChangeset for help on using the changeset viewer.