爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 193956|回复: 336

MeteoInfoLab脚本汇总贴

  [复制链接]

新浪微博达人勋

发表于 2015-6-18 09:12:37 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 MeteoInfo 于 2020-10-16 23:12 编辑

MeteoInfoLab是以脚本编写和命令行交互为主的软件,用Jython语言对MeteoInfo库进行了封装,提供科学计算和绘图的功能,函数参照MatLab、Numpy、Matplotlib实现。

双击MeteoInfoLab.exe启动(Linux下用milab.sh启动),界面中包含5个可停靠窗体:Editor是脚本编辑窗体,Console是命令行交互窗体,Figures是图形显示窗体,File explorer是文件浏览窗体,Variable exploere是变量浏览窗体(此窗体还处在初级阶段)。菜单栏和工具栏主要是脚本编辑功能,工具栏右侧的Current Folder是当前的工作目录,当前工作目录中的子目录和文件会显示在File explorer窗体中,可用通过Current Floder右侧的按钮或者File explorer中点击返回上级路径和双击子目录来改变当前工作目录。
milab_2.3.png

这里汇总MeteoInfoLab相关脚本贴,方便大家查阅。

数据插值
气溶胶光学厚度(AOD)数据处理:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36140&extra=page%3D1
站点数据插值、绘制等值线图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36422&extra=page%3D1
Text站点数据绘制等值线图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=53210&extra=page%3D1
格点插值、Convex Hull:http://bbs.06climate.com/forum.php?mod=viewthread&tid=45123&extra=page%3D1
格点数据插值为站点数据批处理:http://bbs.06climate.com/forum.php?mod=viewthread&tid=35191
格点插值到站点(多种方法):http://bbs.06climate.com/forum.php?mod=viewthread&tid=54054&extra=page%3D1
格点插值到格点:http://bbs.06climate.com/forum.php?mod=viewthread&tid=91352

卫星数据:
FY 2C HDF格式云分类产品处理:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36417&extra=page%3D1
FY 3A HDF AOD数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36517&extra=page%3D1
FY 3C HDF全球火点数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=37345&extra=page%3D1
TRMM 2A12 HDF数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36532&extra=page%3D1
TRMM 3B43 HDF数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36579&extra=page%3D1
AIRS Swath HDF数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36551&extra=page%3D1
AIRS Grid HDF数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36558&extra=page%3D1
MERRA HDF数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36581&extra=page%3D1
OMI Swath HDF数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36626&extra=page%3D1
OMI Grid HDF数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36627&extra=page%3D1
AVHRR HDF数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=38403&extra=page%3D1
MODIS Sinusoidal投影HDF数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36749&extra=page%3D1
FY 2E HDF格式数据处理绘图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=35197
CloudSAT Swath HDF数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=38711&extra=page%3D1
AMSR-E卫星数据投影:http://bbs.06climate.com/forum.php?mod=viewthread&tid=40992&extra=page%3D1
GPM Swath HDF数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=42061&extra=page%3D1
CALIPSO HDF数据 - 1:http://bbs.06climate.com/forum.php?mod=viewthread&tid=41648
CALIPSO HDF数据 - 2:http://bbs.06climate.com/forum.php?mod=viewthread&tid=42072
Sea ice concentration数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=43434&extra=page%3D1
MLS HDF数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=44663&extra=page%3D1
FY2 gpf格式数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=45033&extra=page%3D1
SMAP L4 HDF数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=45292&extra=page%3D1
OMI吸收性气溶胶指数:http://bbs.06climate.com/forum.php?mod=viewthread&tid=47107&extra=page%3D1
NSIDC的亮温数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=51779&extra=page%3D1
Himawari 8真彩色合成图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=53474&extra=page%3D1
Himawari standard data:http://bbs.06climate.com/forum.php?mod=viewthread&tid=56144&extra=page%3D1
IMS冰雪数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=88415&extra=page%3D1

GeoTiff数据:
GeoTiff数据处理:http://bbs.06climate.com/forum.php?mod=viewthread&tid=35350
GeoTiff RGB数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=41581&extra=page%3D1

