- 积分
- 304
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-12-27
- 最后登录
- 1970-1-1
|
发表于 2015-12-18 15:29:28
|
显示全部楼层
'reinit'
'open d:\xiaoyu\sichuan\xiaoyubiao.ctl'
'set grid off'
'set grads off'
'set map 1 1 5'
'set mpdset sic'
'set lon 97 110.5'
'set lat 25.8 34.5'
'draw map'
'set gxout print'
'd b'
res = result
siz.1=0.1
siz.2=0.15
siz.3=0.2
siz.4=0.25
i=2
while(i)
1n=sublin(res,i)
if(1n='');break;endif
i=i+1
lat1=subwrd(1n,3)
lon1=subwrd(1n,2)
data=sublin(res,i)
i=i+1
'q w2xy 'lon1' 'lat1''
x1=subwrd(result,3)
y1=subwrd(result,6)
data=subwrd(data,1)*1
'set line 5'
if(data<-1.5)
'draw mark 2 'x1' 'y1' 'siz.4''
endif
if(data>-1 & data<-1.5)
'draw mark 2 'x1' 'y1' 'siz.3''
endif
if(data>-1 & data<-0.5)
'draw mark 2 'x1' 'y1' 'siz.2''
endif
if(data>-0.5 & data<0)
'draw mark 2 'x1' 'y1' 'siz.1''
endif
if(data>0 & data<0.5)
'draw mark 3 'x1' 'y1' 'siz.1''
endif
if(data>0 & data<0.5)
'draw mark 3 'x1' 'y1' 'siz.1''
endif
if(data>0.5 & data<1)
'draw mark 3 'x1' 'y1' 'siz.2''
endif
if(data>1 & data<1.5)
'draw mark 3 'x1' 'y1' 'siz.3''
endif
if(data>1.5)
'draw mark 3 'x1' 'y1' 'siz.4''
endif
endwhile
'enable print d:\xiaoyu\sichuan\gs\xyb.gif'
'print'
'printim d:\xiaoyu\sichuan\gs\xyb.gif white'
'disable print'
我按照楼主的方法写了类似gs
可是run之后出错。
错误是这样的
|
-
|