org.opensha.sha.calc.hazus.parallel
Class HazusDataSetAssmbler

java.lang.Object
  extended by org.opensha.sha.calc.hazus.parallel.HazusDataSetAssmbler

public class HazusDataSetAssmbler
extends Object


Field Summary
static DecimalFormat df
           
static int[] hazus_return_periods
           
static String METADATA_RP_REGEX_REPLACE_STR
           
static String METADATA_RP_REPLACE_STR
           
 
Constructor Summary
HazusDataSetAssmbler(String hazardMapDir)
           
HazusDataSetAssmbler(String pgaDir, String pgvDir, String sa03Dir, String sa10Dir)
           
 
Method Summary
 HashMap<Location,double[]> assemble(double returnPeriod, int years)
           
static double getProbValue(double returnPeriod, int years)
           
static double getValFromCurve(ArbitrarilyDiscretizedFunc curve, double returnPeriod, int years)
          prob = 1???(e^???(years/returnPeriod))
 void loadMetadataFile(String fileName)
           
static void main(String[] args)
           
 void writeFile(String fileName, HashMap<Location,double[]> results, double returnPeriod)
           
static void writeSitesFile(String fileName, Collection<Location> locs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

HazusDataSetAssmbler

public HazusDataSetAssmbler(String hazardMapDir)
                     throws IOException
Throws:
IOException

HazusDataSetAssmbler

public HazusDataSetAssmbler(String pgaDir,
                            String pgvDir,
                            String sa03Dir,
                            String sa10Dir)
                     throws IOException
Throws:
IOException
Method Detail

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