code: def dataflagatom(chans, pol, d, sig, mode, conv):
      
  
      data = numpyview(data_mem, 'complex64', datashape(d))
  #    data = n.ma.masked_array(data, data==0j)  # this causes massive overflagging on 14sep03 data
  
      return rtlib.dataflag(data, chans, pol, d, sig, mode, conv)
docs: Wrapper function to get shared memory as numpy array into pool
      Assumes data_mem is global mps.Array