IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37511


Ignore:
Timestamp:
Oct 20, 2014, 5:56:40 PM (12 years ago)
Author:
eugene
Message:

grab neighboring catalogs to ensure everybody is assigned (not so efficient...)

Location:
branches/eam_branches/ipp-20140904/Ohana/src/dvomerge/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140904/Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c

    r37116 r37511  
    5858    }
    5959
     60# if 0
     61    // NOTE: i was having trouble dropping objects on edges with the option below.  Since an object can move outside the catalog grab the neighbors.
    6062    // SkyListByBounds will return neighbor catalogs if the boundaries exactly match (due to rounding).  Since the regions are not infinitely small,
    6163    // compare to a slightly reduced footprint
    6264    float dPos = 2.0/3600.0;
    6365    outlist = SkyListByBounds (outsky, -1, inlist[0].regions[i][0].Rmin + dPos, inlist[0].regions[i][0].Rmax - dPos, inlist[0].regions[i][0].Dmin + dPos, inlist[0].regions[i][0].Dmax - dPos);
     66# else
     67    // Since an object can move outside the catalog grab the neighbors.
     68    float dPos = 2.0/3600.0;
     69    outlist = SkyListByBounds (outsky, -1, inlist[0].regions[i][0].Rmin - dPos, inlist[0].regions[i][0].Rmax + dPos, inlist[0].regions[i][0].Dmin - dPos, inlist[0].regions[i][0].Dmax + dPos);
     70# endif
    6471
    6572    OutputStatus *outstat = OutputStatusInit (outlist->Nregions);
  • branches/eam_branches/ipp-20140904/Ohana/src/dvomerge/src/merge_catalogs_old.c

    r37386 r37511  
    44# define IN_REGION(R,D) (                                       \
    55    ((D) >= region[0].Dmin) && ((D) < region[0].Dmax) &&        \
    6     ((R) >= region[0].Rmin)  && ((R) < region[0].Rmax))
     6    ((R) >= region[0].Rmin) && ((R) < region[0].Rmax))
    77
    88// merge the input data into the output catalog
Note: See TracChangeset for help on using the changeset viewer.