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
This commit is part of merge request !129. Comments created here will be created in the context of that merge request.
......@@ -125,23 +125,23 @@ public class BoundingReaderHazardCurves extends BoundingReader<StaticDataHazardC
var imt = netcdfData.imts().get(iImt);
// 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.IMT, iImt);
// 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.IMT, 1);
// Only add index for siteClass if this is not a singleton dimension
if (netcdfData.siteClasses().size() > 1) {
origin_builder.add(IndexKey.SITE_CLASS, iSiteClass);
shape_builder.add(IndexKey.SITE_CLASS, 1);
originBuilder.add(IndexKey.SITE_CLASS, iSiteClass);
shapeBuilder.add(IndexKey.SITE_CLASS, 1);
}
var origin = origin_builder.reduce().build();
var shape = shape_builder.reduce().build();
var origin = originBuilder.reduce().build();
var shape = shapeBuilder.reduce().build();
try {
var xySequence = XySequence.create(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment