ASM #19009 FFMP: DPR underestimating basin rain averages
Change-Id: Ib90ce4a2c3f535f5ce72595abb08996c0c77aedf Former-commit-id: f6cc23c9e2cfd067ada3832979e342be1cac0292
This commit is contained in:
parent
99b1b62c99
commit
b93e94bf71
2 changed files with 4 additions and 13 deletions
|
@ -78,6 +78,7 @@ import com.vividsolutions.jts.io.WKTWriter;
|
||||||
* 05/13/2014 3133 njensen Moved convertStrankValue here from ScanConfig
|
* 05/13/2014 3133 njensen Moved convertStrankValue here from ScanConfig
|
||||||
* Jun 05, 2014 3226 bclement BinLightning refactor
|
* Jun 05, 2014 3226 bclement BinLightning refactor
|
||||||
* compare lightning strike type by id instead of ordinal
|
* compare lightning strike type by id instead of ordinal
|
||||||
|
* May 17, 2016 19009 dhladky (code ckecked in by zhao) Modified decodeDPRValue()
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author dhladky
|
* @author dhladky
|
||||||
|
@ -812,10 +813,8 @@ public class ScanUtils {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public static float decodeDPRValue(int dataValue) {
|
public static float decodeDPRValue(int dataValue) {
|
||||||
|
|
||||||
// DPR is shown in 1000th of an inch
|
// DPR is shown in 1000th of an inch
|
||||||
|
return (float) (dataValue / 1000.0f);
|
||||||
return dataValue / 1000;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -110,6 +110,7 @@ import com.vividsolutions.jts.geom.Polygon;
|
||||||
* Sep 28, 2015 4756 dhladky Multiple Guidance upgrades.
|
* Sep 28, 2015 4756 dhladky Multiple Guidance upgrades.
|
||||||
* Feb 04, 2016 5311 dhladky Bug in creation of source bins fixed.
|
* Feb 04, 2016 5311 dhladky Bug in creation of source bins fixed.
|
||||||
* Apr 07, 2016 5491 tjensen Fix NullPointerException from getRawGeometries
|
* Apr 07, 2016 5491 tjensen Fix NullPointerException from getRawGeometries
|
||||||
|
* May 17, 2016 19009 dhladky (code ckecked in by zhao) Modified DPR calculation in processRADAR()
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author dhladky
|
* @author dhladky
|
||||||
|
@ -1186,17 +1187,8 @@ public class FFMPProcessor {
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (radarRec.getMnemonic().equals("DPR")) {
|
} else if (radarRec.getMnemonic().equals("DPR")) {
|
||||||
|
|
||||||
for (int j = 0; j < dataVals.length; j++) {
|
for (int j = 0; j < dataVals.length; j++) {
|
||||||
|
val += ScanUtils.decodeDPRValue(dataVals[j]) * areas[j];
|
||||||
float fval = 0.0f;
|
|
||||||
|
|
||||||
if (dataVals[j] > 0) {
|
|
||||||
|
|
||||||
fval = ScanUtils.decodeDPRValue(dataVals[j]);
|
|
||||||
val += fval * areas[j];
|
|
||||||
}
|
|
||||||
|
|
||||||
area += areas[j];
|
area += areas[j];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue