cngi.vis.uv_cont_fit
¶
-
uv_cont_fit
(mxds, vis, source='DATA', target='CONTFIT', fitorder=1, excludechans=[])[source]¶ Fit a polynomial regression to source data and return model values to target
- Parameters
mxds (xarray.core.dataset.Dataset) – input multi-xarray Dataset with global data
vis (str) – visibility partition in the mxds to use
source (str) – data variable in the dataset on which to fit the regression. Default is ‘DATA’
target (str) – new data variable to place the fit result, overwrites if already present. Default is ‘CONTFIT’
fitorder (int) – polynomial order for the fit, must be >= 1, but values larger than 1 will slow down rapidly. Default is 1
excludechans (list of ints) – indices of channels to exclude from the fit. Default is empty (include all channels)
- Returns
New output multi-xarray Dataset with global data
- Return type
xarray.core.dataset.Dataset