IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7771


Ignore:
Timestamp:
Jun 30, 2006, 2:07:26 PM (20 years ago)
Author:
eugene
Message:

added addstar option, not well tested; converted detselect to use psPipe / psIOBuffer

Location:
trunk/ppImage/src
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/Makefile.am

    r7738 r7771  
    2121        ppImageMosaic.c \
    2222        ppImagePhotom.c \
    23         ppImageAstrom.c
     23        ppImageAstrom.c \
     24        ppImageAddstar.c
    2425
    2526ppFocus_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(PSPHOT_CFLAGS) $(PSASTRO_CFLAGS) $(ppImage_CFLAGS)
     
    4041        ppImageMosaic.c \
    4142        ppImagePhotom.c \
    42         ppImageAstrom.c
     43        ppImageAstrom.c \
     44        ppImageAddstar.c
    4345
    4446ppTest_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(ppImage_CFLAGS)
  • trunk/ppImage/src/ppImage.h

    r7749 r7771  
    3939bool ppImagePhotom (pmConfig *config, pmFPAview *view);
    4040bool ppImageAstrom (pmConfig *config);
     41bool ppImageAddstar (pmConfig *config);
    4142
    4243bool ppImageMosaicChip (pmConfig *config, const pmFPAview *view, char *outFile, char *inFile);
  • trunk/ppImage/src/ppImageLoop.c

    r7738 r7771  
    5858    // we perform astrometry on all chips after sources have been detected
    5959    if (options->doAstromChip || options->doAstromMosaic) ppImageAstrom (config);
     60    if (options->doAddstar) ppImageAddstar (config);
    6061
    6162    if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) return false;
  • trunk/ppImage/src/ppImageOptions.c

    r7621 r7771  
    188188    }
    189189
     190    options->doAddstar = psMetadataLookupBool(NULL, recipe, "ADDSTAR");
     191    if (options->doAddstar && !(options->doAstromChip || options->doAstromMosaic)) {
     192        psLogMsg(__func__, PS_LOG_ERROR, "Invalid Phase2 Options: cannot Addstar without Astrometry");
     193        exit(EXIT_FAILURE);
     194    }
     195
    190196    return options;
    191197}
  • trunk/ppImage/src/ppImageOptions.h

    r7621 r7771  
    1414    bool doAstromChip;                  // per-chip Astrometry
    1515    bool doAstromMosaic;                // full-mosaic Astrometry
     16    bool doAddstar;                     // add results to object database?
    1617
    1718    bool doOverscan;                    // Overscan subtraction
Note: See TracChangeset for help on using the changeset viewer.