IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34302


Ignore:
Timestamp:
Aug 13, 2012, 10:08:45 AM (14 years ago)
Author:
bills
Message:

detect, report, and reject reference stars with absurdly bright magnitudes

Location:
tags/ipp-20120802
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20120802/ippconfig/recipes/psastro.config

    r34147 r34302  
    167167CROSSTALK_MASK       BOOL FALSE
    168168
     169# report and reject stars with reported magnitudes less than this value. These non physical
     170# magnitudes are errors in the reference catalog (this value is sky magnitude, not instrumental)
     171REFSTAR_CLAMP_MAG_MIN           F32 -3.0
     172
    169173EXTRACT_MAX_MAG                 F32 -15.0
    170174
  • tags/ipp-20120802/psastro/src/psastroChooseRefstars.c

    r26259 r34302  
    6262
    6363    int nMax = psMetadataLookupS32 (&status, recipe, "PSASTRO.MAX.NREF");
     64    psF32 clampMagMin = psMetadataLookupS32 (&status, recipe, "REFSTAR_CLAMP_MAG_MIN");
     65    if (!status) clampMagMin = -5;
    6466
    6567    // de-activate all files except PSASTRO.REFSTARS
     
    103105                for (int i = 0; i < refs->n; i++) {
    104106                    pmAstromObj *ref = pmAstromObjCopy(refs->data[index->data.S32[i]]);
     107
     108                    if (ref->Mag < clampMagMin) {
     109                        psWarning("Skipping refstar with abusrd magnintude %f ra: %f dec: %f\n",
     110                            ref->Mag, RAD_TO_DEG(ref->sky->r), RAD_TO_DEG(ref->sky->d));
     111                        goto skip;
     112                    }
    105113
    106114                    psProject (ref->TP, ref->sky, fpa->toSky);
Note: See TracChangeset for help on using the changeset viewer.