ASM #16925 added a fix so that synoptictoshef generates messages for zero reports
Change-Id: Ib6fd26b27285de0f63500683ed6e9176dafc723f Former-commit-id: 9c4891a00d1b7f238798b3392b96dffd59703569
This commit is contained in:
parent
04b07d9207
commit
ffd65b6fe7
2 changed files with 5 additions and 3 deletions
|
@ -51,6 +51,7 @@ import com.raytheon.uf.edex.decodertools.time.TimeTools;
|
|||
* Sep 26, 2014 #3629 mapeters Replaced static imports.
|
||||
* Sep 30, 2014 #3629 mapeters Replaced {@link AbstractSfcObsDecoder#matchElement()}
|
||||
* calls, added PATTERN_8094.
|
||||
* Jul 09, 2015 #16924 lbousaidi fixed the precip value for trace data
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -353,7 +354,7 @@ public class SynopticSec1Decoder extends AbstractSectionDecoder {
|
|||
if (precip != null) {
|
||||
Double v = precip.getDataValue();
|
||||
Integer p = precip.getDataPeriod();
|
||||
if ((v != null) && (v > 0) && (p != null)) {
|
||||
if ((v != null) && (v >= 0) && (p != null)) {
|
||||
AncPrecip precip = new AncPrecip();
|
||||
precip.setPrecipAmount(v);
|
||||
precip.setTimePeriod(p);
|
||||
|
|
|
@ -36,7 +36,8 @@ import com.raytheon.uf.common.dataplugin.sfcobs.ObsCommon;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Mar 5, 2010 jkorman Initial creation
|
||||
* Jul , 2015 #16909 lbousaidi added a routine to apply -sw option
|
||||
* Jul 02,2015 #16909 lbousaidi added a routine to apply -sw option
|
||||
* Jul 09,2015 #16925 lbousaidi trace value was considered missing
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -183,7 +184,7 @@ public enum SHEF_SM_Codes implements SHEF_Obs_Codes<ObsCommon> {
|
|||
if (d == 0) {
|
||||
if ((!options.isOptZero6HourPrecip())
|
||||
&& (!options.isOptZeroAuto6HourPrecip())) {
|
||||
d = -9999.0;
|
||||
d = 0.0;
|
||||
}
|
||||
}
|
||||
if (d > -9999) {
|
||||
|
|
Loading…
Add table
Reference in a new issue