vcs
vcs copied to clipboard
vector not projected (at robinson at least)
import vcs
import cdms2
x = vcs.init()
tmp = vcs.createtemplate()
tmp.ytic1.x1= tmp.data.x1
tmp.ytic1.x2= tmp.data.x1 - .02
f = cdms2.open(vcs.sample_data+"/clt.nc")
#gm = vcs.createboxfill()
#gm.projection="robinson"
clt = f('clt', latitude=(-90.0, 90.0), squeeze=1,
longitude=(-180, 200.0), time=('1979-01', '1988-12'),)
gm = x.createvector()#'a_robinson_boxfill')
gm.scale =10
u = f("u")
gm.projection = "robinson"
gm.datawc_x1 = -180
gm.datawc_x2 = -150
gm.datawc_y1= 0
gm.datawc_y2= 90
x.plot(u-u,u, gm, tmp)
gives (all vector are straight up, they should be curved a bit)
and for polar
projection we get :+1: