Source
+" to ephemeris phase center for time "+str(thetime['m0']['value'])+" "+thetime['m0']['unit']+" "+thetime['refer'])
from __future__ import absolute_import
from __future__ import print_function
import os
import shutil
# get is_CASA6 and is_python3
from casatasks.private.casa_transition import *
if is_CASA6:
from casatasks import casalog
from casatools import table, agentflagger, ms, imager, measures, msmetadata, sdm
from .mstools import write_history
from . import flaghelper as fh
from . import convertephem as ce
from .parallel.parallel_data_helper import ParallelDataHelper
else:
from taskinit import *
from mstools import write_history
import flaghelper as fh
from casac import casac
from parallel.parallel_data_helper import ParallelDataHelper
import recipes.ephemerides.convertephem as ce
agentflagger = casac.agentflagger
table = casac.table
msmetadata = casac.msmetadata
imager = imtool
measures = metool
ms = mstool
_tb = table()
# for 6.1.1 and while issues with the sdm tool, gaincal, and the need to restart casa
# to get results consistent with casa 5.x, avoid the sdm tool in favor of the stand alone
# executables from casa 5 that should be available in casalith
use_sdm = is_CASA6
if is_CASA6:
# is this a casalith session
try:
import importlib
_clith_spec = importlib.util.find_spec('casalith')
if _clith_spec is not None:
# yes, do not use the sdm
use_sdm = False
except:
# no, it's not, nothing more here
pass
def old_importasdm(
asdm=None,
vis=None,
createmms=None,
separationaxis=None,
numsubms=None,
corr_mode=None,
srt=None,
time_sampling=None,
ocorr_mode=None,
compression=None,
lazy=None,
asis=None,
wvr_corrected_data=None,
scans=None,
ignore_time=None,
process_syspower=None,
process_caldevice=None,
process_pointing=None,
process_flags=None,
tbuff=None,
applyflags=None,
savecmds=None,
outfile=None,
flagbackup=None,
verbose=None,
overwrite=None,
showversion=None,
useversion=None,
bdfflags=None,
with_pointing_correction=None,
convert_ephem2geo=None,
polyephem_tabtimestep=None
):
"""Convert an ALMA Science Data Model observation into a CASA visibility file (MS) or single-dish data format (Scantable).
The conversion of the ALMA SDM archive format into a measurement set. This version
is under development and is geared to handling many spectral windows of different
shapes.
Keyword arguments:
asdm -- Name of input ASDM file (directory)
default: none; example: asdm='ExecBlock3'