org.opensha.sha.calc.hazardMap
Class MakeXYZFromHazardMapDir

java.lang.Object
  extended by org.opensha.sha.calc.hazardMap.MakeXYZFromHazardMapDir

public class MakeXYZFromHazardMapDir
extends Object

This class makes a single hazard map file (GMT format) from a directory structure containing hazard curves. Curves should be binned into subdirectories, and the files should be titled: {lat}_{lon}.txt .

Author:
kevin

Field Summary
static int WRITES_UNTIL_FLUSH
           
 
Constructor Summary
MakeXYZFromHazardMapDir(String dirName, boolean sort, boolean latFirst)
           
 
Method Summary
 ArbDiscrGeoDataSet getXYZDataset(boolean isProbAt_IML, double level)
           
 ArbDiscrGeoDataSet getXYZDataset(boolean isProbAt_IML, double level, String fileName)
           
 double handleFile(InputStream is, boolean isProbAt_IML, double val)
           
 double handleFile(String fileName, boolean isProbAt_IML, double val)
           
static void main(String[] args)
           
 void writeXYZFile(boolean isProbAt_IML, double level, String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WRITES_UNTIL_FLUSH

public static int WRITES_UNTIL_FLUSH
Constructor Detail

MakeXYZFromHazardMapDir

public MakeXYZFromHazardMapDir(String dirName,
                               boolean sort,
                               boolean latFirst)
Method Detail

writeXYZFile

public void writeXYZFile(boolean isProbAt_IML,
                         double level,
                         String fileName)
                  throws IOException
Throws:
IOException

getXYZDataset

public ArbDiscrGeoDataSet getXYZDataset(boolean isProbAt_IML,
                                        double level)
                                 throws IOException
Throws:
IOException

getXYZDataset

public ArbDiscrGeoDataSet getXYZDataset(boolean isProbAt_IML,
                                        double level,
                                        String fileName)
                                 throws IOException
Throws:
IOException

handleFile

public double handleFile(String fileName,
                         boolean isProbAt_IML,
                         double val)

handleFile

public double handleFile(InputStream is,
                         boolean isProbAt_IML,
                         double val)

main

public static void main(String[] args)