IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34672 for trunk


Ignore:
Timestamp:
Nov 16, 2012, 3:30:03 PM (14 years ago)
Author:
Serge CHASTEL
Message:

PLTSCALE bug fix

Location:
trunk/ppTranslate/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppTranslate/src/ppMopsRead.c

    r34650 r34672  
    364364      det->mask->data.U8[row] = 0;
    365365      plateScale += scale;
     366      //Update the platescale value (should be a constant)
     367      if (isfinite(scale)) {
     368          det->platescale = scale;
     369      }
    366370      numGood++;
    367371
     
    385389        det->raExtErr->data.F64[row] = errScale * sqrt(cosAngle2 * xErr2 + sinAngle2 * yErr2);
    386390        det->decExtErr->data.F64[row] = errScale * sqrt(sinAngle2 * xErr2 + cosAngle2 * yErr2);
    387         //Update the platescale value (should be a constant)
    388         det->platescale = scale;
    389391      }
    390392    }
  • trunk/ppTranslate/src/ppMopsWrite.c

    r34671 r34672  
    4848    }
    4949  }
    50   //Get the SEEING weighted mean
     50  //Get the SEEING weighted mean. Update the PLTSCALE_EXT value
    5151  float seeing = 0.;
    5252  int totalGood = 0;
     
    5757      if (isfinite(((ppMopsDetections*) detections->data[d])->platescale)) {
    5858          det->platescale = ((ppMopsDetections*) detections->data[d])->platescale;
    59       }
    60     }
    61   }
     59          printf("plate-scale = [%g]\n", det->platescale);
     60      }
     61    }
     62  }
     63  printf("plate-scale = [%g]\n", det->platescale);
    6264  seeing /= (float) totalGood;
    6365  if (det != NULL) {
Note: See TracChangeset for help on using the changeset viewer.