IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25538


Ignore:
Timestamp:
Sep 24, 2009, 10:06:20 AM (17 years ago)
Author:
eugene
Message:

push the value of PSF from recipe to config->arguments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpArguments.c

    r25518 r25538  
    158158    }
    159159
     160    bool PSF = psMetadataLookupBool(&status, recipe, "PSF"); ///< Generate a PSF model?
     161    if (!status) {
     162        PSF = true;
     163        psWarning("PSF is not set in the %s recipe --- defaulting to TRUE.", PSWARP_RECIPE);
     164    }
     165
    160166    // Set recipe values in the recipe (since we've possibly altered some)
    161167    psMetadataAddS32(recipe, PS_LIST_TAIL, "GRID.NX", PS_META_REPLACE,
     
    169175    psMetadataAddF32(recipe, PS_LIST_TAIL, "POOR.FRAC", PS_META_REPLACE,
    170176                     "Fraction of bad flux for a pixel to be marked as poor", poorFrac);
     177    psMetadataAddBool(recipe, PS_LIST_TAIL, "PSF", PS_META_REPLACE, "Generate a PSF Model?", PSF);
    171178
    172179    // Set recipe values in the arguments
     
    181188    psMetadataAddF32(config->arguments, PS_LIST_TAIL, "POOR.FRAC", 0,
    182189                     "Fraction of bad flux for a pixel to be marked as poor", poorFrac);
     190    psMetadataAddBool(config->arguments, PS_LIST_TAIL, "PSF", PS_META_REPLACE, "Generate a PSF Model?", PSF);
    183191
    184192    psTrace("pswarp", 1, "Done with pswarpArguments...\n");
Note: See TracChangeset for help on using the changeset viewer.