Function Arguments
/*-***********************************************************************/
/* */
/* mAddCube */
/* */
/* Montage is a set of general reprojection / coordinate-transform / */
/* mosaicking programs. Any number of input images can be merged into */
/* an output FITS file. The attributes of the input are read from the */
/* input files; the attributes of the output are read a combination of */
/* the command line and a FITS header template file. */
/* */
/* This module, mCubeAdd, reads sets of flux / area coverage datacubes */
/* (the output of mCubeProj) which have already been projected / */
/* resampled onto the same pixel space. The fluxs, scaled by total */
/* input area, are then coadded into a single output composite. */
/* */
/* char *path Directory containing files to be coadded */
/* char *tblfile Table file list of reprojected files to */
/* coadd */
/* char *template_file FITS header file used to define the desired */
/* output */
/* char *outfile Final mosaic FITS file */
/* */
/* int shrink Shrink-wrap to remove blank border areas */
/* int haveAreas Area files exist for weighting the coadd */
/* int debug Debugging output level */
/* */
/*************************************************************************/
struct mAddCubeReturn *mAddCube(char *path, char *tblfile, char *template_file, char *outfile,
int shrink, int haveAreas, int coadd, int debugin)
Return Structure
struct mAddCubeReturn
{
int status; // Return status (0: OK, 1:ERROR)
char msg [1024]; // Return message (for error return)
char json[4096]; // Return parameters as JSON string
double time; // Run time (sec)
};