登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
我用grads画站点位置图,先从chi_stainfo_196101-200712.txt读取站点的经纬度,然后在相应的点上画标记,运行后,出现错误提示:draw error:syntax is draw mark x y size。之前已经画过几次站点位置图,都没有问题,但是不知道这次为什么出错,求请各位同学指点一下、不尽感激、不尽感激
chi_stainfo_196101-200712.txt:
50136 122.5167 52.96667
50353 126.6500 51.71667
50425 120.1833 50.25000
50434 121.6833 50.48333
50468 127.4500 50.25000
50514 117.4333 49.56667
…………
gs文件:
 - 'reinit'
- 'open d:\opengrads\station\uwnd.mon.ltm.ctl'
- 'set map 1 1 1'
- 'set mpdset cnworld'
- 'set lon 70 135'
- 'set lat 15 55'
- 'draw map'
- 'set cmin 1000'
- 'set grid off'
- 'set grads off'
- 'set xlopts 1 4 0.15'
- 'set ylopts 1 4 0.15'
- 'd uwnd.1'
- i=1
- while(i<=562)
- aa=read('e:\station\chi_stainfo_196101-200712.txt')
- aa1=sublin(aa,2)
- lon1=subwrd(aa1,2)
- lat1=subwrd(aa1,3)
- 'q w2xy 'lon1' 'lat1' '
- x=subwrd(result,3)
- y=subwrd(result,6)
- ' draw mark 3 'x' 'y' 0.07'
- i=i+1
- endwhile
- ret=close('e:\station\chi_stainfo_196101-200712.txt')
- 'enable print e:\station\chi_stainfo.gmf'
- 'print'
- 'disable print'
- 'reinit'
|