IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 21, 2008, 4:53:41 PM (18 years ago)
Author:
Paul Price
Message:

Adding option for pre-calculating kernels.

File:
1 edited

Legend:

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

    r19399 r20312  
    134134    }
    135135
     136    int numKernels = psMetadataLookupS32(&status, recipe, "INTERPOLATION.NUM");
     137    if (!status) {
     138        numKernels = 0;
     139        psWarning("INTERPOLATION.NUM is not set in the recipe --- defaulting to %d", numKernels);
     140    }
     141
    136142    float poorFrac = psMetadataLookupF32(&status, recipe, "POOR.FRAC"); // Frac of bad flux for a "poor"
    137143    if (!status) {
     
    153159    psMetadataAddStr(recipe, PS_LIST_TAIL, "INTERPOLATION.MODE", PS_META_REPLACE,
    154160                     "Interpolation mode", name);
     161    psMetadataAddS32(recipe, PS_LIST_TAIL, "INTERPOLATION.NUM", PS_META_REPLACE,
     162                     "Interpolation pre-calculated kernels", numKernels);
    155163    psMetadataAddF32(recipe, PS_LIST_TAIL, "POOR.FRAC", PS_META_REPLACE,
    156164                     "Fraction of bad flux for a pixel to be marked as poor", poorFrac);
     
    165173    psMetadataAddS32(config->arguments, PS_LIST_TAIL, "INTERPOLATION.MODE", 0,
    166174                     "Interpolation mode", interpolationMode);
     175    psMetadataAddS32(config->arguments, PS_LIST_TAIL, "INTERPOLATION.NUM", 0,
     176                     "Interpolation pre-calculated kernels", numKernels);
    167177    psMetadataAddF32(config->arguments, PS_LIST_TAIL, "POOR.FRAC", 0,
    168178                     "Fraction of bad flux for a pixel to be marked as poor", poorFrac);
Note: See TracChangeset for help on using the changeset viewer.