Source
########################################################################
# test_task_sdtimeaverage.py
#
# Copyright (C) 2018
# Associated Universities, Inc. Washington DC, USA
#
# This script is free software; you can redistribute it and/or modify it
# under the terms of the GNU Library General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# This library is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
# License for more details.
#
# [Add the link to the JIRA ticket here once it exists]
#
# Based on the requirements listed in plone found here:
# https://casadocs.readthedocs.io/en/stable/api/tt/casatasks.single.sdtimeaverage.html
#
#
##########################################################################
import datetime
import os
import re
import unittest
import numpy
from casatasks import sdtimeaverage
from casatasks.private.sdutil import table_manager
from casatools import ctsys
datapath = ctsys.resolve('unittest/sdtimeaverage/')
"""
sdtimeaverage begins
"""
#
# Test-MS
#
# template MS (to copy from)
defInputMs = "sdimaging.ms"
# testing MS (set up basic conditions)
defWorkMsBasic = "sdimaging-t.ms"
# testing MS(2) (for 'state','scan' in TimeSpan)
defWorkMsTimeSpan = "sdimaging-t2.ms"
# template-MS(3) (for 'float_data' and 'data') (to copy from)
defInputMs3 = "Uranus1.cal.Ant0.spw34.ms"
# testing MS ('float_data' is used)
defWorkMs3NRO = "Uranus1.cal.Ant0.spw34-nobeyama.ms"
# testing MS ('data' is used instead of 'float_data' )
defWorkMs3ALMA = "Uranus1.cal.Ant0.spw34-ALMA.ms"
# output MS #