- 积分
- 118
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-7-19
- 最后登录
- 1970-1-1
|
发表于 2016-8-3 22:28:04
|
显示全部楼层
使用您介绍的MeteoInfoLab脚本,改了之后显示
run script...
Traceback (most recent call last):
File "<iostream>", line 4, in <module>
NameError: name 'folder' is not defined
脚本内容:
#Add data file
#folder = 'E:/TRMM'
fns = '3B43.20010801.7A.HDF'
fn = folder + fns
f = addfile(fn)
vname = 'precipitation'
t = f[vname]
rain = t[0,:,:]
rain = transpose(rain)
rain[rain==0] = -9999.0
rain.fill_value = -9999.0
lat = arange(-49.875, 49.875, 0.249375)
#Add data file
folder ='E:/TRMM'
fns = '3B43.20010801.7A.HDF'
fn = folder + fns
f = addfile(fn)
vname = 'precipitation'
t = f[vname]
rain = t[0,:,:]
rain = transpose(rain)
rain[rain==0] = -9999.0
rain.fill_value = -9999.0
lat = arange(-49.875, 49.875, 0.249375)
lon = arange(-179.875, 179.876, 0.25)
#Plot
axesm()
mlayer = shaperead('E:/TRMM/LYFW.shp')
geoshow(mlayer)
layer = imshowm(lon, lat, rain, 20)
colorbar(layer, orientation='horizontal')
title(vname + 'at scan=0')
axism()
lon = arange(-179.875, 179.876, 0.25)
#Plot
axesm()
mlayer = shaperead('E:/TRMM/LYFW.shp')
geoshow(mlayer)
layer = imshowm(lon, lat, rain, 20)
colorbar(layer, orientation='horizontal')
title(vname + 'at scan=0')
axism()
请问怎么解决呢?谢谢您 |
|