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
a1e0a8d6
Commit
a1e0a8d6
authored
10 years ago
by
Powers, Peter M.
Browse files
Options
Downloads
Patches
Plain Diff
program dev
parent
4c650cfe
No related branches found
No related tags found
1 merge request
!13
Large project update
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/org/opensha/calc/HazardResult.java
+1
-1
1 addition, 1 deletion
src/org/opensha/calc/HazardResult.java
src/org/opensha/programs/HazardCurve.java
+31
-1
31 additions, 1 deletion
src/org/opensha/programs/HazardCurve.java
with
32 additions
and
2 deletions
src/org/opensha/calc/HazardResult.java
+
1
−
1
View file @
a1e0a8d6
...
...
@@ -17,7 +17,7 @@ import com.google.common.collect.SetMultimap;
*
* @author Peter Powers
*/
class
HazardResult
{
public
class
HazardResult
{
// TODO final
// TODO each HazCurveSet needs reference to original SourceSet
...
...
This diff is collapsed.
Click to expand it.
src/org/opensha/programs/HazardCurve.java
+
31
−
1
View file @
a1e0a8d6
package
org.opensha.programs
;
import
static
com
.
google
.
common
.
base
.
Preconditions
.
checkArgument
;
import
static
com
.
google
.
common
.
base
.
StandardSystemProperty
.
LINE_SEPARATOR
;
import
org.opensha.calc.HazardResult
;
import
org.opensha.calc.Site
;
import
org.opensha.data.ArrayXY_Sequence
;
import
org.opensha.eq.forecast.Forecast
;
import
org.opensha.geo.Location
;
import
org.opensha.gmm.Imt
;
/**
* Entry point for computing a hazard curve
from a
Forecast
* Entry point for computing a hazard curve
at a {@link Site} from a {@link
Forecast
}.
*
* @author Peter Powers
*/
public
class
HazardCurve
{
// hazCurve: year/model/lon/lat/
public
static
Result
calc
(
Forecast
forecast
,
Imt
imt
,
Site
site
)
{
return
null
;
}
public
static
class
Result
{
final
ArrayXY_Sequence
curve
;
Result
(
ArrayXY_Sequence
curve
)
{
this
.
curve
=
curve
;
}
}
/**
* @param args
*/
public
static
void
main
(
String
[]
args
)
{
checkArgument
(
args
.
length
==
4
,
USAGE
);
// TODO do nothing
}
private
static
final
String
USAGE
=
"HazardCurve Usage:"
+
LINE_SEPARATOR
.
value
()
+
" java -cp nshmp-haz.jar HazardCurve /path/to/forecast.zip/or/directory PGA -117.5 34.5"
;
}
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