IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18007


Ignore:
Timestamp:
Jun 8, 2008, 3:43:44 PM (18 years ago)
Author:
eugene
Message:

adding output stats from header metadata

Location:
trunk/psastro
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/configure.ac

    r14186 r18007  
    183183
    184184dnl ------------- psLib, psModules ---------------
    185 PKG_CHECK_MODULES([PSLIB], [pslib >= 1.0.0])
     185PKG_CHECK_MODULES([PSLIB],    [pslib >= 1.0.0])
    186186PKG_CHECK_MODULES([PSMODULE], [psmodules >= 1.0.0])
     187PKG_CHECK_MODULES([PPSTATS],  [ppStats >= 1.0.0])
    187188
    188189dnl Set CFLAGS for build
  • trunk/psastro/src/Makefile.am

    r16079 r18007  
    55bin_PROGRAMS = psastro psastroModel gpcModel
    66
    7 psastro_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(PSASTRO_CFLAGS)
    8 psastro_LDFLAGS = $(PSLIB_LIBS) $(PSMODULE_LIBS) $(PSASTRO_LIBS)
     7psastro_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(PPSTATS_CFLAGS) $(PSASTRO_CFLAGS)
     8psastro_LDFLAGS = $(PSLIB_LIBS) $(PSMODULE_LIBS) $(PPSTATS_LIBS) $(PSASTRO_LIBS)
    99psastro_LDADD = libpsastro.la
    1010
     
    2323        psastroDataLoad.c           \
    2424        psastroDataSave.c           \
     25        psastroMetadataStats.c      \
    2526        psastroCleanup.c
    2627
     
    3839
    3940gpcModel_SOURCES = gpcModel.c
    40 
    41 ## move DataSave to psastro_SOURCES?
    4241
    4342libpsastro_la_SOURCES = \
  • trunk/psastro/src/psastro.h

    r17933 r18007  
    9595bool              psastroAstromGuessSetChip (pmFPA *fpa, pmChip *chip, const pmFPAview *view, double pixelScale, bool bilevelAstrometry);
    9696bool              psastroAstromGuessSetFPA (pmFPA *fpa, bool *bilevelAstrometry);
     97bool              psastroMetadataStats (pmConfig *config);
    9798
    9899# endif /* PSASTRO_H */
  • trunk/psastro/src/psastroArguments.c

    r15891 r18007  
    5555    }
    5656
     57    if ((N = psArgumentGet(argc, argv, "-stats"))) {
     58        psArgumentRemove(N, &argc, argv);
     59        psMetadataAddStr(config->arguments, PS_LIST_TAIL, "STATS", PS_META_REPLACE, "Filename for summary statistics", argv[N]);
     60        psArgumentRemove(N, &argc, argv);
     61    }
    5762
    5863    // apply mosastro mode?
  • trunk/psastro/src/psastroDataSave.c

    r17107 r18007  
    6161    if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) ESCAPE;
    6262
     63    // Write out summary statistics
     64    if (!psastroMetadataStats (config)) ESCAPE;
     65
    6366    // activate all files except PSASTRO.OUTPUT
    6467    pmFPAfileActivate (config->files, true, NULL);
  • trunk/psastro/src/psastroInternal.h

    r12806 r18007  
    1212# include <pslib.h>
    1313# include <psmodules.h>
     14# include <ppStats.h>
    1415# include "psastro.h"
    1516
Note: See TracChangeset for help on using the changeset viewer.