IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 26, 2007, 4:36:14 PM (18 years ago)
Author:
eugene
Message:

adding new photcode I/O formats; adding fields for astrometric error to photcode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relastro/src/UpdateObjects.c

    r15600 r15694  
    4747  int mode, Nave, Npm, Npar, Nskip;
    4848  double Tmin, Tmax;
     49  float errorScale;
     50  PhotCode *code;
    4951
    5052  initObjectData (catalog, Ncatalog);
     
    9698        /* the astrometric errors are not being carried yet (but should be!) */
    9799        /* we use the photometric mag error as a weighting term */
    98         dR[N] = MAX (catalog[i].measure[m].dM, MIN_ERROR);
    99         dD[N] = MAX (catalog[i].measure[m].dM, MIN_ERROR);
     100
     101        code = GetPhotcodebyCode (catalog[0].measure[m].photcode);
     102        errorScale = code[0].astromScale;
     103        dR[N] = MAX (catalog[i].measure[m].dM, MIN_ERROR) * errorScale;
     104        dD[N] = MAX (catalog[i].measure[m].dM, MIN_ERROR) * errorScale;
    100105        dT[N] = catalog[i].measure[m].dt;
    101106
Note: See TracChangeset for help on using the changeset viewer.