IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4825


Ignore:
Timestamp:
Aug 19, 2005, 4:32:02 PM (21 years ago)
Author:
eugene
Message:

using full photometry conversions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/find_matches.c

    r4800 r4825  
    1313  Coords tcoords;
    1414  int Nsecfilt, Nsec, MTIME;
    15   short int Mrel, *Mval;
     15  short int Mcat, *Mval;
    1616
    1717  /* photcode data - must by of type DEP, (PRI, SEC) - probably should restrict to DEP */
     
    165165      catalog[0].measure[Nmeas].theta    = MIN ((255/360)*stars[N].df, NO_ERR);
    166166       
    167       /*** this should probably use the mag lookup functions - zeropoints are incorrectly applied ***/
    168167      /* it is not valid to pass PRI/SEC/REF photcodes to this routine */
    169168      /* check for entries in the secfilt lists */
    170       Mrel = catalog[0].measure[Nmeas].M + secz * thiscode[0].K;
     169      Mcat = iPhotCat (&catalog[0].measure[Nmeas]);
    171170      Mval = (Nsec == -1) ? &catalog[0].average[n].M : &catalog[0].secfilt[n*Nsecfilt+Nsec].M;
    172       if (*Mval == NO_MAG) *Mval = Mrel;
     171      if (*Mval == NO_MAG) *Mval = Mcat;
    173172
    174173      /** this is a little tricky: the new measures are not in the measure sequence
     
    292291    catalog[0].measure[Nmeas].theta    = MIN ((255/360)*stars[N].df, NO_ERR);
    293292
    294     Mrel = catalog[0].measure[Nmeas].M + secz * thiscode[0].K;
     293    Mcat = iPhotCat (&catalog[0].measure[Nmeas]);
    295294    Mval = (Nsec == -1) ? &catalog[0].average[Nave].M : &catalog[0].secfilt[Nave*Nsecfilt+Nsec].M;
    296     if (*Mval == NO_MAG) *Mval = Mrel;
     295    if (*Mval == NO_MAG) *Mval = Mcat;
    297296
    298297    /** now add references from all previous non-detection observations of this spot on the sky */
Note: See TracChangeset for help on using the changeset viewer.