IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38283


Ignore:
Timestamp:
May 16, 2015, 5:35:23 AM (11 years ago)
Author:
eugene
Message:

tycho repair

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150419/Ohana/src/uniphot/src/repair_tycho_setastrom.c

    r38282 r38283  
    11# include "setastrom.h"
    22
    3 int repair_tycho_setastrom (Catalog *catalog) {
     3int repair_tycho_setastrom (Catalog *catalog, SkyRegion *region) {
    44
     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  }
    512
    613  // first select the subset of objects which lie in this catalog:
     14  int Ns = ohana_bisection_double (tychoR, Ntycho, region->Rmin);
    715
     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 
    828 
    929
Note: See TracChangeset for help on using the changeset viewer.