数据处理:
Hamawari-8 netCDF数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=37038&extra=page%3D1
数据投影-FLEXPART模式:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36167&extra=page%3D1
获取一维数据并绘图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36174&extra=page%3D1
合并数组:http://bbs.06climate.com/forum.php?mod=viewthread&tid=38504#lastpost
Mannkendall检验:http://bbs.06climate.com/forum.php?mod=viewthread&tid=45239&extra=page%3D1
小时数据日平均:http://bbs.06climate.com/forum.php?mod=viewthread&tid=46754&extra=page%3D1
多站点数据平均:http://bbs.06climate.com/forum.php?mod=viewthread&tid=51290&extra=page%3D1
数据插值:http://bbs.06climate.com/forum.php?mod=viewthread&tid=51436&extra=page%3D1
从micaps 1数据中提取站点时间序列数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=68192&extra=page%3D1
Sigma坐标转等压面坐标:http://bbs.06climate.com/forum.php?mod=viewthread&tid=90737&extra=page%3D1

数据计算:
计算涡度、散度:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36566#lastpost
水汽通量散度计算:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36164&extra=page%3D1
整层水汽通量散度计算:http://bbs.06climate.com/forum.php?mod=viewthread&tid=44879&extra=page%3D1
计算温度平流:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36662&extra=page%3D1
比湿、温度计算相对湿度:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36742&extra=page%3D1
计算水平螺旋度:http://bbs.06climate.com/forum.php?mod=viewthread&tid=38532&extra=page%3D1
计算垂直螺旋度:http://bbs.06climate.com/forum.php?mod=viewthread&tid=38540&extra=page%3D1
计算K指数:http://bbs.06climate.com/forum.php?mod=viewthread&tid=41846&extra=page%3D1
计算假相当位温:http://bbs.06climate.com/forum.php?mod=viewthread&tid=41958&extra=page%3D1
计算湿位涡:http://bbs.06climate.com/forum.php?mod=viewthread&tid=46931
露点和温度计算相对湿度:http://bbs.06climate.com/forum.php?mod=viewthread&tid=60946&extra=page%3D1
inpolygon:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36360&extra=page%3D1
Point in Polygon:http://bbs.06climate.com/forum.php?mod=viewthread&tid=46027&extra=page%3D1
计算不同区域平均值:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36661&extra=page%3D1
区域填色图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=59269&extra=page%3D1
数组沿特定维平均:http://bbs.06climate.com/forum.php?mod=viewthread&tid=42039&extra=page%3D1
格点场旋转:http://bbs.06climate.com/forum.php?mod=viewthread&tid=41110&extra=page%3D1
随高度分布的平均场:http://bbs.06climate.com/forum.php?mod=viewthread&tid=41111&extra=page%3D1
纬向平均的偏差:http://bbs.06climate.com/forum.php?mod=viewthread&tid=53833&extra=page%3D1
EOF分析:http://bbs.06climate.com/forum.php?mod=viewthread&tid=56386
任意两点剖面:http://bbs.06climate.com/forum.php?mod=viewthread&tid=57316
线性相关分析:http://bbs.06climate.com/forum.php?mod=viewthread&tid=60595&extra=page%3D1
奇异谱分析:http://bbs.06climate.com/forum.php?mod=viewthread&tid=61321&extra=page%3D1
定位气压高低值中心:http://bbs.06climate.com/forum.php?mod=viewthread&tid=94425&extra=page%3D1

文件读写:
读取文本文件 - 格点数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36166&extra=page%3D1
读取文本文件 - 站点数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36498&extra=page%3D1
写netCDF文件(合并文件):http://bbs.06climate.com/forum.php?mod=viewthread&tid=38489&extra=page%3D1
GRIB2雷达反射率数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=41536&extra=page%3D1
CINRAD SA雷达反射率数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=59768&extra=page%3D1
读取远程数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36594
读取远程HDF文件:http://bbs.06climate.com/forum.php?mod=viewthread&tid=41539&extra=page%3D1
读取AWX文件:http://bbs.06climate.com/forum.php?mod=viewthread&tid=42312&extra=page%3D1
读取NOAA局地投影数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=42504&extra=page%3D1
GRIB转netCDF:http://bbs.06climate.com/forum.php?mod=viewthread&tid=43055
GrADS转netCDF:http://bbs.06climate.com/forum.php?mod=viewthread&tid=43980&extra=page%3D1
MICAPS第1类数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=44482&extra=page%3D1
MICAPS第4类数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=45105&extra=page%3D1
160站数据绘图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=44833&extra=page%3D1
wrfout数据绘图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=45172&extra=page%3D1
中国地面国际交换站气候资料日值数据集(V3.0):http://bbs.06climate.com/forum.php?mod=viewthread&tid=45179&extra=page%3D1
读取绘制自动气象站数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=49783
GRIB转MICAPS第4类数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=45243&extra=page%3D1
CMORPH降水数据和国内降水融合数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=49889&extra=page%3D1
同时加载、读取多个数据文件:http://bbs.06climate.com/forum.php?mod=viewthread&tid=50162&extra=page%3D1
读取BUFR数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=54000&extra=page%3D1

