from ialib import write_image_history
imagename, outfile, box, chans, stokes, region, mask,
overwrite, stretch, axis, function, width, dmethod
casalog.origin('specsmooth')
if (not myia.open(imagename)):
raise Exception, "Cannot create image analysis tool using " + imagename
raise Exception, "outfile must be specified."
function = function.lower()
if (function.startswith("b")):
outfile=outfile, region=region, mask=mask, overwrite=overwrite,
stretch=stretch, axis=axis, width=width, drop=drop, dmethod=dmethod
elif (function.startswith("h")):
outfile=outfile, region=region, mask=mask, overwrite=overwrite,
stretch=stretch, axis=axis, drop=drop, dmethod=dmethod
raise Exception("Unsupported convolution function " + function)
param_names = specsmooth.func_code.co_varnames[:specsmooth.func_code.co_argcount]
param_vals = [eval(p) for p in param_names]
outia, sys._getframe().f_code.co_name,
param_names, param_vals, casalog
except Exception, instance:
casalog.post("*** Error \'%s\' updating HISTORY" % (instance), 'WARN')
except Exception, instance:
casalog.post( str( '*** Error ***') + str(instance), 'SEVERE')