Skip to content
Snippets Groups Projects
Commit a1e0a8d6 authored by Powers, Peter M.'s avatar Powers, Peter M.
Browse files

program dev

parent 4c650cfe
No related branches found
No related tags found
1 merge request!13Large project update
......@@ -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
......
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";
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment