Changeset 38283
- Timestamp:
- May 16, 2015, 5:35:23 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150419/Ohana/src/uniphot/src/repair_tycho_setastrom.c
r38282 r38283 1 1 # include "setastrom.h" 2 2 3 int repair_tycho_setastrom (Catalog *catalog ) {3 int repair_tycho_setastrom (Catalog *catalog, SkyRegion *region) { 4 4 5 double *tychoR, *tychoD; 6 int Ntycho; 7 8 if (!get_tyc_correction (&tychoR, &tychoD, &Ntycho)) { 9 fprintf (stderr, "TYCHO correction not loaded\n"); 10 exit (2); 11 } 5 12 6 13 // first select the subset of objects which lie in this catalog: 14 int Ns = ohana_bisection_double (tychoR, Ntycho, region->Rmin); 7 15 16 NSUBSET = 100; 17 Nsubset = 0; 18 ALLOCATE (index, int, NSUBSET); 19 20 // scan throught tycho stars to select those in this catalog 21 while ((Ns < Ntycho) && (tychoR[Ns] < region->Rmax)) { 22 if (tychoD[Ns] < region->Dmin) continue; 23 if (tychoD[Ns] > region->Dmax) continue; 24 25 Ns 26 27 8 28 9 29
Note:
See TracChangeset
for help on using the changeset viewer.
