IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35066


Ignore:
Timestamp:
Jan 28, 2013, 9:27:49 AM (13 years ago)
Author:
mhuber
Message:

bug fix so max-density not pull all/most sources from catalog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/getstar/src/select_by_region.c

    r34459 r35066  
    5353    gfits_scan (&catalog[0].header, "DEC1", "%lf", 1, &Dmax);
    5454
    55     if (VERBOSE) fprintf (stderr, "extracting from catalog covering region %f,%f to %f,%f\n", Rmin, Dmin, Rmax, Dmax);
    56 
    5755    AREA = fabs(Dmax - Dmin) * fabs(Rmax - Rmin) * cos (0.5*RAD_DEG*(Dmax + Dmin));
     56    if (VERBOSE) fprintf (stderr, "extracting from catalog covering region %f,%f to %f,%f for area %f\n", Rmin, Dmin, Rmax, Dmax, AREA);
    5857    assert (AREA > 0);
    5958
     
    8382      if (isnan(mag)) continue;
    8483      if (mag < MinMagValue) continue;
    85       if (mag > MagLimitValue) continue;
    8684
    8785      bin = (mag - MagMin) / dMag;
     
    10199    }
    102100    MagLimitValue = i*dMag + MagMin;
    103     if (VERBOSE) fprintf (stderr, "using %d stars in mag range %f - %f\n", Nsum, MinMagValue, MagLimitValue);
     101    if (VERBOSE) fprintf (stderr, "using %d (Nmax %d) stars in mag range %f - %f\n", Nsum, Nmax, MinMagValue, MagLimitValue);
    104102  }
    105103
Note: See TracChangeset for help on using the changeset viewer.