From 64cdb3c7fd02fb982c6352953ef96b8720d02130 Mon Sep 17 00:00:00 2001 From: Mike Duff Date: Tue, 2 Apr 2013 16:22:23 -0500 Subject: [PATCH] Issue #1731 - fix problem with dmd updating. Change-Id: I1f3eb576cf26a42195ca9c4cadfbeaeb77394af6 Former-commit-id: a8c25cfced44c7e3edfd1b37af73b2af8753212b --- .../uf/viz/monitor/scan/resource/ScanResource.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/cave/com.raytheon.uf.viz.monitor.scan/src/com/raytheon/uf/viz/monitor/scan/resource/ScanResource.java b/cave/com.raytheon.uf.viz.monitor.scan/src/com/raytheon/uf/viz/monitor/scan/resource/ScanResource.java index eccee8f0e6..7fba88a56e 100644 --- a/cave/com.raytheon.uf.viz.monitor.scan/src/com/raytheon/uf/viz/monitor/scan/resource/ScanResource.java +++ b/cave/com.raytheon.uf.viz.monitor.scan/src/com/raytheon/uf/viz/monitor/scan/resource/ScanResource.java @@ -82,6 +82,7 @@ import com.vividsolutions.jts.geom.Coordinate; * Jul 24 2012 12996 Xiaochuan Compare with MidVal() * Feb 28, 2013 1731 bsteffen Allow ScanResource to work better with * D2DTimeMatcher. + * Apr 02, 2013 1731 mpduff Fix problem with DMD updates. * * * @@ -1108,7 +1109,8 @@ public class ScanResource extends try { if (!getScan().getTimeOrderedKeys(getScan(), newrecord.getType(), resourceData.icao).contains( - newrecord.getDataTime().getRefTime())) { + newrecord.getDataTime().getRefTime()) + || newrecord.getType().equals("DMD")) { newrecord = resourceData.populateRecord(newrecord); @@ -1118,11 +1120,12 @@ public class ScanResource extends getScan().setTableData(resourceData.icao, newrecord.getTableData(), - /* TODO: This should be the volume scan time, - * but {Radar,Scan}Record.getVolScanTime is actually - * the radar product generation time. + /* + * TODO: This should be the volume scan time, but + * {Radar,Scan}Record.getVolScanTime is actually the + * radar product generation time. */ - newrecord.getDataTime().getRefTime(), + newrecord.getDataTime().getRefTime(), newrecord.getTilt(), newrecord.getDataTime().getRefTime(), newrecord.getType());