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
Show more breadcrumbs
ghsc
National Seismic Hazard Model Project
nshmp-haz
Commits
741db4e1
Commit
741db4e1
authored
1 year ago
by
Altekruse, Jason Morgan
Browse files
Options
Downloads
Patches
Plain Diff
add note about unicode error and work around for windows users
parent
2990a5e4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!714
Production Release | nshmp-haz
,
!711
add note about unicode error and work around for windows users
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/pages/Building-&-Running.md
+4
-0
4 additions, 0 deletions
docs/pages/Building-&-Running.md
etc/examples/7-disaggregation/README.md
+6
-0
6 additions, 0 deletions
etc/examples/7-disaggregation/README.md
with
10 additions
and
0 deletions
docs/pages/Building-&-Running.md
+
4
−
0
View file @
741db4e1
...
...
@@ -90,6 +90,10 @@ Disaggregations build on and output `HazardCalc` results along with other disagg
files. Disaggregations also have some independent
[
configuration
](
./Calculation-Configuration.md#calculation-configuration-parameters
)
options.
Windows users may run into errors caused by unicode characters in the disaggregation configuration
options. As a work around, add
`-Dfile.encoding="UTF-8"`
to the java call (see
[
example 7
](
../../etc/examples/7-disaggregation/README.md
)
for more details).
## Customizing Code
Whereas
*nshmp-haz*
contains code to run command line applications and web services, model
...
...
This diff is collapsed.
Click to expand it.
etc/examples/7-disaggregation/README.md
+
6
−
0
View file @
741db4e1
...
...
@@ -11,6 +11,12 @@ to create a second system alias:
alias disagg='java -Xms4g -Xmx8g -cp /path/to/nshmp-haz/build/libs/nshmp-haz.jar gov.usgs.earthquake.nshmp.DisaggCalc'
```
Note for Windows users: running
`nshmp-haz`
in command prompt, Power Shell, or GitBash may
result in errors caused by the unicode characters in the disaggregation configuration parameters.
For example:
`java.lang.IllegalArgumentException: Invalid ? [0.0]`
. To avoid this, try adding
'
`-Dfile.encoding="UTF-8"`
' before
`-cp`
in the disagg alias shown above. This error does not
seem to occur if
`nshmp-haz`
is built and run in the Windows Subsystem for Linux (WSL).
The command line arguments for
`DisaggCalc`
are the same as those for
`HazardCalc`
. The target
return period for a disaggregation is specified in the config
[
`disagg.returnPeriod`
](
../../../docs/pages/Calculation-Configuration.md#calculation-configuration-parameters
)
...
...
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