diff --git a/testing/vcs/CMakeLists.txt b/testing/vcs/CMakeLists.txt index 9e61ac9914..a8fc40175c 100644 --- a/testing/vcs/CMakeLists.txt +++ b/testing/vcs/CMakeLists.txt @@ -737,5 +737,12 @@ cdat_add_test(vcs_test_click_info ${BASELINE_DIR}/test_vcs_click_info.png ) +cdat_add_test(vcs_test_mercator_edge + "${PYTHON_EXECUTABLE}" + ${cdat_SOURCE_DIR}/testing/vcs/test_vcs_mercator_edge.py + ${BASELINE_DIR}/test_vcs_mercator_edge.png +) + + add_subdirectory(vtk_ui) add_subdirectory(editors) diff --git a/testing/vcs/test_vcs_mercator_edge.py b/testing/vcs/test_vcs_mercator_edge.py new file mode 100644 index 0000000000..d30152b7fc --- /dev/null +++ b/testing/vcs/test_vcs_mercator_edge.py @@ -0,0 +1,21 @@ +import vcs,cdms2 +import os,sys +f = cdms2.open(os.path.join(vcs.sample_data, "clt.nc")) +s = f("clt") +x = vcs.init() +iso = x.createisofill() +iso.projection = "mercator" +x.plot(s(latitude=(-90, 90)), iso) + +# Load the image testing module: +testingDir = os.path.join(os.path.dirname(__file__), "..") +sys.path.append(testingDir) +import checkimage + +# Create the test image and compare: +baseline = sys.argv[1] +testFile = "test_vcs_mercator_edge.png" +x.png(testFile) +ret = checkimage.check_result_image(testFile, baseline, + checkimage.defaultThreshold) +sys.exit(ret)