- 积分
- 24
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-10-28
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2015-10-27 13:51:03
|
显示全部楼层
按照您给的脚本,将工作文件夹路径进行了替代。
出现了以下两条错误
NameError: name 'os' is not defined;增加i“mport os” 之后 出现 NameError: name 'addfile_hytraj' is not defined
#-----------------------------------------------------
# Author: Yaqiang Wang
# Date: 2015-9-30
# Purpose: Get meteorological data along trajectory
# Note: Sample
#-----------------------------------------------------
# Set working directory
trajDir = 'D:/Temp/HYSPLIT'
meteoDir = 'D:/Temp/arl'
# Open trjactory data file
print 'Open trajectory data file ...'
trajfn = os.path.join(trajDir, 'traj_20090731')
print 'Trajectory file: ' + trajfn
trajf = addfile_hytraj(trajfn)
# Create trajectory layer
trajLayer = trajf.trajlayer() |
|