IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3390


Ignore:
Timestamp:
Mar 7, 2005, 6:18:38 PM (21 years ago)
Author:
eugene
Message:

minor mods, no impact on elixir

Location:
trunk/Ohana/src/gastro2/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/gastro2/src/ConfigInit.c

    r2442 r3390  
    1919  ScanConfig (config, "DEFAULT_RADIUS",    "%lf", 0, &DEFAULT_RADIUS);
    2020  ScanConfig (config, "MINIMUM_RADIUS",    "%lf", 0, &MINIMUM_RADIUS);
    21   ScanConfig (config, "MAX_ERROR",         "%lf", 0, &MAX_ERROR);
    2221  ScanConfig (config, "MAX_NONLINEAR",     "%lf", 0, &MAX_NONLINEAR);
    2322  ScanConfig (config, "MAX_PRECISE",       "%lf", 0, &MIN_PRECISE);
     
    4746  ScanConfig (config, "PHOTCODE_FILE",     "%s",  0, PhotCodeFile);
    4847  ScanConfig (config, "GASTRO_MAX_NSTARS", "%d",  0, &GASTRO_MAX_NSTARS);
     48  ScanConfig (config, "GASTRO_MAX_MAG_ERROR", "%lf", 0, &MAX_ERROR);
    4949
    5050  if (strcasecmp (ROUGH_ASTROMETRY, "header") &&
  • trunk/Ohana/src/gastro2/src/gastro2.c

    r2442 r3390  
    3131
    3232  for (i = 0; i < 3; i++) {
    33     gfit (&Target, &Ref, 1);
     33    gfit (&Target, &Ref, MIN (MAX (1, NPOLYTERMS), 3));
    3434    fprintf (stderr, "precision: %f\n", Target.answer.dR / sqrt(Target.answer.N));
    3535  }
  • trunk/Ohana/src/gastro2/src/gproject2.c

    r2442 r3390  
    6161   
    6262  Subset[0].N = N;
     63  sort_stars_mag (Subset[0].stars, N);
     64  if (GASTRO_MAX_NSTARS && (GASTRO_MAX_NSTARS < Subset[0].N)) {
     65    Subset[0].N = GASTRO_MAX_NSTARS;
     66    REALLOCATE (Subset[0].stars, StarData, Subset[0].N);
     67  }
     68  if (VERBOSE) fprintf (stderr, "using %d stars from ref catalog\n", Subset[0].N);
     69
    6370  REALLOCATE (Subset[0].stars, StarData, MAX (1, Subset[0].N));
    6471
  • trunk/Ohana/src/gastro2/src/gstars2.c

    r2442 r3390  
    153153      /* hardwired dophot exclusions should eventually be encapsulated elsewhere */
    154154      if ((type == 4) || (type == 6) || (type == 5) || (type == 9)) continue;
    155       if (dmag > 100) continue;
     155      if (dmag > 1000*MAX_ERROR) continue;
    156156      stars[N].dM   = 0.001 * dmag;
    157157      stars[N].type = type;
Note: See TracChangeset for help on using the changeset viewer.