IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37040


Ignore:
Timestamp:
Jul 17, 2014, 10:15:20 AM (12 years ago)
Author:
eugene
Message:

updates from eam_branches/ipp-21040610

Location:
trunk/Ohana/src/delstar
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/delstar/include/delstar.h

    r36833 r37040  
    22# include <dvo.h>
    33# include <signal.h>
    4 
    5 # define MARKTIME(MSG,...) {                    \
    6     gettimeofday (&stopTimer, (void *) NULL);   \
    7     float dtime = DTIME (stopTimer, startTimer);        \
    8     fprintf (stderr, MSG, __VA_ARGS__); }
    9 
    10 # define INITTIME \
    11   struct timeval startTimer, stopTimer; \
    12   gettimeofday (&startTimer, (void *) NULL);
    134
    145// options for generating the IndexArray used to select images for deletion (delete_duplicate_images.c)
  • trunk/Ohana/src/delstar/src/ImageOpsFixLAP.c

    r35758 r37040  
    11# include "delstar.h"
    2 # define FT_BZERO_INT32 1.0*0x80000000
    32
    43off_t   Nimage = 0;
  • trunk/Ohana/src/delstar/src/ImageSubsetFixLAP.c

    r35758 r37040  
    11# include "delstar.h"
    2 # define FT_BZERO_INT16 1.0*0x8000       
    3 # define FT_BZERO_INT32 1.0*0x80000000
    42
    53# define GET_COLUMN(OUT,NAME,TYPE) \
  • trunk/Ohana/src/delstar/src/MeasureEdgeOps.c

    r35758 r37040  
    11# include "delstar.h"
    2 # define FT_BZERO_INT32 1.0*0x80000000
    32
    43# define GET_COLUMN(OUT,NAME,TYPE) \
  • trunk/Ohana/src/delstar/src/delete_fix_LAP_edges.c

    r35805 r37040  
    206206  double Dgapmin = Dmin + dD;
    207207  double Dgapmax = Dmax - dD;
     208 
     209  float cosDec = cos(RAD_DEG * 0.5 * (Dmin + Dmax));
    208210
    209211  // XXX should deal with pole, but not yet...
     
    218220    float maxOff = 0.0;
    219221    m = catalog[0].average[i].measureOffset;
     222
    220223    for (j = 0; j < catalog[0].average[i].Nmeasure; j++) {
    221       float dRoff = catalog[0].measure[m+j].dR * cos(RAD_DEG * 0.5 * (Dmin + Dmax));
    222       float dDoff = catalog[0].measure[m+j].dD;
     224
     225      float dRoff = dvoOffsetR(&catalog[0].measure[m+j], &catalog[0].average[i])*cosDec;
     226      float dDoff = dvoOffsetD(&catalog[0].measure[m+j], &catalog[0].average[i]);
    223227      float dOff = hypot (dRoff, dDoff);
    224228      maxOff = MAX (maxOff, dOff);
Note: See TracChangeset for help on using the changeset viewer.