IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 27, 2006, 6:37:47 PM (19 years ago)
Author:
Paul Price
Message:

Cleaning up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageOptions.c

    r9857 r10214  
    137137            overscanFit = PM_FIT_SPLINE;
    138138        } else if (strcasecmp(fit, "NONE")) {
    139             psLogMsg(__func__, PS_LOG_WARN, "OVERSCAN.FIT (%s) in recipe %s is not one of NONE, POLYNOMIAL, or SPLINE", fit, RECIPE_NAME);
     139            psLogMsg(__func__, PS_LOG_WARN,
     140                     "OVERSCAN.FIT (%s) in recipe %s is not one of NONE, POLYNOMIAL, or SPLINE",
     141                     fit, RECIPE_NAME);
    140142            exit(EXIT_FAILURE);
    141143        }
     
    149151            overscanStats = psStatsAlloc(PS_STAT_SAMPLE_MEDIAN);
    150152        } else {
    151             psErrorStackPrint(stderr, "OVERSCAN.STAT (%s) in recipe %s is not one of MEAN or MEDIAN", stat, RECIPE_NAME);
     153            psErrorStackPrint(stderr, "OVERSCAN.STAT (%s) in recipe %s is not one of MEAN or MEDIAN",
     154                              stat, RECIPE_NAME);
    152155            exit(EXIT_FAILURE);
    153156        }
     
    173176    // binned image options
    174177    options->xBin1 = psMetadataLookupS32(&status, recipe, "BIN1.XBIN");
    175     if (!status) options->xBin1 = 16;
     178    if (!status) {
     179        psWarning("BIN1.XBIN not found in recipe: setting to default value.\n");
     180        options->xBin1 = 16;
     181    }
    176182    options->yBin1 = psMetadataLookupS32(&status, recipe, "BIN1.YBIN");
    177     if (!status) options->yBin1 = 16;
     183    if (!status) {
     184        psWarning("BIN1.YBIN not found in recipe: setting to default value.\n");
     185        options->yBin1 = 16;
     186    }
    178187
    179188    options->xBin2 = psMetadataLookupS32(&status, recipe, "BIN2.XBIN");
    180     if (!status) options->xBin1 = 16;
     189    if (!status) {
     190        psWarning("BIN2.XBIN not found in recipe: setting to default value.\n");
     191       options->xBin1 = 16;
     192    }
    181193    options->yBin2 = psMetadataLookupS32(&status, recipe, "BIN2.YBIN");
    182     if (!status) options->yBin1 = 16;
     194    if (!status) {
     195        psWarning("BIN2.YBIN not found in recipe: setting to default value.\n");
     196        options->yBin1 = 16;
     197    }
    183198
    184199    options->BaseFITS = psMetadataLookupBool(NULL, recipe, "BASE.FITS");
     
    196211    options->doAstromMosaic = psMetadataLookupBool(NULL, recipe, "ASTROM.MOSAIC");
    197212    if ((options->doAstromChip || options->doAstromMosaic) && !options->doPhotom) {
    198         psLogMsg(__func__, PS_LOG_ERROR, "Invalid Phase2 Options: cannot do ASTROMetry without PHOTOMetry");
     213        psLogMsg(__func__, PS_LOG_ERROR, "Invalid PPIMAGE options: cannot do ASTROMetry without PHOTOMetry");
    199214        exit(EXIT_FAILURE);
    200215    }
     
    202217    options->doAddstar = psMetadataLookupBool(NULL, recipe, "ADDSTAR");
    203218    if (options->doAddstar && !(options->doAstromChip || options->doAstromMosaic)) {
    204         psLogMsg(__func__, PS_LOG_ERROR, "Invalid Phase2 Options: cannot Addstar without Astrometry");
     219        psLogMsg(__func__, PS_LOG_ERROR, "Invalid PPIMAGE options: cannot Addstar without Astrometry");
    205220        exit(EXIT_FAILURE);
    206221    }
Note: See TracChangeset for help on using the changeset viewer.