From ea7772db628bdc9f9d65d6e7d60a16796260fc18 Mon Sep 17 00:00:00 2001 From: Brandon Clayton <bclayton@usgs.gov> Date: Mon, 27 Feb 2023 15:01:15 -0700 Subject: [PATCH] Add pgv label --- .../nshmp/netcdf/www/NetcdfServiceHazardCurves.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hazard/src/main/java/gov/usgs/earthquake/nshmp/netcdf/www/NetcdfServiceHazardCurves.java b/src/hazard/src/main/java/gov/usgs/earthquake/nshmp/netcdf/www/NetcdfServiceHazardCurves.java index 6984e67..8f4755f 100644 --- a/src/hazard/src/main/java/gov/usgs/earthquake/nshmp/netcdf/www/NetcdfServiceHazardCurves.java +++ b/src/hazard/src/main/java/gov/usgs/earthquake/nshmp/netcdf/www/NetcdfServiceHazardCurves.java @@ -36,6 +36,7 @@ public class NetcdfServiceHazardCurves extends static final String SERVICE_DESCRIPTION = "Get static hazard curves from a NetCDF file"; static final String X_LABEL = "Ground Motion (g)"; + static final String X_LABEL_PGV = "Ground Motion (cm/s)"; static final String Y_LABEL = "Annual Frequency of Exceedence"; public NetcdfServiceHazardCurves(NetcdfDataFilesHazardCurves netcdfDataFiles) { @@ -211,8 +212,9 @@ public class NetcdfServiceHazardCurves extends RequestDataSiteClass request, Imt imt, XySequence curves) { + var xLabel = imt == Imt.PGV ? X_LABEL_PGV : X_LABEL; var metadata = - new HazardResponseMetadata(request.siteClass, imt, X_LABEL, Y_LABEL); + new HazardResponseMetadata(request.siteClass, imt, xLabel, Y_LABEL); return new ResponseData<>(metadata, curves); } -- GitLab