IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39440


Ignore:
Timestamp:
Mar 8, 2016, 11:23:01 AM (10 years ago)
Author:
eugene
Message:

do not apply LoopWeight if Nloop < 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20160226/src/relastro/src/GetAstromError.c

    r39225 r39440  
    7676  // weight to ensure the image is tied down to the 2mass frame
    7777
    78   if (has2MASS && LoopWeight2MASS) {
     78  if (has2MASS && LoopWeight2MASS && (Nloop >= 0)) {
    7979    dPtotal = dPtotal / LoopWeight2MASS[Nloop];
    8080  }
    81   if (is2MASS && LoopWeight2MASS) {
     81  if (is2MASS && LoopWeight2MASS && (Nloop >= 0)) {
    8282    dPtotal = dPtotal / LoopWeight2MASS[Nloop];
    8383  }
    84   if (isTycho && LoopWeightTycho) {
     84  if (isTycho && LoopWeightTycho && (Nloop >= 0)) {
    8585    dPtotal = dPtotal / LoopWeightTycho[Nloop];
    8686  }
Note: See TracChangeset for help on using the changeset viewer.