Changeset 31635 for trunk/Ohana/src/photdbc/src/make_subcatalog.c
- Timestamp:
- Jun 16, 2011, 11:18:00 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/photdbc/src/make_subcatalog.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/photdbc/src/make_subcatalog.c
r31450 r31635 3 3 // copy a catalog to a new subcatalog, applying some filters 4 4 // the supplied subcatalog must already be locked, opened, and created 5 int make_subcatalog (Catalog *subcatalog, Catalog *catalog ) {5 int make_subcatalog (Catalog *subcatalog, Catalog *catalog, SkyRegion *region) { 6 6 7 7 int found; … … 36 36 for (i = 0; i < catalog[0].Naverage; i++) { 37 37 // 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 } 38 49 39 50 // exclude stars with too few measurements
Note:
See TracChangeset
for help on using the changeset viewer.
