From 91335095297e49efbdd26e421d3e8f9f48499c30 Mon Sep 17 00:00:00 2001 From: Nate Jensen Date: Tue, 17 Sep 2013 16:24:23 -0500 Subject: [PATCH] Issue #2378 improve 3/6 hr precip decoding Change-Id: I115e2be022a7ca12c149bbb927011038047512b6 Former-commit-id: db5c004194645231b1591b67bbef3d3d14cce208 --- .../com/raytheon/edex/plugin/obs/metar/MetarDecoder.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/edexOsgi/com.raytheon.edex.plugin.obs/src/com/raytheon/edex/plugin/obs/metar/MetarDecoder.java b/edexOsgi/com.raytheon.edex.plugin.obs/src/com/raytheon/edex/plugin/obs/metar/MetarDecoder.java index fd0f96eed5..43617ece1d 100644 --- a/edexOsgi/com.raytheon.edex.plugin.obs/src/com/raytheon/edex/plugin/obs/metar/MetarDecoder.java +++ b/edexOsgi/com.raytheon.edex.plugin.obs/src/com/raytheon/edex/plugin/obs/metar/MetarDecoder.java @@ -78,6 +78,7 @@ import com.vividsolutions.jts.geom.impl.CoordinateArraySequence; * handle CB/TCU and /// data. * Nov 11, 2008 1684 chammack Camel refactor. * Aug 30, 2013 2298 rjpeter Make getPluginName abstract + * Sep 17, 2013 2378 njensen Improve 3/6 hr precip decoding * * * @author bphillip @@ -157,11 +158,11 @@ public class MetarDecoder extends AbstractDecoder { /** Regular expression for the 3 hour precipitation */ public static final Pattern PRECIP_3HR_EXP = Pattern - .compile("\\s6(\\d{3,4}|////)\\s"); + .compile("\\s6(\\d{4}|////)\\s"); - /** Regular expression for the 3 hour precipitation */ + /** Regular expression for the 24 hour precipitation */ public static final Pattern PRECIP_24HR_EXP = Pattern - .compile("\\s7(\\d{3,4}|////)\\s"); + .compile("\\s7(\\d{4}|////)\\s"); /** Regular expression for the 3 hour pressure change */ public static final Pattern PRESS_CHANGE_EXP = Pattern