Skip to content
Snippets Groups Projects
Commit 93206d68 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

remove main method

parent 853c45be
No related branches found
No related tags found
No related merge requests found
Pipeline #9569 failed
......@@ -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
......
......@@ -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)>>
......
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