IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 26, 2006, 10:46:32 AM (20 years ago)
Author:
eugene
Message:

adding proper motion and parallax to addstar, dropping _PS from RA and DEC in average

File:
1 edited

Legend:

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

    r5945 r6683  
    7171    catalog.filename = skylist[0].filename[k];
    7272    switch (lock_catalog (&catalog, LCK_SOFT)) {
    73     case 2:
    74       unlock_catalog (&catalog);
    75     case 0:
    76       continue;
     73      case 2:
     74        unlock_catalog (&catalog);
     75      case 0:
     76        continue;
    7777    }
    7878    catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF;
     
    8686      if (catalog.average[i].Nm != 3) continue;
    8787      m = catalog.average[i].offset;
    88       M0 = (Ns == -1) ? catalog.average[i].M_PS : catalog.secfilt[i*Nsec+Ns].M_PS;
     88      M0 = (Ns == -1) ? catalog.average[i].M : catalog.secfilt[i*Nsec+Ns].M_PS;
    8989      M1 = PhotCat (&catalog.measure[m+0]);
    9090      M2 = PhotCat (&catalog.measure[m+1]);
     
    9898      Yvec.elements[N] = (dmt1 + dmt2) / 2.0;
    9999      if (SaveVectors) {
    100         Rvec.elements[N] = catalog.average[i].R_PS;
    101         Dvec.elements[N] = catalog.average[i].D_PS;
     100        Rvec.elements[N] = catalog.average[i].R;
     101        Dvec.elements[N] = catalog.average[i].D;
    102102        Zvec.elements[N] = M0;
    103103      }
Note: See TracChangeset for help on using the changeset viewer.