Template File
import vcs, cdms, cdutil, time, os, sys
filepath = os.path.join(sys.prefix, 'sample_data/clt.nc')
cdmsfile = cdms.open( filepath )
data = cdmsfile('clt', longitude=(-180, 180), latitude = (-90., 90.))
v = vcs.init()
t_asd = v.gettemplate( 'ASD' )
t2_asd = v.createtemplate( 'new', 'ASD' )
v.plot( data, t_asd )
print ""
print "Press the Return key to see next plot."
sys.stdin.readline()
t_asd.list( )
t_asd.xlabel2.priority = 0
print "Press the Return key to see next plot."
sys.stdin.readline()
t_asd.xtic2.priority = 0
print "Press the Return key to see next plot."
sys.stdin.readline()
t_asd.xtic2.priority = 0
print "Press the Return key to see next plot."
sys.stdin.readline()
t_asd.legend.priority=0
print "Press the Return key to see next plot."
sys.stdin.readline()
xmean_current = t_asd.mean.x
ymean_current = t_asd.mean.y
t_asd.mean.x=0.5
t_asd.mean.y=0.5
t_asd.data.priority = 0 v.update()
print "Press the Return key to see next plot."
sys.stdin.readline()
t_asd.data.priority = 1
t_asd.legend.priority = 1
t_asd.legend.list()
v.mode=0 t_asd.mean.x = xmean_current
t_asd.mean.y = ymean_current
t_asd.data.x2 = 0.87
t_asd.box1.x2 = 0.87
t_asd.xlabel2.priority = 0
t_asd.xtic2.priority = 0
t_asd.ylabel2.priority = 0
t_asd.ytic2.priority = 0
t_asd.legend.x1=0.9
t_asd.legend.y1=0.82
t_asd.legend.x2=0.95
t_asd.legend.y2=0.3
v.clear()
v.plot( data, t_asd )
print "Press the Return key to quit."
sys.stdin.readline()