From 197a6237bcb6376550222b409be514ef168c2077 Mon Sep 17 00:00:00 2001 From: Charles Doutriaux Date: Mon, 12 Oct 2015 10:50:57 -0700 Subject: [PATCH] Added a test that fails for aashish --- testing/vcs/test_vcs_vector_wrap.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 testing/vcs/test_vcs_vector_wrap.py diff --git a/testing/vcs/test_vcs_vector_wrap.py b/testing/vcs/test_vcs_vector_wrap.py new file mode 100644 index 0000000000..51e9c502b1 --- /dev/null +++ b/testing/vcs/test_vcs_vector_wrap.py @@ -0,0 +1,22 @@ +import cdms2 +import vcs +import os +import sys + + +f=cdms2.open(os.path.join(vcs.sample_data,"clt.nc")) + +lon1 = 0. # -180 failks as well +u=f("clt") +v=f("clt") + +u=u(longitude=(lon1,lon1+360.)) +v=v(longitude=(lon1,lon1+360.)) + +x=vcs.init() +Vec = x.createvector() +p = x.createprojection() +p.type = "polar" +Vec.projection = p +x.plot(u,v,Vec) +raw_input("press enter")