diff --git a/src/lib/src/main/java/gov/usgs/earthquake/nshmp/netcdf/reader/Reader.java b/src/lib/src/main/java/gov/usgs/earthquake/nshmp/netcdf/reader/Reader.java index 80f176fe02cb3a9ee6398e51e4b32a64cd4b645a..0c51035837a736acf67e7219e5cc75a54ab5a2ed 100644 --- a/src/lib/src/main/java/gov/usgs/earthquake/nshmp/netcdf/reader/Reader.java +++ b/src/lib/src/main/java/gov/usgs/earthquake/nshmp/netcdf/reader/Reader.java @@ -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()