Source
xxxxxxxxxx
raise Exception('Cannot create MMS using separationaxis=%s with some of the requested transformations.' % separationaxis)
from __future__ import absolute_import
import os, re
import shutil
import string
import copy
import math
import time
# get is_CASA6 and is_python3
from casatasks.private.casa_transition import *
if is_CASA6:
from casatools import table, quanta, ms, mstransformer
from casatasks import casalog
from .parallel.parallel_data_helper import ParallelDataHelper
from . import flaghelper as fh
from .update_spw import update_spwchan
from .mstools import write_history
from .callibrary import callibrary
else:
from taskinit import mttool, mstool, tbtool, casalog, qatool
from mstools import write_history
from parallel.parallel_data_helper import ParallelDataHelper
import flaghelper as fh
from update_spw import update_spwchan
from callibrary import callibrary
mstransformer = mttool
ms = mstool
table = tbtool
# not a local tool
quanta = qatool
def mstransform(
vis,
outputvis, # output
createmms, # MMS --> partition
separationaxis,
numsubms,
tileshape, # tiling
field,
spw,
scan,
antenna,
correlation,
timerange,
intent,
array,
uvrange,
observation,
feed,
datacolumn,
realmodelcol,
keepflags,
usewtspectrum,
combinespws, # spw combination --> cvel
chanaverage, # channel averaging --> split
chanbin,
hanning, # Hanning --> cvel
regridms, # regridding to new frame --> cvel
mode,
nchan,
start,
width,
nspw, # spw separation
interpolation,
phasecenter,
restfreq,
outframe,
veltype,
preaverage,
timeaverage, # time averaging --> split
timebin,
timespan,
maxuvwdistance,
docallib,
callib,
douvcontsub,
fitspw,
fitorder,
want_cont,
denoising_lib,
nthreads,
niter,
disableparallel, # HIDDEN parameter to create MMS in sequential
ddistart, # HIDDEN internal parameter for the sub-table re-indexing
taql, # HIDDEN internal parameter
monolithic_processing, # HIDDEN parameter for the MMS monolithic processing
reindex # HIDDEN parameter for use in the pipeline context only
):