Source
''' Check that this parameter sets the x coordinate length of the bos, or the diameter of the circle. Cirle is used if ylength is an empty string '''
##########################################################################
# test_task_imdev.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.analysis.imdev.html
#
#
##########################################################################
import sys
import os
import unittest
import shutil
import numpy
import numbers
import math
import casatools
from casatasks import imdev
tb = casatools.table()
ia = casatools.image()
### DATA ###
dataroot = casatools.ctsys.resolve('unittest/imdev/')
datapath = os.path.join(dataroot, 'orion_tfeather.im')
datapath2 = os.path.join(dataroot, 'ngc5921.clean.image')
stokespath = os.path.join(dataroot, 'image_input_processor.im')
interppath = os.path.join(dataroot, 'f2h_quantile.im')
reference_path = dataroot+'/imdev_reference/'
input0 = dataroot + "100x100x2.im"
ref0 = reference_path + "ref0.im"
# Merged test data
ref1 = reference_path + "ref1.im"
ref2 = reference_path + "ref2.im"
ref3 = reference_path + "ref3.im"
ref4 = reference_path + "ref4.im"
ref5 = reference_path + "ref5.im"
ref6 = reference_path + "ref6.im"
ref7 = reference_path + "ref7.im"
def imArray(image):
tb.open(image)
arrayVal = tb.getcol('map')
tb.close()