smooth_images_toresolution(target_resolution, globs=['destripe*P[LMS]W*fits', 'destripe*blue*fits', 'destripe*red*fits'], reject_regex='smooth|smregrid', verbose=True, skip_existing=True, regrid=True, target_header=None, regrid_order=1, clobber=False, **kwargs)¶
Smooth a series of images to the same resolution. The output files will be of the form
A degree-equivalent value that specifies the beam size in the output image
globs : list
A list of strings to pass into
glob. All files found will be smoothed and possibly regridded.
reject_regex : str
A regular expression to apply to each discovered file to choose whether to reject it. For example, if you’ve run this function once, you’ll have files named
file_smooth.fitsthat you don’t want to re-smooth and re-regrid.
verbose : bool
Print messages at each step?
skip_existing : bool
If the output smooth file is found and this is True, skip and move on to the next
regrid : bool
Regrid the file? If True,
target_headeris also required
regrid_order : int
The order of the regridding operation. Regridding is performed with interpolation, so 0’th order means nearest-neighbor and 1st order means bilinear. Regridding is done with
clobber : bool
Overwrite files if they exist?
kwargs : dict
Nothing. All output is to disk
target_headeris not specified but