IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 23, 2007, 3:25:22 PM (19 years ago)
Author:
Paul Price
Message:

Fixing default binning value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSim/src/ppSimArguments.c

    r12973 r12975  
    7272    psMetadataAddF32(arguments, PS_LIST_TAIL, "-starsmag", 0, "Brightest magnitude for fake stars", NAN);
    7373    psMetadataAddF32(arguments, PS_LIST_TAIL, "-starsdensity", 0, "Density of fake stars at magnitude", NAN);
    74     psMetadataAddS32(arguments, PS_LIST_TAIL, "-bin", 0, "Binning in x and y", 1);
     74    psMetadataAddS32(arguments, PS_LIST_TAIL, "-bin", 1, "Binning in x and y", 1);
    7575
    7676    if (!config->camera) {
     
    166166                     "Overscan polynomial order", biasOrder);
    167167
    168     int bin = psMetadataLookupS32(NULL, arguments, "-bin"); // Binning in x and y
    169     if (bin <= 0) {
    170         psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Binning is non-positive.");
    171         usage(arguments, config);
    172     }
    173     psMetadataAddS32(config->arguments, PS_LIST_TAIL, "BINNING", 0, "Binning in x and y", bin);
     168    int binning = psMetadataLookupS32(NULL, arguments, "-bin"); // Binning in x and y
     169    if (binning <= 0) {
     170        psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Binning (%d) is non-positive.", binning);
     171        usage(arguments, config);
     172    }
     173    psMetadataAddS32(config->arguments, PS_LIST_TAIL, "BINNING", 0, "Binning in x and y", binning);
    174174
    175175    psMetadataAddStr(config->arguments, PS_LIST_TAIL, "OUTPUT", 0, "Name of the output image",
Note: See TracChangeset for help on using the changeset viewer.