IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16984


Ignore:
Timestamp:
Mar 13, 2008, 12:11:00 PM (18 years ago)
Author:
eugene
Message:

select REF errors if requested

File:
1 edited

Legend:

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

    r16936 r16984  
    150150        case MAG_ERR:
    151151          // GetPhotcodeEquivCodebyCode (field->photcode)
    152           value = PhotdM (field->photcode, average, secfilt);
     152          if (field->photcode->type == PHOT_REF) {
     153            for (i = 0; i < average[0].Nmeasure; i++) {
     154              if (field->photcode->code != measure[i].photcode) continue;
     155              value = measure[i].dM;
     156              break;
     157            }
     158          } else {
     159            value = PhotdM (field->photcode, average, secfilt);
     160          }
    153161          break;
    154162        case MAG_NCODE:
Note: See TracChangeset for help on using the changeset viewer.