IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 16, 2011, 11:18:00 AM (15 years ago)
Author:
bills
Message:

move the functions that implement the dvo "database lookups" (avextract, mextract, imextract) etc from opihi to libdvo so that they can be used in relastro -high-speed. Restructure relastro -high-speed to use configuration variables for the cuts on the two sets of photcodes. Default to ps1 versus 2mass as was previoulsy hard coded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/photdbc/src/make_subcatalog.c

    r31450 r31635  
    33// copy a catalog to a new subcatalog, applying some filters
    44// the supplied subcatalog must already be locked, opened, and created
    5 int make_subcatalog (Catalog *subcatalog, Catalog *catalog) {
     5int make_subcatalog (Catalog *subcatalog, Catalog *catalog, SkyRegion *region) {
    66 
    77  int found;
     
    3636  for (i = 0; i < catalog[0].Naverage; i++) {
    3737    // perform exclusions based on average properties
     38
     39    // XXX: temporary check make sure that this object belongs in this region
     40    // used to fix the pole area in the reference catalog
     41    {
     42        double R = catalog[0].average[i].R;
     43        double D = catalog[0].average[i].D;
     44        if (R <= region->Rmin) continue;
     45        if (R >  region->Rmax) continue;
     46        if (D <= region->Dmin) continue;
     47        if (D >  region->Dmax) continue;
     48    }
    3849
    3950    // exclude stars with too few measurements
Note: See TracChangeset for help on using the changeset viewer.