IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31155 for trunk/ppImage


Ignore:
Timestamp:
Apr 4, 2011, 1:13:20 PM (15 years ago)
Author:
eugene
Message:

minor fixes from eam branch

Location:
trunk/ppImage
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage

    • Property svn:ignore
      •  

        old new  
        1717libtool
        1818Doxyfile
         19a.out.dSYM
  • trunk/ppImage/src

  • trunk/ppImage/src/ppImageAddNoise.c

    r30655 r31155  
    9090  // Update the metadata about exposure time
    9191  psMetadataAddF32(inReadout->parent->concepts, PS_LIST_TAIL, "CELL.EXPOSURE", PS_META_REPLACE, "the modified exposure time", expTimes3Pi[band]);
     92  psMetadataAddF32(inReadout->parent->concepts, PS_LIST_TAIL, "FPA.EXPOSURE", PS_META_REPLACE, "the modified exposure time", expTimes3Pi[band]);
    9293  psMetadataAddF32(fpa->concepts, PS_LIST_TAIL, "EXPTIME", PS_META_REPLACE, "the modified exposure time", expTimes3Pi[band]);
    9394  ppImageRandomGaussianFree();
  • trunk/ppImage/src/ppImageArguments.c

    r29833 r31155  
    5555    }
    5656
     57    // generic arguments (version -- ignored in this case, dumpconfig)
     58    PS_ARGUMENTS_GENERIC( psphot, config, argc, argv );
     59
     60    // thread arguments
     61    PS_ARGUMENTS_THREADS( psphot, config, argc, argv )
     62
    5763    // save the following additional recipe values based on command-line options
    5864    // these options override the PPIMAGE recipe values loaded from recipe files
     
    8490        psArgumentRemove(argnum, &argc, argv);
    8591        pmVisualSetVisual(true);
    86     }
    87 
    88     // Number of threads
    89     if ((argnum = psArgumentGet(argc, argv, "-threads"))) {
    90         psArgumentRemove(argnum, &argc, argv);
    91         int nThreads = atoi(argv[argnum]);
    92         psMetadataAddS32(config->arguments, PS_LIST_TAIL, "NTHREADS", 0, "number of warp threads", nThreads);
    93         psArgumentRemove(argnum, &argc, argv);
    94 
    95         // create the thread pool with number of desired threads, supplying our thread launcher function
    96         // XXX need to determine the number of threads from the config data
    97         psThreadPoolInit (nThreads);
    9892    }
    9993
     
    152146    }
    153147
    154     if ((argnum = psArgumentGet(argc, argv, "-dumpconfig"))) {
    155         psArgumentRemove(argnum, &argc, argv);
    156         psMetadataAddStr(config->arguments, PS_LIST_TAIL, "DUMP_CONFIG", PS_META_REPLACE,
    157                          "Filename for configuration dump", argv[argnum]);
    158         psArgumentRemove(argnum, &argc, argv);
    159     }
    160 
    161148    if (argc != 2) usage ();
    162149
Note: See TracChangeset for help on using the changeset viewer.