org.opensha.sha.calc.hazardMap
Class MakeXYZFromHazardMapDir
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WRITES_UNTIL_FLUSH
public static int WRITES_UNTIL_FLUSH
MakeXYZFromHazardMapDir
public MakeXYZFromHazardMapDir(String dirName,
boolean sort,
boolean latFirst)
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)