爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
楼主: 尽头的尽头

[作图] (更新)最最最准确的中国地图(附带南海,精确到市界)

    [复制链接]
发表于 2014-9-19 10:07:59 | 显示全部楼层
楼主,真是历害!
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2014-9-19 12:25:51 | 显示全部楼层

把你的脚本贴上来看看
密码修改失败请联系微信:mofangbao
发表于 2014-9-19 14:03:07 | 显示全部楼层
非常给力啊
密码修改失败请联系微信:mofangbao
发表于 2014-9-19 15:52:16 | 显示全部楼层
环境变量里load "$NCARG_ROOT/lib/ncarg/nclscripts/cnmap/cnmap.ncl"是什么意思?我在Ubuntu下加入这个环境变量怎么就不行呀?
密码修改失败请联系微信:mofangbao
发表于 2014-9-19 16:07:41 | 显示全部楼层
尽头的尽头 发表于 2014-9-19 12:25
把你的脚本贴上来看看


chinamap.ncl是我用来画图的脚本:
我改动了第四条路径:load "/cma/u/Tzhucw/haoyq/default/cnmap/cnmap.ncl";
wks的设置;
以及这一句map=gsn_csm_map(wks,res);

cnmap.ncl是文件夹里的:
我改动了第四条路径:load "/cma/u/Tzhucw/haoyq/default/cnmap/shp_Function.ncl"
还有这句:ShpDir = "/cma/u/Tzhucw/haoyq/default/cnmap/"

shp_Function.ncl没有改动,也就没有贴出来。

运行chinamap.ncl,报错是这样的:
warning:lbLabelAutoStride is not a valid resource in map.PlotManager at this time
warning:cnFillOn is not a valid resource in map at this time
warning:gsnSpreadColors is not a valid resource in map at this time
warning:cnLevelSpacingF is not a valid resource in map at this time
warning:cnFillDrawOrder is not a valid resource in map at this time
warning:cnLinesOn is not a valid resource in map at this time
warning:["FileSupport.c":3026]:NCL does not know anything about file suffix <shp>.
But NCL will try its best to figure out the file format.
fatal:An internal error has occurred. The file format requested does not appear to be supported, could not open (/cma/u/Tzhucw/haoyq/default/cnmap/cnmap.shp)
(0)     Error: gsn_add_shapefile_polylines: Can't open shapefile '/cma/u/Tzhucw/haoyq/default/cnmap/cnmap.shp'
(0)            No shapefile information will be added.
warning:["FileSupport.c":3026]:NCL does not know anything about file suffix <shp>.
But NCL will try its best to figure out the file format.
fatal:An internal error has occurred. The file format requested does not appear to be supported, could not open (/cma/u/Tzhucw/haoyq/default/cnmap/river.shp)
(0)     Error: gsn_add_shapefile_polylines: Can't open shapefile '/cma/u/Tzhucw/haoyq/default/cnmap/river.shp'
(0)            No shapefile information will be added.
warning:["FileSupport.c":3026]:NCL does not know anything about file suffix <shp>.
But NCL will try its best to figure out the file format.
fatal:An internal error has occurred. The file format requested does not appear to be supported, could not open (/cma/u/Tzhucw/haoyq/default/cnmap/cnhimap.shp)
(0)     Error: gsn_add_shapefile_polylines: Can't open shapefile '/cma/u/Tzhucw/haoyq/default/cnmap/cnhimap.shp'
(0)            No shapefile information will be added.
warning:["FileSupport.c":3026]:NCL does not know anything about file suffix <shp>.
But NCL will try its best to figure out the file format.
fatal:An internal error has occurred. The file format requested does not appear to be supported, could not open (/cma/u/Tzhucw/haoyq/default/cnmap/cnmap.shp)
(0)     Error: gsn_add_shapefile_polylines: Can't open shapefile '/cma/u/Tzhucw/haoyq/default/cnmap/cnmap.shp'
(0)            No shapefile information will be added.
warning:New: Could not coerce missing value parameter into appropriate type, using default
warning:New: Could not coerce missing value parameter into appropriate type, using default
warning:New: Could not coerce missing value parameter into appropriate type, using default
warning:New: Could not coerce missing value parameter into appropriate type, using default

谢谢你!


chinamap.ncl

2.63 KB, 下载次数: 1, 下载积分: 金钱 -5

cnmap.ncl

4.08 KB, 下载次数: 1, 下载积分: 金钱 -5

密码修改失败请联系微信:mofangbao
 楼主| 发表于 2014-9-19 21:25:35 | 显示全部楼层
YJane 发表于 2014-9-19 15:52
环境变量里load "$NCARG_ROOT/lib/ncarg/nclscripts/cnmap/cnmap.ncl"是什么意思?我在Ubuntu下加入这个环 ...

没有说这个加在环境变量里面吧。。。。
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2014-9-19 21:45:19 | 显示全部楼层
yuqianhao0315 发表于 2014-9-19 16:07
chinamap.ncl是我用来画图的脚本:
我改动了第四条路径:load "/cma/u/Tzhucw/haoyq/default/cnmap/cn ...

chinamap.png
按照你说的,我在本地试了一下是没问题的,应该是服务器上ncl的问题

密码修改失败请联系微信:mofangbao
发表于 2014-9-19 21:57:51 | 显示全部楼层
尽头的尽头 发表于 2014-9-19 21:25
没有说这个加在环境变量里面吧。。。。

那意思是这个是在终端里直接输入的吗?
密码修改失败请联系微信:mofangbao
发表于 2014-9-19 22:17:04 | 显示全部楼层
尽头的尽头 发表于 2014-9-19 21:45
按照你说的,我在本地试了一下是没问题的,应该是服务器上ncl的问题

是啊,我打算装个虚拟机再用NCL,这样往系统里添加cnmap文件应该就能用了。最后再感谢一下你提供的画图方法~
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2014-9-20 08:19:06 | 显示全部楼层
yuqianhao0315 发表于 2014-9-19 22:17
是啊,我打算装个虚拟机再用NCL,这样往系统里添加cnmap文件应该就能用了。最后再感谢一下你提供的画图方 ...

不客气~~感谢你对论坛的支持~~
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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