图形:
加载地图图层:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36418&extra=page%3D1
地图投影:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36421&extra=page%3D1
添加南海脚图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36420&extra=page%3D1
Maskout图形:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36169&extra=page%3D1
风场矢量图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36171
站点风向杆图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=49502&extra=page%3D1
Streamline流线图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=38620&extra=page%3D1
格点数据散点图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36173&extra=page%3D1
站点数据散点图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36363&extra=page%3D1
中尺度气旋散点图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36553&extra=page%3D1
中文处理:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36628&extra=page%3D1
加载图片和透明图层:http://bbs.06climate.com/forum.php?mod=viewthread&tid=37064&extra=page%3D1
闪电位置图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=38405&extra=page%3D1
青藏高原:http://bbs.06climate.com/forum.php?mod=viewthread&tid=38987&extra=page%3D1
gif动画:http://bbs.06climate.com/forum.php?mod=viewthread&tid=40157&extra=page%3D1
图形版面、点标注:http://bbs.06climate.com/forum.php?mod=viewthread&tid=38624&extra=page%3D1
一页多图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=40346
subplot和subplots:http://bbs.06climate.com/forum.php?mod=viewthread&tid=53015&extra=page%3D1
天气现象符号:http://bbs.06climate.com/forum.php?mod=viewthread&tid=38621&extra=page%3D1
站点填图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=38622&extra=page%3D1
在地图上添加点、线、多边形:http://bbs.06climate.com/forum.php?mod=viewthread&tid=41109&extra=page%3D1
绘制心形:http://bbs.06climate.com/forum.php?mod=viewthread&tid=43302&extra=page%3D1
多色线条:http://bbs.06climate.com/forum.php?mod=viewthread&tid=45429&extra=page%3D1
添加网络地图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=50834&extra=page%3D1
T-LnP图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=46470
图像处理:http://bbs.06climate.com/forum.php?mod=viewthread&tid=53473&extra=page%3D1
误差棒填色图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=54504
三维图形:http://bbs.06climate.com/forum.php?mod=viewthread&tid=54663&extra=page%3D1
三维水平、经向剖面图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=91632
中国地形数据提取及三维地形图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=49302&page=1&extra=#pid728081
污染物浓度三维粒子图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=95998
双Y轴,纬度平均,经度剖面图(叠加地形):http://bbs.06climate.com/forum.php?mod=viewthread&tid=56902

三维心形图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=97591

图形二:
多坐标系:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36175&extra=page%3D1
subplot:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36176&extra=page%3D1
LaTeX写数学公式:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36180&extra=page%3D1
多Y轴图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36196&extra=page%3D1
线性拟合:http://bbs.06climate.com/forum.php?mod=viewthread&tid=36198&extra=page%3D1
Bar图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=39676&extra=page%3D1
Bar图 - 南方涛动指数:http://bbs.06climate.com/forum.php?mod=viewthread&tid=51318&extra=page%3D1
小提琴图(violin plot):http://bbs.06climate.com/forum.php?mod=viewthread&tid=90634&extra=page%3D1
errorbar图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=40937#lastpost
fill_between:http://bbs.06climate.com/forum.php?mod=viewthread&tid=45719&extra=page%3D1
散点密度图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=50942&extra=page%3D1
曲线拟合:http://bbs.06climate.com/forum.php?mod=viewthread&tid=51274&extra=page%3D1
极坐标图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=51613&extra=page%3D1
风玫瑰图:http://bbs.06climate.com/forum.php?mod=viewthread&tid=51614&extra=page%3D1
风玫瑰图中绘制污染物浓度:http://bbs.06climate.com/forum.php?mod=viewthread&tid=54092#lastpost
调整坐标轴位置:http://bbs.06climate.com/forum.php?mod=viewthread&tid=91449

