Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-haz
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Admin message
Maintenance scheduled for Thursday, April 10, from 5 PM to 6 PM ET.
Show more breadcrumbs
ghsc
National Seismic Hazard Model Project
nshmp-haz
Commits
cbcf6b36
Commit
cbcf6b36
authored
5 years ago
by
Powers, Peter M.
Browse files
Options
Downloads
Patches
Plain Diff
nshm poly updates
parent
88a649a6
No related branches found
No related tags found
1 merge request
!446
Site file generator updates
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/gov/usgs/earthquake/nshmp/site/NshmpPolygon.java
+4
-4
4 additions, 4 deletions
src/gov/usgs/earthquake/nshmp/site/NshmpPolygon.java
src/gov/usgs/earthquake/nshmp/site/NshmpSiteFiles.java
+14
-2
14 additions, 2 deletions
src/gov/usgs/earthquake/nshmp/site/NshmpSiteFiles.java
with
18 additions
and
6 deletions
src/gov/usgs/earthquake/nshmp/site/NshmpPolygon.java
+
4
−
4
View file @
cbcf6b36
...
...
@@ -12,8 +12,8 @@ public enum NshmpPolygon {
CEUS_CLIP
(
Data
.
CEUS_CLIP
,
"Central & Eastern US Map Extents"
),
WUS_CLIP
(
Data
.
WUS_CLIP
,
"Western US Map Extents"
),
A
K
_CLIP
(
Data
.
A
K
_CLIP
,
"Alaska Map Extents"
),
HI_CLIP
(
Data
.
HI_CLIP
,
"Hawaii Map Extents"
),
A
LASKA
_CLIP
(
Data
.
A
LASKA
_CLIP
,
"Alaska Map Extents"
),
H
AWAI
I_CLIP
(
Data
.
H
AWAI
I_CLIP
,
"Hawaii Map Extents"
),
ALASKA
(
Data
.
ALASKA
,
"Alaska"
),
HAWAII
(
Data
.
HAWAII
,
"Hawaii"
),
...
...
@@ -72,7 +72,7 @@ public enum NshmpPolygon {
{
-
100.0
,
50.0
}
};
private
static
final
double
[][]
A
K
_CLIP
=
{
private
static
final
double
[][]
A
LASKA
_CLIP
=
{
{
-
200.0
,
48.0
},
{
-
125.0
,
72.0
}
};
...
...
@@ -105,7 +105,7 @@ public enum NshmpPolygon {
{
-
137.5
,
70.6
}
};
private
static
final
double
[][]
HI_CLIP
=
{
private
static
final
double
[][]
H
AWAI
I_CLIP
=
{
{
-
161.0
,
18.0
},
{
-
154.0
,
23.0
}
};
...
...
This diff is collapsed.
Click to expand it.
src/gov/usgs/earthquake/nshmp/site/NshmpSiteFiles.java
+
14
−
2
View file @
cbcf6b36
...
...
@@ -2,8 +2,10 @@ package gov.usgs.earthquake.nshmp.site;
import
static
com
.
google
.
common
.
base
.
Strings
.
padEnd
;
import
static
com
.
google
.
common
.
base
.
Strings
.
padStart
;
import
static
gov
.
usgs
.
earthquake
.
nshmp
.
site
.
NshmpPolygon
.
A
K
_CLIP
;
import
static
gov
.
usgs
.
earthquake
.
nshmp
.
site
.
NshmpPolygon
.
A
LASKA
_CLIP
;
import
static
gov
.
usgs
.
earthquake
.
nshmp
.
site
.
NshmpPolygon
.
ALASKA
;
import
static
gov
.
usgs
.
earthquake
.
nshmp
.
site
.
NshmpPolygon
.
HAWAII_CLIP
;
import
static
gov
.
usgs
.
earthquake
.
nshmp
.
site
.
NshmpPolygon
.
HAWAII
;
import
static
gov
.
usgs
.
earthquake
.
nshmp
.
site
.
NshmpPolygon
.
CEUS_CLIP
;
import
static
gov
.
usgs
.
earthquake
.
nshmp
.
site
.
NshmpPolygon
.
CONTERMINOUS_US
;
import
static
gov
.
usgs
.
earthquake
.
nshmp
.
site
.
NshmpPolygon
.
CYBERSHAKE
;
...
...
@@ -52,6 +54,9 @@ import gov.usgs.earthquake.nshmp.NamedLocation;
* @author Peter Powers
*/
final
class
NshmpSiteFiles
{
// TODO consider removing this to nshm-model-dev
// keeping the outputs in nshmp-haz
private
static
final
Path
EXPORT_DIR
=
Paths
.
get
(
"etc"
,
"nshm"
);
private
static
final
String
EXTENTS_COLOR
=
"#AA0078"
;
...
...
@@ -92,7 +97,14 @@ final class NshmpSiteFiles {
ALASKA
.
toString
(),
ALASKA
.
coordinates
(),
0.1
,
AK_CLIP
.
coordinates
().
bounds
().
toList
());
ALASKA_CLIP
.
coordinates
().
bounds
().
toList
());
writePolyJson
(
EXPORT_DIR
.
resolve
(
"map-hawaii.geojson"
),
HAWAII
.
toString
(),
HAWAII
.
coordinates
(),
0.1
,
HAWAII_CLIP
.
coordinates
().
bounds
().
toList
());
writePolyJson
(
EXPORT_DIR
.
resolve
(
"map-la-basin.geojson"
),
...
...
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