Source
#############################################################################
## $Id:$
# Test Name: #
# Regression Test Script to reduce a wide-field image #
# #
# Rationale for Inclusion: #
# It ensures that the the mosaic is successfully created #
# taking into account the outliers. The data has been #
# already calibrated. #
# #
# Features tested: #
# 1) Is the task working properly? #
# 2) Is the task producing the same results as the reference? #
# The script will as well test the following features: #
# #
# Input Data Process Output Data #
# widefield_model.fits---> importuvfits ----> widefield.ms #
# | #
# v #
# classic mode clean ----> wf_h.* #
# | #
# v #
# wide-field mode clean ------> wf_x.* #
# | #
# v #
# imstat #
# #
# #
# Input data: #
# widefield_model.fits, outliers.txt #
# #
# Author: Ed Fomalont #
# #
# Note: all input data have relative paths to the local directory #
#############################################################################
import os
import time
import regression_utility as tstutl
from __main__ import default
from tasks import *
from taskinit import *
# Enable benchmarking?
benchmarking = True
#
# Set up some useful variables
#
# This is where the NGC1333 UVFITS data will be
fitsdata='widefield_model.uvfits'
# The testdir where all output files will be kept
testdir='wf_regression'
# The prefix to use for output files.
#prefix=testdir+"/"+'widefield'
prefix='widefield'
# Make new test directory
# (WARNING! Removes old test directory of the same name if one exists)
tstutl.maketestdir(testdir)