Coverage for /wheeldirectory/casa-6.7.0-12-py3.10.el8/lib/py/lib/python3.10/site-packages/casatasks/private/task_feather.py: 100%
12 statements
« prev ^ index » next coverage.py v7.6.4, created at 2024-10-31 19:53 +0000
« prev ^ index » next coverage.py v7.6.4, created at 2024-10-31 19:53 +0000
1import os
3from casatools import imager
4from casatasks import casalog
6def feather(imagename=None,highres=None,lowres=None, sdfactor=None, effdishdiam=None, lowpassfiltersd=None):
7 """ Feathering: Combine two images using the Fourier Addition:
9 The algorithm converts each image to the gridded visibility
10 plane, combines them, and reconverts them into an combined
11 image. The images must have a well-defined beam shape (clean beam),
12 given in the image, in order for feathering to work well.
13 The two images must be on the same grid and have the same
14 flux density normalization scale.
16 Keyword arguments:
17 imagename -- Name of output feathered image
18 default: none; example: imagename='orion_combined'
19 highres -- Name of high resolution (interferometer) image
20 default: none; example: imagename='orion_vla.im'
21 This image is often a clean image obtained from synthesis
22 observations.
23 lowres -- Name of low resolution (single dish) image
24 default: none; example: imagename='orion_gbt.im'
25 This image is often a image from a single-dish observations
26 or a clean image obtained from a lower resolution synthesis
27 observations.
29 """
30 casalog.origin('feather')
32 imFea=imager( )
33 try:
34 imFea.setvp(dovp=True)
35 imFea.setsdoptions(scale=sdfactor)
36 imFea.feather(image=imagename,highres=highres,lowres=lowres,
37 effdishdiam=effdishdiam, lowpassfiltersd=lowpassfiltersd)
38 finally:
39 imFea.done( )
40 del imFea