Change-Id: If943dfd5a9c39c57301e8636c1af62d8eaaad4af

Former-commit-id: 1c0633daccad7e9f20b444c86fa15fa11cadd0e7
This commit is contained in:
Gang.Zhang 2013-12-20 15:38:02 +00:00
parent 53c48228d9
commit 5f87120aba

View file

@ -77,8 +77,8 @@ import com.vividsolutions.jts.io.WKTWriter;
* ------------ ---------- ----------- --------------------------
* 02/11/2009 1981 dhladky Initial Creation.
* 09/03/2013 DR 13083 gzhang Added getZRvalue2() to fix an error.
* 12/20/2013 DR 16894 gzhang Fixed getZRvalue2() bias issue.
* </pre>
*
* @author dhladky
* @version 1.0
*/
@ -1945,16 +1945,16 @@ public class ScanUtils {
if (zValue >= 2) {
zValue = MIN_DHR_DBZ + ((zValue - 2) * DHR_DBZ_STEP);
double rlogMult = Math.log10(coefficent);
rValue = bias*(Math.pow(10.0, ((zValue-10.0*rlogMult)/(10.0*power))));
rValue = /*bias* */(Math.pow(10.0, ((zValue-10.0*rlogMult)/(10.0*power))));
// hail cap check
if (rValue > hailCap) {
return (float) (MM_TO_INCH * hailCap);
rValue = /*return (float) */(/*MM_TO_INCH * */hailCap);
}
} else {
return (float) rValue;
rValue = /*return */(float) rValue;
}
return (float) (MM_TO_INCH * rValue);
return (float) (bias*MM_TO_INCH * rValue);
}
}