IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13164


Ignore:
Timestamp:
May 2, 2007, 3:00:14 PM (19 years ago)
Author:
eugene
Message:

making the luminosity function test optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroChooseRefstars.c

    r12806 r13164  
    2424    float fieldExtra = psMetadataLookupS32 (&status, recipe, "PSASTRO.FIELD.EXTRA");
    2525    if (!status) fieldExtra = 0.0;
     26
     27    bool matchLumFunc = psMetadataLookupBool (&status, recipe, "PSASTRO.MATCH.LUMFUNC");
    2628
    2729    pmFPAview *view = pmFPAviewAlloc (0);
     
    7779                psTrace ("psastro", 4, "Added %ld refstars\n", refstars->n);
    7880
    79                 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSASTRO.REFSTARS", PS_DATA_ARRAY, "astrometry matches", refstars);
    80                 psFree (refstars);
     81                psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSASTRO.REFSTARS", PS_DATA_ARRAY, "astrometry matches", refstars);
     82                psFree (refstars);
    8183
    82                 // XXX TEST : skip the luminosity function selection
    83                 continue;
    84 
    85                 // XXX this error means the readout fails, but should probably not kill the entire program
    86                 // in this case, no PSASTRO.REFSTARS is added to readout->analysis
    87                 if (!psastroRefstarSubset (readout)) {
    88                     psError(PSASTRO_ERR_DATA, false, "Can't determine an appropriate refstar subset\n");
    89                     return false;
     84                if (matchLumFunc) {
     85                    // in this case, no PSASTRO.REFSTARS is added to readout->analysis
     86                    if (!psastroRefstarSubset (readout)) {
     87                        psError(PSASTRO_ERR_DATA, false, "Can't determine an appropriate refstar subset\n");
     88                        return false;
     89                    }
    9090                }
    9191            }
Note: See TracChangeset for help on using the changeset viewer.