爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 4549|回复: 14

add data to trajectory出错

[复制链接]

新浪微博达人勋

发表于 2015-7-27 22:58:28 | 显示全部楼层 |阅读模式

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

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

x


第一步添加地点正确


                               
登录/注册后可看大图



第二步3天后向轨迹也正确

                               
登录/注册后可看大图



接下来的格栅图形也正确


                               
登录/注册后可看大图



                               
登录/注册后可看大图



但是在添加测定值数据时出错了


QQ截图20150727225553.jpg


                               
登录/注册后可看大图




QQ截图20150727225650.jpg


错误信息如下:
java.lang.NullPointerException
at java.util.Calendar.setTime(Unknown Source)
at trajstat.forms.FrmAddData.jButton_AddDataActionPerformed(FrmAddData.java:494)
at trajstat.forms.FrmAddData.access$200(FrmAddData.java:47)
at trajstat.forms.FrmAddData$3.actionPerformed(FrmAddData.java:230)
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$500(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.NullPointerException
at java.util.Calendar.setTime(Unknown Source)
at trajstat.forms.FrmAddData.jButton_AddDataActionPerformed(FrmAddData.java:494)
at trajstat.forms.FrmAddData.access$200(FrmAddData.java:47)
at trajstat.forms.FrmAddData$3.actionPerformed(FrmAddData.java:230)
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$500(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.NullPointerException
at java.util.Calendar.setTime(Unknown Source)
at trajstat.forms.FrmAddData.jButton_AddDataActionPerformed(FrmAddData.java:494)
at trajstat.forms.FrmAddData.access$200(FrmAddData.java:47)
at trajstat.forms.FrmAddData$3.actionPerformed(FrmAddData.java:230)
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$500(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.NullPointerException
at java.util.Calendar.setTime(Unknown Source)
at trajstat.forms.FrmAddData.jButton_AddDataActionPerformed(FrmAddData.java:494)
at trajstat.forms.FrmAddData.access$200(FrmAddData.java:47)
at trajstat.forms.FrmAddData$3.actionPerformed(FrmAddData.java:230)
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$500(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-7-28 09:14:32 | 显示全部楼层
格式不对,你的那个数据格式应该为2013050118,你没有18,而且你的那个值应该是当天的值,小时的轨迹和一天的均值不对应,会引起异议的
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-7-28 11:57:17 | 显示全部楼层
Date format改为:yyyyMMdd
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-7-28 16:19:17 | 显示全部楼层
星期八 发表于 2015-7-28 09:14
格式不对,你的那个数据格式应该为2013050118,你没有18,而且你的那个值应该是当天的值,小时的轨迹和一天 ...

谢谢,改过后,错误就没有了
另外再请教下,如果我做一天不同时间的轨迹,比如我做0点,6点,12点,18点,这4个时刻的轨迹,我是不是在第二步,轨迹计算的时候在staring hour的地方填写00 06 12 18 ,这4个数呢?
如果这样可以我后面的监测的大气污染物的数据应该怎样对应列出来呢???
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-7-28 16:25:55 | 显示全部楼层
MeteoInfo 发表于 2015-7-28 11:57
Date format改为:yyyyMMdd

添加数据.jpg
按楼上的大神的提示修改后错误消失了,我的是win7 64位系统,用的meteorinfo 1.2.7 和trajstat 1.4.4R3
上图是时间格式的选择只有上图中的三种个格式!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-7-28 16:45:35 | 显示全部楼层
MeteoInfo 发表于 2015-7-28 11:57
Date format改为:yyyyMMdd

另外meteoinfo官网中下载的trajstat的使用介绍中;在select trajectory这一步后面有一步convert to line data ,新版本1.4.4R3中是不是没有这个了呢?我一直没找到
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-7-28 19:21:03 | 显示全部楼层
新版本把这一步省去,很帅气吧
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-7-29 23:12:53 | 显示全部楼层
星期八 发表于 2015-7-28 19:21
新版本把这一步省去,很帅气吧

是的,简化了步骤,太好了!多谢!



接下来的cluster calculation to the trajectiories中,弹出的对话框
如下图:
QQ截图20150729222905.jpg

output file:
这里的输出文件后面是空白的,每次需要提前创建个空白的.txt文件,
然后点击这里的空白处找到创建的.txt文件   如下图:
QQ截图20150729224929.jpg

然后我点击“calculate”后 提示”clustering calculation finished!“
如下图,以及打开的计算后的.txt文件信息
QQ截图20150729225326.jpg
我这里max cluster number:9      
和软件介绍上的那个酒泉PM10的例子设置的一样
我这里设置 cluster number:6   点击mean traj 后创建了mean图层
如下图
QQ截图20150729230723.jpg
隐藏trajectory图层后,我这里显示的情况如下图:
QQ截图20150729230842.jpg

这里显示的线性就一种,而且是黑色的,为什么和酒泉的那个例子显示出
不同颜色的不一样呢???
不知道哪里操作的不对,请给指点下???






















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

新浪微博达人勋

发表于 2015-7-30 08:38:26 | 显示全部楼层
suntao8 发表于 2015-7-29 23:12
是的,简化了步骤,太好了!多谢!

仔细看看MeteoInfo的帮助文档
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-3-30 17:08:48 | 显示全部楼层
请教下楼主 是如何添加的地点吗?初学者不太懂,没找到地方。
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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