IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24650


Ignore:
Timestamp:
Jul 2, 2009, 3:41:27 PM (17 years ago)
Author:
eugene
Message:

get max mag based on filter (psastroZeroPointFromRecipe); drop excess verbosity

File:
1 edited

Legend:

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

    r23810 r24650  
    4646    pmCell *cell = NULL;
    4747    pmReadout *readout = NULL;
    48     float zeropt, exptime;
     48    float zeropt, exptime, MAX_MAG;
    4949    psMetadata *md = NULL;
    5050    psPolynomial2D *centerX = NULL;
     
    7171    if (!strcasecmp(ghostFile, "NONE")) return true;
    7272
    73     double MAX_MAG = psMetadataLookupF32 (&status, recipe, "GHOST_MAX_MAG");
    74 
    7573    if (!pmConfigFileRead (&ghostModel, ghostFile, "GHOST MODEL")) {
    7674        psError(PSASTRO_ERR_CONFIG, true, "Trouble loading ghost model");
     
    9795
    9896    // really error-out here?  or just skip?
    99     if (!psastroZeroPointFromRecipe (&zeropt, &exptime, fpa, recipe)) {
     97    if (!psastroZeroPointFromRecipe (&zeropt, &exptime, &MAX_MAG, fpa, recipe)) {
    10098        psLogMsg ("psastro", PS_LOG_INFO, "failed to load zeropt data from recipe");
    10199        goto escape;
     
    162160                    // which encompass the full size of the ghost
    163161                    pmChip *ghostChip = psastroFindChip (&ghost->chip->x, &ghost->chip->y, fpa, -ghost->srcFP->x, -ghost->srcFP->y);
    164                     fprintf (stderr, "raw chip position: %f, %f ", ghost->chip->x, ghost->chip->y);
     162                    // fprintf (stderr, "raw chip position: %f, %f ", ghost->chip->x, ghost->chip->y);
    165163
    166164                    ghostChip = psastroFindChip (&ghost->chip->x, &ghost->chip->y, fpa, ghost->FP->x, ghost->FP->y);
    167                     fprintf (stderr, "-> model chip position: %f, %f\n", ghost->chip->x, ghost->chip->y);
     165                    // fprintf (stderr, "-> model chip position: %f, %f\n", ghost->chip->x, ghost->chip->y);
    168166
    169167                    if (!ghostChip) goto skip;
Note: See TracChangeset for help on using the changeset viewer.