爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
楼主: MeteoInfo

MeteoInfoLab脚本汇总贴

  [复制链接]

新浪微博达人勋

发表于 2017-10-21 17:20:40 | 显示全部楼层
太全了哈哈
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-10-22 20:32:39 | 显示全部楼层
赞赞赞!谢谢老师分享!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-10-24 15:06:43 | 显示全部楼层
本帖最后由 sun92 于 2017-10-24 15:09 编辑

老师您好  我在处理capliso数据时候 脚本如下

# Add file
folder = 'D:/Temp/hdf/'

fns = ' CAL_LID_L1-ValStage1-V3-40.2016-12-06T05-47-20ZD.hdf'

fn = folder + fns
# Read data
f = addfile(fn)

vname = 'Total_Attenuated_Backscatter_532'

var = f[vname]

data = var[:1000,:]

data = rot90(data)

lats = f['latitude'][:1000,0]

latstrs = []

for lat in lats:

    latstrs.append('%.1f' % lat)

height = f['metadata'][None]

m = height.findMember('Lidar_Data_Altitudes')

h = array(height.getArray(0, m))

h = h[::-1]

hstrs = []

for hh in h:

    hstrs.append('%.1f' % hh)


# Plot

levs = [0.0001,0.0002,0.0003,0.0004,0.0005,0.0006,0.0007,0.0008,0.0009,\

    0.001,0.0015,0.002,0.0025,0.003,0.0035,0.004,0.0045,0.005,0.0055,0.006,\

    0.0065,0.007,0.0075,0.008,0.01,0.02,0.03,0.04,0.05,0.06,0.07,0.08,0.09,01]

layer = imshow(data, levs, cmap='MPL_terrain')

xticks(data.dimvalue(1), latstrs)

yticks(data.dimvalue(0), hstrs)

xlabel('Latitude')

ylabel('Altitude (km)')

colorbar(layer, label=r'$\rm{km}^{-1}$ \rm{sr}$^{-1}')

basename = os.path.basename(fn)

title('{0}\n{1}'.format(basename, vname))

运行后报错 :

Traceback (most recent call last):
  File "<string>", line 9, in <module>
NameError: name 'addfile' is not defined

用的软件是:
MeteoInfo Desktop Application
C# edition
MeteoInfo 1.1.3.5 - C#

请问我要怎么修改呢?

还有想问一下 竖坐标是海拔高度  能不能修改脚本只显示 我想要的海拔高度?  那么脚本该怎么修改呢? 谢谢老师  祝老师生活愉快

密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2017-10-24 15:22:55 | 显示全部楼层
sun92 发表于 2017-10-24 15:06
老师您好  我在处理capliso数据时候 脚本如下

# Add file

请仔细看本贴一楼
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-11-18 10:19:50 | 显示全部楼层
感谢老老师分享,学习中
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-11-29 17:25:56 | 显示全部楼层
王老师,请问meteoinfo 可以画uv合成风矢量的剖面图吗
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2017-11-29 18:14:06 | 显示全部楼层
GS晨光 发表于 2017-11-29 17:25
王老师,请问meteoinfo 可以画uv合成风矢量的剖面图吗

可以
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-12-15 08:52:50 | 显示全部楼层
赞一个
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

发表于 2017-12-25 22:17:57 | 显示全部楼层
精华帖,小白收下了!!!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-12-25 22:18:14 | 显示全部楼层
精华帖,小白收下了!!!
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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