#ifndef PP_STAC_H
#define PP_STAC_H

#define PPSTAC_RECIPE "PPSTAC"

#include <psmodules.h>

// Configuration information
typedef struct {
    pmConfig *config;                   // psModules configuration
    psArray *inFiles;                   // Input files
    psFits *outFile;                    // Output file
    psStatsOptions combine;             // Combination statistic
    int iter;                           // Number of rejection iterations
    float rej;                          // Rejection threshold (standard deviations)
    psMaskType maskVal;                 // Mask value
} ppStacOptions;


// Allocator for ppStacOptions
ppStacOptions *ppStacOptionsAlloc(void);

// Read the options
ppStacOptions *ppStacOptionsRead(int *argc, char *argv[]);

// Do the combination
bool ppStacCombine(ppStacOptions *options);

#endif
