{ "module":"mShrinkCube", "function":"mShrinkCube", "desc" : "mShrinkCube is a utility program for making smaller versions of a FITS file by averaging NxN blocks of pixels spatially and M values in the third and fourth cube dimensions. N can be fractional but M must be an integer.", "arguments": [ {"type":"string", "name":"infile", "desc":"Input FITS file."}, {"type":"string", "name":"output_file", "desc":"Subimage output FITS file."}, {"type":"double", "name":"shrinkFactor", "desc":"Scale factor for spatial shrinking. Can be any positive real number."}, {"type":"int", "name":"mfactor", "desc":"Positive integer scale factor for shrinking the third cube dimension."}, {"type":"int", "default":0, "name":"hdu", "desc":"Optional HDU offset for input file."}, {"type":"boolean", "default":false, "name":"fixedSize", "desc":"Alternate mode: shrink so the output fits in this many pixels."}, {"type":"int", "default":0, "name":"debug", "desc":"Debugging output level."} ], "return": [ {"type":"int", "name":"status", "desc":"Return status (0: OK, 1:ERROR)."}, {"type":"string", "name":"msg", "desc":"Return message (for errors)."}, {"type":"double", "name":"time", "desc":"Total processing time (sec)."} ] }