ism3d.uvhelper.ft.invert_ft

ism3d.uvhelper.ft.invert_ft(uu=None, vv=None, wv=None, vis=None, wt=None, flag=None, uvdata=None, cell=None, imsize=None, header=None, bychannel=True, sortbyfreq=False)[source]

use nufft to create dirty cube from visibility uu: in meter (vector, nrecord vv: in meter (vector, nrecord) wv: in meter (vector, nchannel) psize: Quality wt: apply wt when doing invert (essentialy nature weighting)

only works when bychannle=true

bychannel: False ignore the wavelength changing effect on uvw

True: uu/vv will be calculated channel by channel

sortbyfreq: make sure the output cube is increasing by frequency (even chanel-freq is decreasing)

this make it easy to compare with the tclean results whihc is always mono-increasing in freq

output (nx,ny,nz)

note: should not include flagged records

uvdata or uu,vv,wv,vs,wt,flag header or cell,imsize

if vis and uvdata are both specified, vis>uvdata (useful for the PSF case) if vis is one D, it will be broadcasted to 2D