IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36445


Ignore:
Timestamp:
Jan 15, 2014, 3:21:52 PM (13 years ago)
Author:
bills
Message:

fix names for galactic coordinates (latitude is b longitude is l)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20140114/psphot/src/psphotChooseAnalysisOptions.c

    r36441 r36445  
    250250            psSphere ptGal, ptSky;
    251251            GetGalacticCoords (&ptGal, &ptSky, toGal, chip, source->peak->xf, source->peak->yf);
    252             float b = ptGal.r;
    253             float limit = GAL_LIMIT + GAL_LIMIT_BULGE * exp(-0.5*(b*b/GAL_LIMIT_SIGMA2));
    254             if (fabs(ptGal.d) < limit) continue;
     252            float l = ptGal.r;
     253            float b_min = GAL_LIMIT + GAL_LIMIT_BULGE * exp(-0.5*(l*l/GAL_LIMIT_SIGMA2));
     254            if (fabs(ptGal.d) < b_min) continue;
    255255            // include an exception for low density skycells below the limit?
    256256        }
     
    533533                psSphere ptGal, ptSky;
    534534                GetGalacticCoords (&ptGal, &ptSky, toGal, chips->data[imageID], source->peak->xf, source->peak->yf);
    535                 float b = ptGal.r;
    536                 float limit = GAL_LIMIT + GAL_LIMIT_BULGE * exp(-0.5*(b*b/GAL_LIMIT_SIGMA2));
    537                 if (fabs(ptGal.d) < limit) continue;
     535                float l = ptGal.r;
     536                float b_min = GAL_LIMIT + GAL_LIMIT_BULGE * exp(-0.5*(l*l/GAL_LIMIT_SIGMA2));
     537                if (fabs(ptGal.d) < b_min) continue;
    538538            }
    539539
Note: See TracChangeset for help on using the changeset viewer.