Trajectory:

计算气团轨迹:http://bbs.06climate.com/forum.php?mod=viewthread&tid=38449&extra=page%3D1
绘制气团轨迹:http://bbs.06climate.com/forum.php?mod=viewthread&tid=38447&extra=page%3D1
轨迹节点数检查:http://bbs.06climate.com/forum.php?mod=viewthread&tid=53177&extra=page%3D1
获取气团轨迹节点气象数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=38463&extra=page%3D1
计算涡度插值到气团轨迹节点上:http://bbs.06climate.com/forum.php?mod=viewthread&tid=46753&extra=page%3D1
台风最佳路径:http://bbs.06climate.com/forum.php?mod=viewthread&tid=47734&extra=page%3D1
绘制HYSPLIT模式浓度输出数据:http://bbs.06climate.com/forum.php?mod=viewthread&tid=59235&extra=page%3D1
台风和热带气旋:http://bbs.06climate.com/forum.php?mod=viewthread&tid=38985&extra=page%3D1
追踪台风路径:http://bbs.06climate.com/forum.php?mod=viewthread&tid=55396
wrfout转arl:http://bbs.06climate.com/forum.php?mod=viewthread&tid=40264&extra=page%3D1

GUI:交互式地图操作:http://bbs.06climate.com/forum.php?mod=viewthread&tid=60146

ToolBox:
模式检验(Model Verification):http://bbs.06climate.com/forum.php?mod=viewthread&tid=45037&extra=page%3D1

Image00812.png

评分

参与人数 21金钱 +100 贡献 +8 收起 理由
桔了个皮 + 5 很给力!
gaosrn + 5
jixilin + 1 很给力!
墨舞秋 + 5 很给力!
z2004z2004 + 2 赞一个!
1350707225 + 1
GeminiW + 2
银河骑士陈先生 + 2
13270753737 + 1
Nalanalanaa + 5 很给力!
Whistles + 1 很给力!
shenhao12 + 1 很宝贵的资料
大老鹰 + 10 + 2 很给力!
hwshh + 10 + 2 很给力!
huangbicheng + 10 + 2 很给力!
qxtlyf + 10 + 2 很给力!
李璐含 + 5 很给力!
jeydragon + 10 赞一个!
小糖果 + 2
泡泡爱可乐 + 10

查看全部评分

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

新浪微博达人勋

发表于 2015-6-18 16:43:02 | 显示全部楼层
{:eb502:}{:eb502:}
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

发表于 2015-6-22 12:38:14 | 显示全部楼层
好强大!谢谢王老师分享!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-7-3 23:02:06 | 显示全部楼层
顶!!!!!!
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

发表于 2015-7-8 19:51:50 | 显示全部楼层
谢谢老师分享
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-7-9 23:24:14 | 显示全部楼层
老师,请问脚本里运行时只要程序出现中文就出错怎么办,一些字体也设置不了,图的标题也不能写成中文
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-7-9 23:30:27 | 显示全部楼层
气象万千2011 发表于 2015-7-9 23:24
老师,请问脚本里运行时只要程序出现中文就出错怎么办,一些字体也设置不了,图的标题也不能写成中文

我一会发一个处理中文的帖子
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-7-9 23:44:49 | 显示全部楼层
气象万千2011 发表于 2015-7-9 23:24
老师,请问脚本里运行时只要程序出现中文就出错怎么办,一些字体也设置不了,图的标题也不能写成中文

参考此贴:MeteoInfoLab脚本示例:中文处理
http://bbs.06climate.com/forum.p ... 628&fromuid=106
(出处: 气象家园)
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-7-10 12:39:54 | 显示全部楼层
MeteoInfo 发表于 2015-7-9 23:44
参考此贴:MeteoInfoLab脚本示例:中文处理
http://bbs.06climate.com/forum.php?mod=viewthread&tid=36 ...

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

新浪微博达人勋

发表于 2015-7-17 09:09:28 | 显示全部楼层
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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