IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 8, 2007, 12:21:18 PM (19 years ago)
Author:
eugene
Message:

complete merge from branch dvo-mods-2007-02

File:
1 edited

Legend:

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

    r8455 r12332  
    66  float *RA, *DEC;
    77  int Nstars, found, PhotCodeSelect;
    8   int i, j, k, m, N, NPTS, Nsec, RELPHOT, *N1, TimeFormat;
     8  int i, j, k, m, N, NPTS, Nsecfilt, RELPHOT, *N1, TimeFormat;
    99  time_t TimeReference;
    1010
     
    1616
    1717  if (!InitPhotcodes ()) return (FALSE);
    18   Nsec = GetPhotcodeNsecfilt ();
     18  Nsecfilt = GetPhotcodeNsecfilt ();
    1919
    2020  if ((tvec = SelectVector ("tc", ANYVECTOR, TRUE)) == NULL) return (FALSE);
     
    110110        if (PhotCodeSelect) {
    111111          if ((code[0].type == PHOT_REF) || (code[0].type == PHOT_DEP)) {
    112             if (code[0].code != catalog.measure[m].source) continue;
     112            if (code[0].code != catalog.measure[m].photcode) continue;
    113113          }
    114           if ((code[0].type == PHOT_PRI) || (code[0].type == PHOT_SEC)) {
    115             if (code[0].code != GetPhotcodeEquivCodebyCode (catalog.measure[m].source)) continue;
     114          if (code[0].type == PHOT_SEC) {
     115            if (code[0].code != GetPhotcodeEquivCodebyCode (catalog.measure[m].photcode)) continue;
    116116          }
    117117        }     
    118118
    119119        tvec[0].elements[N] = TimeValue (catalog.measure[m].t, TimeReference, TimeFormat);
    120         dmvec[0].elements[N] = catalog.measure[m].dM_PS;
     120        dmvec[0].elements[N] = catalog.measure[m].dM;
    121121        if (RELPHOT) {
    122122          mvec[0].elements[N] = PhotCat (&catalog.measure[m]);
    123123        } else {
    124           mvec[0].elements[N] = PhotRel (&catalog.measure[m], &catalog.average[k], &catalog.secfilt[k*Nsec]);
     124          mvec[0].elements[N] = PhotRel (&catalog.measure[m], &catalog.average[k], &catalog.secfilt[k*Nsecfilt]);
    125125        }
    126126        N++;
Note: See TracChangeset for help on using the changeset viewer.