爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
12
返回列表 发新帖
楼主: tmzly2008

杭州市不同监测站点的后向轨迹模型怎么做

[复制链接]

新浪微博达人勋

 楼主| 发表于 2015-1-12 19:12:27 | 显示全部楼层

王老师,您好,我在用TrajStat做聚类分析的时候出现了这个问题,我运行example的时候是可以运行的。我想请教下原因是什么,附上错误的提示信息
java.lang.ArrayIndexOutOfBoundsException: 54
        at org.meteoinfo.geoprocess.analysis.Clustering.calculate(Clustering.java:144)
        at trajstat.forms.FrmClusterCal.jButton_CalculateActionPerformed(FrmClusterCal.java:456)
        at trajstat.forms.FrmClusterCal.access$400(FrmClusterCal.java:56)
        at trajstat.forms.FrmClusterCal$6.actionPerformed(FrmClusterCal.java:276)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$200(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
java.lang.ArrayIndexOutOfBoundsException: 54
        at org.meteoinfo.geoprocess.analysis.Clustering.calculate(Clustering.java:144)
        at trajstat.forms.FrmClusterCal.jButton_CalculateActionPerformed(FrmClusterCal.java:456)
        at trajstat.forms.FrmClusterCal.access$400(FrmClusterCal.java:56)
        at trajstat.forms.FrmClusterCal$6.actionPerformed(FrmClusterCal.java:276)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$200(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-1-12 19:59:34 | 显示全部楼层
tmzly2008 发表于 2015-1-12 19:12
王老师,您好,我在用TrajStat做聚类分析的时候出现了这个问题,我运行example的时候是可以运行的。我想 ...

很有可能是某些轨迹节点数不够造成的,有些轨迹可能由于气象数据缺失的缘故追踪得不全。或者你重新计算那些轨迹,或者在聚类的时候忽略掉那些轨迹。在轨迹计算界面中你看看Point number对不对?如果是正确的,你可以选中Ignore the data lines with abnormal point number,然后再聚类(会忽略掉节点数异常的轨迹)。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-1-12 22:41:07 | 显示全部楼层
MeteoInfo 发表于 2015-1-12 19:59
很有可能是某些轨迹节点数不够造成的,有些轨迹可能由于气象数据缺失的缘故追踪得不全。或者你重新计算那 ...

老师,我本来那个csv文件里面放了多个字段有PM2.5、PM10等,我把他分成单个字段多个文件然后分别加载进去就没问题了。就是在那个add data to Trajectory那一步。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-1-13 16:47:03 | 显示全部楼层
MeteoInfo 发表于 2015-1-12 19:59
很有可能是某些轨迹节点数不够造成的,有些轨迹可能由于气象数据缺失的缘故追踪得不全。或者你重新计算那 ...

王老师,我想追问下,point number指的是什么
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-1-13 17:09:40 | 显示全部楼层
tmzly2008 发表于 2015-1-13 16:47
王老师,我想追问下,point number指的是什么

轨迹(线)是由点组成的,缺省的话是每个小时一个点。Point number指的每条轨迹的点数,比如做24小时的后向轨迹,点数应该是25。聚类分析要求所有轨迹的点数是一致的。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-1-13 18:27:16 | 显示全部楼层
MeteoInfo 发表于 2015-1-13 17:09
轨迹(线)是由点组成的,缺省的话是每个小时一个点。Point number指的每条轨迹的点数,比如做24小时的后 ...

恩,明白了谢谢老师
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-3-6 19:40:11 | 显示全部楼层
今天收获还是很多的
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-2-1 16:10:30 | 显示全部楼层
看了这个帖子,学习了很多,谢谢!!!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-9-30 16:04:05 | 显示全部楼层
学习了
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

发表于 2016-12-22 18:32:49 | 显示全部楼层
楼主遇到的一个问题我也遇到了,最后也是像老师建议的忽略异常数据得以解决。
这篇帖子学习氛围很浓
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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