IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12971


Ignore:
Timestamp:
Apr 23, 2007, 2:59:28 PM (19 years ago)
Author:
Paul Price
Message:

Adding binning.

File:
1 edited

Legend:

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

    r12932 r12971  
    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);
    7475
    7576    if (!config->camera) {
     
    165166                     "Overscan polynomial order", biasOrder);
    166167
     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, "-bin", 0, "Binning in x and y", bin);
    167174
    168175    psMetadataAddStr(config->arguments, PS_LIST_TAIL, "OUTPUT", 0, "Name of the output image",
Note: See TracChangeset for help on using the changeset viewer.