cngi.vis.reframe

reframe(mxds, vis, mode='channel', nchan=None, start=0, width=1, interpolation='linear', phasecenter=None, restfreq=None, outframe=None, veltype='radio')[source]

Transform channel labels and visibilities to a spectral reference frame which is appropriate for analysis, e.g. from TOPO to LSRK or to correct for doppler shifts throughout the time of observation

Parameters
  • mxds (xarray.core.dataset.Dataset) – input multi-xarray Dataset with global data

  • vis (str) – visibility partition in the mxds to use

  • nchan (int) – number of channels in output spw. None=all

  • start (int) – first input channel to use

  • width (int) – number of input channels to average

  • interpolation (str) – spectral interpolation method

  • phasecenter (int) – image phase center position or field index

  • restfreq (float) – rest frequency

  • outframe (str) – output frame, None=keep input frame

  • veltype (str) – velocity definition

Returns

New output multi-xarray Dataset with global data

Return type

xarray.core.dataset.Dataset