Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-ws-static
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ghsc
National Seismic Hazard Model Project
nshmp-ws-static
Commits
ea7772db
Commit
ea7772db
authored
2 years ago
by
Clayton, Brandon Scott
Browse files
Options
Downloads
Patches
Plain Diff
Add pgv label
parent
691e8b50
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!138
Production Release | nshmp-ws-static
,
!137
PGV X Label
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/hazard/src/main/java/gov/usgs/earthquake/nshmp/netcdf/www/NetcdfServiceHazardCurves.java
+3
-1
3 additions, 1 deletion
...arthquake/nshmp/netcdf/www/NetcdfServiceHazardCurves.java
with
3 additions
and
1 deletion
src/hazard/src/main/java/gov/usgs/earthquake/nshmp/netcdf/www/NetcdfServiceHazardCurves.java
+
3
−
1
View file @
ea7772db
...
@@ -36,6 +36,7 @@ public class NetcdfServiceHazardCurves extends
...
@@ -36,6 +36,7 @@ public class NetcdfServiceHazardCurves extends
static
final
String
SERVICE_DESCRIPTION
=
"Get static hazard curves from a NetCDF file"
;
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
=
"Ground Motion (g)"
;
static
final
String
X_LABEL_PGV
=
"Ground Motion (cm/s)"
;
static
final
String
Y_LABEL
=
"Annual Frequency of Exceedence"
;
static
final
String
Y_LABEL
=
"Annual Frequency of Exceedence"
;
public
NetcdfServiceHazardCurves
(
NetcdfDataFilesHazardCurves
netcdfDataFiles
)
{
public
NetcdfServiceHazardCurves
(
NetcdfDataFilesHazardCurves
netcdfDataFiles
)
{
...
@@ -211,8 +212,9 @@ public class NetcdfServiceHazardCurves extends
...
@@ -211,8 +212,9 @@ public class NetcdfServiceHazardCurves extends
RequestDataSiteClass
request
,
RequestDataSiteClass
request
,
Imt
imt
,
Imt
imt
,
XySequence
curves
)
{
XySequence
curves
)
{
var
xLabel
=
imt
==
Imt
.
PGV
?
X_LABEL_PGV
:
X_LABEL
;
var
metadata
=
var
metadata
=
new
HazardResponseMetadata
(
request
.
siteClass
,
imt
,
X_LABEL
,
Y_LABEL
);
new
HazardResponseMetadata
(
request
.
siteClass
,
imt
,
xLabel
,
Y_LABEL
);
return
new
ResponseData
<>(
metadata
,
curves
);
return
new
ResponseData
<>(
metadata
,
curves
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment