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
c0475a2c
Commit
c0475a2c
authored
2 years ago
by
Clayton, Brandon Scott
Browse files
Options
Downloads
Patches
Plain Diff
read in map and sites
parent
b3d8d2b7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!133
Production Release | nshmp-ws-static
,
!132
Resolves - Add Map and SItes to Usage
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/hazard/src/main/java/gov/usgs/earthquake/nshmp/netcdf/reader/ReaderHazardCurves.java
+10
-1
10 additions, 1 deletion
...gs/earthquake/nshmp/netcdf/reader/ReaderHazardCurves.java
with
10 additions
and
1 deletion
src/hazard/src/main/java/gov/usgs/earthquake/nshmp/netcdf/reader/ReaderHazardCurves.java
+
10
−
1
View file @
c0475a2c
...
...
@@ -7,6 +7,7 @@ import java.util.EnumMap;
import
java.util.List
;
import
java.util.Map
;
import
gov.usgs.earthquake.nshmp.geo.json.GeoJson
;
import
gov.usgs.earthquake.nshmp.gmm.Imt
;
import
gov.usgs.earthquake.nshmp.netcdf.data.NetcdfData
;
import
gov.usgs.earthquake.nshmp.netcdf.data.NetcdfDataHazardCurves
;
...
...
@@ -43,7 +44,15 @@ public class ReaderHazardCurves extends Reader {
// get map of IMLs
var
imls
=
mapImls
(
vImls
,
netcdfData
.
imts
());
return
new
NetcdfDataHazardCurves
(
netcdfData
,
imls
);
// get map boundary geojson
var
map
=
GeoJson
.
from
(
targetGroup
.
findAttribute
(
Key
.
MAP
).
getStringValue
()).
toFeatureCollection
();
// get test sites geojson
var
sites
=
GeoJson
.
from
(
targetGroup
.
findAttribute
(
Key
.
SITES
).
getStringValue
()).
toFeatureCollection
();
return
new
NetcdfDataHazardCurves
(
netcdfData
,
imls
,
map
,
sites
);
}
@Override
...
...
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