Skip to content
Snippets Groups Projects
Commit 0c1fffdb authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

Use precesion

parent dfe35955
No related branches found
No related tags found
2 merge requests!109Production Release,!107AASHTO Updates
......@@ -85,13 +85,11 @@ public abstract class Reader {
Map.Entry::getValue));
var latitudes = Arrays.stream(NetcdfUtils.getDoubleArray(targetGroup, Key.LAT))
// TODO: Dynamic set location precision from NetCDF
.map(lat -> Maths.round(lat, 3))
.map(lat -> Maths.round(lat, NetcdfUtils.LOCATION_PRECISION))
.toArray();
var longitudes = Arrays.stream(NetcdfUtils.getDoubleArray(targetGroup, Key.LON))
// TODO: Dynamic set location precision from NetCDF
.map(lon -> Maths.round(lon, 3))
.map(lon -> Maths.round(lon, NetcdfUtils.LOCATION_PRECISION))
.toArray();
return NetcdfData.builder()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment