org.opensha.sha.earthquake.observedEarthquake
Class CubeToObsEqkRupture

java.lang.Object
  extended by org.opensha.sha.earthquake.observedEarthquake.CubeToObsEqkRupture

public class CubeToObsEqkRupture
extends Object

Title: CubeToObsEqkRupture

Description: This class will create the ObsEqkRupture object from the data string that it receives from the network catalog.

Note : Mag read from the QDM cube format file is not always assumed to be moment mag.

Version:
1.0
Author:
Nitin Gupta , Vipin Gupta and Ned Field

Constructor Summary
CubeToObsEqkRupture(String eventFile)
           
 
Method Summary
 ObsEqkRupList getAllObsEqkRupEvents()
          Returns the list of ObsEqkRuptures as read from the QDM CUBE format file.
 ObsEqkRupture getObsEqkRupture(int index)
          Returns the ObsEqkRupture from the list of observed EqkRup list at a given index.
static void main(String[] args)
          Method to test and see if we are reading the network catalog file correctly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CubeToObsEqkRupture

public CubeToObsEqkRupture(String eventFile)
                    throws FileNotFoundException,
                           IOException
Throws:
FileNotFoundException
IOException
Method Detail

getAllObsEqkRupEvents

public ObsEqkRupList getAllObsEqkRupEvents()
Returns the list of ObsEqkRuptures as read from the QDM CUBE format file.

Returns:
ObsEqkRupList

getObsEqkRupture

public ObsEqkRupture getObsEqkRupture(int index)
Returns the ObsEqkRupture from the list of observed EqkRup list at a given index.

Parameters:
index - int index in the ObsEqkRupList at which ObsEqkEvent is to be retrieved.
Returns:
ObsEqkRupture

main

public static void main(String[] args)
Method to test and see if we are reading the network catalog file correctly.

Parameters:
args - String[]