爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 5367|回复: 11

[分享资料] 中国地图的gs文件

[复制链接]
发表于 2013-1-18 21:42:07 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
谁有中国地图的gs文件,能给传一份吗?461562634@qq.com,论坛上的不知道怎么回事下不下来。谢谢了。
密码修改失败请联系微信:mofangbao
发表于 2014-10-17 10:42:12 | 显示全部楼层

这个必须要支持
密码修改失败请联系微信:mofangbao
回复 支持 1 反对 0

使用道具 举报

发表于 2013-1-19 22:27:02 | 显示全部楼层
请查看论坛右下角的下载说明!!!!
密码修改失败请联系微信:mofangbao
发表于 2013-1-20 13:26:07 | 显示全部楼层
同楼上,看看下载说明就行了
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2013-1-22 10:47:52 | 显示全部楼层
好的,我在试试。谢谢各位了。
密码修改失败请联系微信:mofangbao
发表于 2014-5-3 09:32:42 | 显示全部楼层


我也有类似的问题  很有用撒 希望楼主多多贡献 膜拜
密码修改失败请联系微信:mofangbao
发表于 2014-10-16 15:16:00 | 显示全部楼层
我也在找啊
密码修改失败请联系微信:mofangbao
发表于 2014-10-18 11:52:00 | 显示全部楼层

* china.gs
* sample Script file to draw chinese map include scs
* Created: funny / Sep.24 2002  ^_^
* modified: 漠弛  May 16 2004

function china(args)

***********************   USAGE   *********************************************
usage1="usage: china [-d] [-h] [-p]"
usage2=" "
usage3="      -d     if set, draw the map even if no file was opened."
usage4="      -h     if set, display this help message."
usage5="      -p     if set, draw the south china sea map."
usage6=" "
usage7='Notes: the option "-p" is valid unitl the number of opened file >= 1.'
usage8=" "
usage9='Example: china -p'

***********************   OPTIIONS   ******************************************
i=1
help=-1
drawit=-1
placeit=-1
f=subwrd(args,i)
while (f!='')
  opt = substr(f,2,1)
  if (opt='d'| opt='D'); drawit=1; endif;
  if (opt='p'| opt='P'); placeit=1; endif;
  if (opt='h'| opt='H'); help=1; endif;
  i=i+1
  f=subwrd(args,i)
endwhile

***********************   HELP   **********************************************
if (help=1)
say usage1;say usage2;say usage3;say usage4;say usage5;say usage6;say usage7
say usage8;say usage9
return
endif

*** keep the opened files information
'q files'
nfile = 0
count = 2
line = sublin(result,count)
while(line != '')
  nfile = nfile + 1
  count = count + 3
  line = sublin(result,count)
endwhile

*** 'cn' is china map file
'set mpdset cn'
*'set map 15'
'set grads off'

*** set lon lat for chinese map plot:
*'set lat 15 55'
*'set lon 72 136'   

if (drawit=1)
  'draw map'
endif

***********************DRAW SOUTH CHINA SEA MAP   *****************************
if (placeit=1)

*** keep the old coordinate values
  if (nfile > 0)   
    'q dims'
    oldx1 = sublin(result,2)
    tmp = subwrd(oldx1,3)
    if ( tmp = 'fixed')
      oldx1=subwrd(oldx1,9)
      oldx2=oldx1
    else
      oldx2=subwrd(oldx1,13)
      oldx1=subwrd(oldx1,11)
    endif
    oldy1 = sublin(result,3)
    tmp = subwrd(oldy1,3)
    if ( tmp = 'fixed')
      oldy1=subwrd(oldy1,9)
      oldy2=oldy1
    else
      oldy2=subwrd(oldy1,13)
      oldy1=subwrd(oldy1,11)
    endif
    oldz1 = sublin(result,4)
    tmp = subwrd(oldz1,3)
    if (tmp = 'fixed')
      oldz1=subwrd(oldz1,9)
      oldz2=oldz1
    else
      oldz2=subwrd(oldz1,13)
      oldz1=subwrd(oldz1,11)
    endif
    oldt1 = sublin(result,5)
    tmp = subwrd(oldt1,3)
    if (tmp = 'fixed')
      oldt1=subwrd(oldt1,9)
      oldt2=oldt1
    else
      oldt2=subwrd(oldt1,13)
      oldt1=subwrd(oldt1,11)
    endif
  
* draw scs map:
    'q gxinfo'
    lb = sublin(result,3)
    lc = sublin(result,4)
    x0 = subwrd(lb,4)
    y0 = subwrd(lc,4)
    x1 = subwrd(lb,6)
    y1 = subwrd(lc,6)
    dx = (x1 - x0)/7
    dy = (y1 - y0)/3.5
    'set mpdset lowres'
    'set lon 105 123'
    'set lat 0 23'
    'set parea 'x1-0.05-dx' 'x1-0.05' 'y0+0.05' 'y0+0.05+dy
    'set grads off'
    'set line 0'
    'draw recf 'x1-0.05-dx' 'y0+0.05' 'x1-0.05' 'y0+0.05+dy
    'set line 1'
    'draw rec 'x1-0.05-dx' 'y0+0.05' 'x1-0.05' 'y0+0.05+dy
    'set map 15'
    'set grid on'
    'draw map'
    'set parea off'

** restore the coordinate to the old value
    'set mpdset cn'
    'set x 'oldx1' 'oldx2
    'set y 'oldy1' 'oldy2
    'set z 'oldz1' 'oldz2
    'set t 'oldt1' 'oldt2
   endif

endif
return
*end
密码修改失败请联系微信:mofangbao
发表于 2016-4-26 13:50:26 | 显示全部楼层
楼上好厉害
密码修改失败请联系微信:mofangbao
发表于 2016-4-26 14:00:05 | 显示全部楼层
对我们这些初学者用处挺大的,谢谢楼主分享!
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表