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
93206d68
Commit
93206d68
authored
5 years ago
by
Clayton, Brandon Scott
Browse files
Options
Downloads
Patches
Plain Diff
remove main method
parent
853c45be
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#9569
failed
5 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build.gradle
+1
-0
1 addition, 0 deletions
build.gradle
src/main/java/gov/usgs/earthquake/nshmp/netcdf/NshmpNetcdfReader.java
+0
-40
0 additions, 40 deletions
...a/gov/usgs/earthquake/nshmp/netcdf/NshmpNetcdfReader.java
with
1 addition
and
40 deletions
build.gradle
+
1
−
0
View file @
93206d68
...
...
@@ -47,6 +47,7 @@ check.dependsOn jacocoTestReport
/* Add HTML reports to SpotBugs */
tasks
.
withType
(
com
.
github
.
spotbugs
.
SpotBugsTask
)
{
ignoreFailures
=
false
// TODO remove when nshmp-lib is updated
reports
{
xml
.
enabled
=
false
html
.
enabled
=
true
...
...
This diff is collapsed.
Click to expand it.
src/main/java/gov/usgs/earthquake/nshmp/netcdf/NshmpNetcdfReader.java
+
0
−
40
View file @
93206d68
...
...
@@ -446,46 +446,6 @@ public class NshmpNetcdfReader {
}
public
static
void
main
(
String
[]
args
)
{
String
filename
=
args
[
0
];
double
targetLon
=
-
105.23
;
double
targetLat
=
39.2
;
// double targetLon = -65.0;
// double targetLat = 50.0;
Location
targetSite
=
Location
.
create
(
targetLat
,
targetLon
);
// initialize reader
NshmpNetcdfReader
nshmpNCDR
=
null
;
try
{
System
.
err
.
println
(
"attempting to open file "
);
nshmpNCDR
=
new
NshmpNetcdfReader
(
filename
);
}
catch
(
IOException
e
)
{
System
.
err
.
println
(
"Failed to initialize NshmpNetcdfReader"
);
e
.
printStackTrace
();
}
// test Iml map - are Imls consistent for a given Imt across SiteClass?
if
(
checkConsistentImls
(
nshmpNCDR
.
nshmpCoords
.
imlMap
,
nshmpNCDR
.
nshmpCoords
.
siteClassEnums
,
nshmpNCDR
.
nshmpCoords
.
imts
))
{
System
.
err
.
println
(
"Iml sets are consistent for each Imt across all site classes\n"
);
}
BoundingHazards
boundingHazards
=
new
BoundingHazards
(
nshmpNCDR
,
targetSite
);
for
(
int
iSc
=
0
;
iSc
<
nshmpNCDR
.
nshmpCoords
.
nVs
;
iSc
++)
{
for
(
int
iImt
=
0
;
iImt
<
nshmpNCDR
.
nshmpCoords
.
nImt
;
iImt
++)
{
System
.
err
.
println
(
"\n"
);
boundingHazards
.
dumpBoundingPlusTarget
(
mapVsToEnum2018
(
nshmpNCDR
.
nshmpCoords
.
vs30s
[
iSc
]),
nshmpNCDR
.
nshmpCoords
.
imts
.
get
(
iImt
));
}
}
// System.err.println("\n");
// boundingHazards.dumpBoundingPlusTarget(mapVsToEnum2018(150), Imt.PGA);
System
.
err
.
println
(
"\n** done **"
);
}
/*
* Return hazard curves for four closest grid points as a List of:
* Map<SiteClass, Map<Imt, XySequence(iml,hazard)>>
...
...
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