2020log = logging .getLogger (__name__ )
2121
2222
23- def predict_wslice (vis , model , ** kwargs ):
23+ def predict_wstack (vis , model , ** kwargs ):
2424 """ Predict using w slices.
2525
2626 :param vis: Visibility to be predicted
2727 :param model: model image
28- :param wslice: wslice in seconds. If 'auto' will find plausible value
28+ :param wstack: wstack in seconds. If 'auto' will find plausible value
2929 :param nprocessor: Number of processors to be used (1)
3030 :returns: resulting visibility (in place works)
3131 """
32- log .info ("predict_wslice : predicting using w slices " )
32+ log .info ("predict_wstack : predicting using wstack " )
3333
3434 delA = get_parameter (kwargs , 'wloss' , 0.02 )
3535 advice = advise_wide_field (vis , delA )
36- kwargs ['wslice ' ] = get_parameter (kwargs , "wstep" , advice ['w_sampling_primary_beam' ])
36+ kwargs ['wstack ' ] = get_parameter (kwargs , "wstep" , advice ['w_sampling_primary_beam' ])
3737
38- return predict_with_vis_iterator (vis , model , vis_iter = vis_wslice_iter ,
39- predict = predict_wslice_single , ** kwargs )
38+ return predict_with_vis_iterator (vis , model , vis_iter = vis_wstack_iter ,
39+ predict = predict_wstack_single , ** kwargs )
4040
4141
42- def predict_wslice_single (vis , model , ** kwargs ):
42+ def predict_wstack_single (vis , model , ** kwargs ):
4343 """ Predict using a single w slices.
4444
4545 This fits a single plane and corrects the image geometry.
@@ -53,7 +53,7 @@ def predict_wslice_single(vis, model, **kwargs):
5353 else :
5454 avis = vis
5555
56- log .info ("predict_wslice_single : predicting using single w slice" )
56+ log .info ("predict_wstack_single : predicting using single w slice" )
5757
5858 avis .data ['vis' ] *= 0.0
5959 tempvis = copy_visibility (vis )
@@ -74,7 +74,7 @@ def predict_wslice_single(vis, model, **kwargs):
7474 return vis
7575
7676
77- def invert_wslice (vis , im , dopsf = False , normalize = True , ** kwargs ):
77+ def invert_wstack (vis , im , dopsf = False , normalize = True , ** kwargs ):
7878 """ Invert using w slices (top level function)
7979
8080 Use the image im as a template. Do PSF in a separate call.
@@ -83,22 +83,22 @@ def invert_wslice(vis, im, dopsf=False, normalize=True, **kwargs):
8383 :param im: image template (not changed)
8484 :param dopsf: Make the psf instead of the dirty image
8585 :param normalize: Normalize by the sum of weights (True)
86- :param wslice: wslice in wavelenngths. If None or omitted will find plausible value
86+ :param wstack: wstack in wavelenngths. If None or omitted will find plausible value
8787 :param nprocessor: Number of processors to be used (1)
8888 :returns: resulting image[nchan, npol, ny, nx], sum of weights[nchan, npol]
8989
9090 """
91- log .info ("invert_wslice : inverting using w slices " )
91+ log .info ("invert_wstack : inverting using wstack " )
9292
9393 delA = get_parameter (kwargs , 'wloss' , 0.02 )
9494 advice = advise_wide_field (vis , delA )
95- wslice = get_parameter (kwargs , "wstep" , advice ['w_sampling_primary_beam' ])
96- kwargs ['wslice ' ] = wslice
95+ wstack = get_parameter (kwargs , "wstep" , advice ['w_sampling_primary_beam' ])
96+ kwargs ['wstack ' ] = wstack
9797
98- return invert_with_vis_iterator (vis , im , dopsf , normalize = normalize , vis_iter = vis_wslice_iter ,
99- invert = invert_wslice_single , ** kwargs )
98+ return invert_with_vis_iterator (vis , im , dopsf , normalize = normalize , vis_iter = vis_wstack_iter ,
99+ invert = invert_wstack_single , ** kwargs )
100100
101- def invert_wslice_single (vis , im , dopsf , normalize = True , ** kwargs ):
101+ def invert_wstack_single (vis , im , dopsf , normalize = True , ** kwargs ):
102102 """Process single w slice
103103
104104 Extracted for re-use in parallel version
@@ -107,7 +107,7 @@ def invert_wslice_single(vis, im, dopsf, normalize=True, **kwargs):
107107 :param dopsf: Make the psf instead of the dirty image
108108 :param normalize: Normalize by the sum of weights (True)
109109 """
110- log .info ("invert_wslice_single : predicting using single w slice" )
110+ log .info ("invert_wstack_single : predicting using single w slice" )
111111
112112 kwargs ['imaginary' ] = True
113113 reWorkimage , sumwt , imWorkimage = invert_2d_base (vis , im , dopsf , normalize = normalize , ** kwargs )
0 commit comments