Omaha #2061 Fix ogc reference to Metar units.
Former-commit-id: 4773eaa7d0736a4bd68270742b344a6e069ab0ea
This commit is contained in:
parent
1adc95130a
commit
cc957caac6
1 changed files with 3 additions and 1 deletions
|
@ -26,6 +26,7 @@
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Aug 3, 2011 bclement Initial creation
|
||||
* Jun 11, 2011 2061 bsteffen Remove units constants from metar
|
||||
*
|
||||
*/
|
||||
package com.raytheon.uf.edex.plugin.obs.ogc.metar;
|
||||
|
@ -40,6 +41,7 @@ import java.util.Map;
|
|||
import java.util.Set;
|
||||
|
||||
import javax.measure.quantity.Pressure;
|
||||
import javax.measure.unit.SI;
|
||||
import javax.measure.unit.Unit;
|
||||
|
||||
import org.geotools.feature.simple.SimpleFeatureBuilder;
|
||||
|
@ -224,7 +226,7 @@ public class MetarFeatureFactory implements FeatureFactory {
|
|||
* @return
|
||||
*/
|
||||
protected static String get3HrPress(float press) {
|
||||
Unit<Pressure> unit = MetarRecord.PRESSURE_UNIT;
|
||||
Unit<Pressure> unit = SI.HECTO(SI.PASCAL);
|
||||
return String.format("%f %s", press, unit.toString());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue