org.opensha.sha.calc.hazus.parallel
Class HazusDataSetAssmbler
java.lang.Object
org.opensha.sha.calc.hazus.parallel.HazusDataSetAssmbler
public class HazusDataSetAssmbler
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
METADATA_RP_REPLACE_STR
public static final String METADATA_RP_REPLACE_STR
- See Also:
- Constant Field Values
METADATA_RP_REGEX_REPLACE_STR
public static final String METADATA_RP_REGEX_REPLACE_STR
- See Also:
- Constant Field Values
hazus_return_periods
public static int[] hazus_return_periods
df
public static DecimalFormat df
HazusDataSetAssmbler
public HazusDataSetAssmbler(String hazardMapDir)
throws IOException
- Throws:
IOException
HazusDataSetAssmbler
public HazusDataSetAssmbler(String pgaDir,
String pgvDir,
String sa03Dir,
String sa10Dir)
throws IOException
- Throws:
IOException
loadMetadataFile
public void loadMetadataFile(String fileName)
throws IOException
- Throws:
IOException
assemble
public HashMap<Location,double[]> assemble(double returnPeriod,
int years)
writeFile
public void writeFile(String fileName,
HashMap<Location,double[]> results,
double returnPeriod)
throws IOException
- Throws:
IOException
writeSitesFile
public static void writeSitesFile(String fileName,
Collection<Location> locs)
throws IOException
- Throws:
IOException
getProbValue
public static double getProbValue(double returnPeriod,
int years)
getValFromCurve
public static double getValFromCurve(ArbitrarilyDiscretizedFunc curve,
double returnPeriod,
int years)
- prob = 1???(e^???(years/returnPeriod))
- Parameters:
curve - returnPeriod - years -
- Returns:
main
public static void main(String[] args)
throws IOException
- Throws:
IOException