Skip to content
Snippets Groups Projects
Commit 02e116b4 authored by Altekruse, Jason Morgan's avatar Altekruse, Jason Morgan
Browse files

don't use python var names in java

parent a2f4ed9f
No related branches found
No related tags found
2 merge requests!131Production Release | nshmp-ws-static,!129Handle singleton site class dimension
...@@ -125,23 +125,23 @@ public class BoundingReaderHazardCurves extends BoundingReader<StaticDataHazardC ...@@ -125,23 +125,23 @@ public class BoundingReaderHazardCurves extends BoundingReader<StaticDataHazardC
var imt = netcdfData.imts().get(iImt); var imt = netcdfData.imts().get(iImt);
// origin array builder, e.g [0, imt, siteClass] // origin array builder, e.g [0, imt, siteClass]
var origin_builder = netcdf.netcdfShape().buildShape() var originBuilder = netcdf.netcdfShape().buildShape()
.add(IndexKey.IML, 0) .add(IndexKey.IML, 0)
.add(IndexKey.IMT, iImt); .add(IndexKey.IMT, iImt);
// shape array builder, e.g. [nIML, 1, 1] // shape array builder, e.g. [nIML, 1, 1]
var shape_builder = netcdf.netcdfShape().buildShape() var shapeBuilder = netcdf.netcdfShape().buildShape()
.add(IndexKey.IML, netcdfData.nIml()) .add(IndexKey.IML, netcdfData.nIml())
.add(IndexKey.IMT, 1); .add(IndexKey.IMT, 1);
// Only add index for siteClass if this is not a singleton dimension // Only add index for siteClass if this is not a singleton dimension
if (netcdfData.siteClasses().size() > 1) { if (netcdfData.siteClasses().size() > 1) {
origin_builder.add(IndexKey.SITE_CLASS, iSiteClass); originBuilder.add(IndexKey.SITE_CLASS, iSiteClass);
shape_builder.add(IndexKey.SITE_CLASS, 1); shapeBuilder.add(IndexKey.SITE_CLASS, 1);
} }
var origin = origin_builder.reduce().build(); var origin = originBuilder.reduce().build();
var shape = shape_builder.reduce().build(); var shape = shapeBuilder.reduce().build();
try { try {
var xySequence = XySequence.create( var xySequence = XySequence.create(
......
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