爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 9984|回复: 3

[经验总结] 学习总结1-kalman filter-python

[复制链接]

新浪微博达人勋

发表于 2017-3-24 18:15:50 | 显示全部楼层 |阅读模式

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

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

x
最近学习KF,使用Kalman-and-Bayesian-Filters-in-Pythonhttps://github.com/rlabbe/Kalman-and-Bayesian-Filters-in-Python)版本codes,使用过程中遇到一些小麻烦,做个笔记总结。


运行环境:
1. python version 3+ (v2.7有一点不compatible,需要修改)
2. install numpy, scipy, matplotlib, filterpy, ipython, jupyter,最简便方法使用pip(e.g. pip install jupyter)
3. 运行codes/下面代码,用ipython instead of python,否则报错“ModuleNotFoundError: No module named 'codes'”,这个很重要。google搜索这个error,受到作者启发“Wow, I have no idea. I was fighting a similar issue a week or two ago, where I could import from code with IPython, but not Python. I will investigate some more, and maybe a module rename is in the immediate future.”。这个error让我郁闷了一周.....或者懒得输ipython **,可以做个alias.


剩下就可以顺利run这个code了,http://blog.csdn.net/lpcarl/article/details/50608281。为了在server上直接看图,使用>>
import matplotlib.pyplot as plt,最后加上>> plt.show()。画出来的图一致。








example

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

新浪微博达人勋

发表于 2017-3-24 22:54:34 | 显示全部楼层
{:5_257:}{:5_257:}
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

发表于 2017-3-25 10:44:23 | 显示全部楼层
学习中啊感谢分享
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-5-31 11:53:23 | 显示全部楼层
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

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

本版积分规则

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

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

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