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
|
||||
* Jun 05, 2014 3226 bclement BinLightning refactor
|
||||
* compare lightning strike type by id instead of ordinal
|
||||
* May 17, 2016 19009 dhladky (code ckecked in by zhao) Modified decodeDPRValue()
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
|
@ -812,10 +813,8 @@ public class ScanUtils {
|
|||
* @return
|
||||
*/
|
||||
public static float decodeDPRValue(int dataValue) {
|
||||
|
||||
// DPR is shown in 1000th of an inch
|
||||
|
||||
return dataValue / 1000;
|
||||
return (float) (dataValue / 1000.0f);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -110,6 +110,7 @@ import com.vividsolutions.jts.geom.Polygon;
|
|||
* Sep 28, 2015 4756 dhladky Multiple Guidance upgrades.
|
||||
* Feb 04, 2016 5311 dhladky Bug in creation of source bins fixed.
|
||||
* 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>
|
||||
*
|
||||
* @author dhladky
|
||||
|
@ -1186,17 +1187,8 @@ public class FFMPProcessor {
|
|||
}
|
||||
|
||||
} else if (radarRec.getMnemonic().equals("DPR")) {
|
||||
|
||||
for (int j = 0; j < dataVals.length; j++) {
|
||||
|
||||
float fval = 0.0f;
|
||||
|
||||
if (dataVals[j] > 0) {
|
||||
|
||||
fval = ScanUtils.decodeDPRValue(dataVals[j]);
|
||||
val += fval * areas[j];
|
||||
}
|
||||
|
||||
val += ScanUtils.decodeDPRValue(dataVals[j]) * areas[j];
|
||||
area += areas[j];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue