IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 1, 2009, 11:55:34 AM (17 years ago)
Author:
eugene
Message:

re-factored ppSubReadout into a sequence of logical steps; defined convolved images as their own pmFPAfiles; switched to new psphot functions (psphotReadoutFindPSF and psphotReadoutMinimal); simplified mask and psphot visualization handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubArguments.c

    r21183 r21257  
    1 #ifdef HAVE_CONFIG_H
    2 #include <config.h>
    3 #endif
    4 
    5 #include <stdio.h>
    6 #include <string.h>
    7 #include <pslib.h>
    8 #include <psmodules.h>
    9 #include <psphot.h>
    10 
    111#include "ppSub.h"
    122
     
    172162bool ppSubArgumentsSetup(int argc, char *argv[], pmConfig *config)
    173163{
     164    int argnum;                         // Argument Number
    174165    assert(config);
    175166
     
    180171    }
    181172
    182     {
    183         int arg;                        // Argument Number
    184         if ((arg = psArgumentGet(argc, argv, "-psphot-visual"))) {
    185             psArgumentRemove(arg, &argc, argv);
    186             psMetadataAddBool(recipe, PS_LIST_TAIL, "PSPHOT.VISUAL", 0, "Visual guide to psphot?", true);
    187         }
     173    if ((argnum = psArgumentGet(argc, argv, "-psphot-visual"))) {
     174        psArgumentRemove(argnum, &argc, argv);
     175        psphotSetVisual(true);
    188176    }
    189177
     
    381369    }
    382370
     371    // XXX move this to ppSubArguments
     372    int threads = psMetadataLookupS32(NULL, config->arguments, "-threads"); // Number of threads
     373    if (threads > 0) {
     374        if (!psThreadPoolInit(threads)) {
     375            psError(PS_ERR_UNKNOWN, false, "Unable to setup %d threads", threads);
     376            return false;
     377        }
     378    }
     379
    383380    return true;
    384381
Note: See TracChangeset for help on using the changeset viewer.