IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 25, 2007, 11:10:16 AM (19 years ago)
Author:
eugene
Message:

adding more fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/dbExtractMeasures.c

    r14191 r14379  
    2323  switch (field->ID) {
    2424    case MEAS_MAG: /* magnitudes are already determined above */
    25       // if user has requested a photcode, supply the value only if we match (else NO_MAG)
    26       if ((field->photcode->type != PHOT_MAG) &&
    27           (measure[0].photcode != field->photcode->code)) {
    28           break;
    29       }
     25      // we return the magnitude for this measure if:
     26      if (field->photcode->type == PHOT_MAG) goto valid_photcode;
     27      if ((field->photcode->type == PHOT_REF) && (measure[0].photcode == field->photcode->code)) goto valid_photcode;
     28      if ((field->photcode->type == PHOT_DEP) && (measure[0].photcode == field->photcode->code)) goto valid_photcode;
     29      if ((field->photcode->type == PHOT_SEC) && (GetPhotcodeEquivbyCode (measure[0].photcode) == field->photcode->code)) goto valid_photcode;
     30      break;
     31
     32  valid_photcode:
    3033      switch (field->magMode) {
    3134        case MAG_INST:
     
    5861      value = average[0].D - measure[0].dD / 3600.0;
    5962      break;
     63    case MEAS_RA_AVE: /* OK */
     64      value = average[0].R;
     65      break;
     66    case MEAS_DEC_AVE: /* OK */
     67      value = average[0].D;
     68      break;
    6069    case MEAS_dMAG: /* OK */
    6170      value = measure[0].dM;
     
    7382      value = TimeValue (measure[0].t, TimeReference, TimeFormat);
    7483      break;
     84    // note that these represent the ra displacement relative to the average, not
     85    // the error.
    7586    case MEAS_dR: /* OK */
    7687      value = measure[0].dR;
Note: See TracChangeset for help on using the changeset viewer.