IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 22, 2007, 4:05:39 PM (19 years ago)
Author:
eugene
Message:

adding fields needed by DVO for PS1 support; pre-calculating Xccd, Yccd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dvo-mods-2007-02/Ohana/src/opihi/dvo/extract.c

    r7917 r12008  
    341341          Ncode = 0;
    342342          for (k = 0; k < catalog.average[i].Nm; k++, m++) {
    343             if (code[0].code != GetPhotcodeEquivCodebyCode (catalog.measure[m].source)) continue;
     343            if (code[0].code != GetPhotcodeEquivCodebyCode (catalog.measure[m].photcode)) continue;
    344344            Ncode ++;
    345345          }
     
    357357          Ncode = 0;
    358358          for (k = 0; k < catalog.average[i].Nm; k++, m++) {
    359             if (code[0].code != GetPhotcodeEquivCodebyCode (catalog.measure[m].source)) continue;
    360             if (catalog.measure[m].source & (ID_MEAS_POOR | ID_MEAS_SKIP)) continue;
     359            if (code[0].code != GetPhotcodeEquivCodebyCode (catalog.measure[m].photcode)) continue;
     360            if (catalog.measure[m].photcode & (ID_MEAS_POOR | ID_MEAS_SKIP)) continue;
    361361            Ncode ++;
    362362          }
     
    407407          vec[0].elements[N] = -32;
    408408          for (k = 0; k < catalog.average[i].Nm; k++) {
    409             if (catalog.measure[m+k].source == N1) {
     409            if (catalog.measure[m+k].photcode == N1) {
    410410              vec[0].elements[N] = PhotCat (&catalog.measure[m+k]);
    411411              k = catalog.average[i].Nm;
Note: See TracChangeset for help on using the changeset viewer.