edu.sc.seis.fissuresUtil.rt130
Class NCReader
java.lang.Object
edu.sc.seis.fissuresUtil.rt130.NCReader
public class NCReader
- extends java.lang.Object
Field Summary |
static java.lang.String |
INSTRUMENT_RE
Matches the entire instrumentation portion of a station line. |
static java.lang.String |
LOC_RE
Matches a LOC specifier on a station line. |
static java.lang.String |
NC_FILE_LOC
|
static java.lang.String |
ORIENTATION_RE
Matches the orientation part of a station line in an nc file. |
Constructor Summary |
NCReader(edu.iris.Fissures.IfNetwork.NetworkAttr net,
java.util.Map initialLocations)
All items created by this DeluxeNCFile will be part of Network net. |
NCReader(java.util.Properties props)
|
Method Summary |
void |
dumpSites()
|
int |
getNumUnhandledLines()
|
java.util.List |
getSites()
|
java.lang.String |
getUnhandledLine(int index)
|
java.lang.String |
getUnitId(edu.iris.Fissures.model.MicroSecondDate startTime,
java.lang.String stationCode)
|
void |
load(java.io.BufferedReader source)
|
void |
load(java.io.InputStream input)
|
void |
load(java.io.Reader source)
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ORIENTATION_RE
public static final java.lang.String ORIENTATION_RE
- Matches the orientation part of a station line in an nc file. Just
contains 1 group, the entire string
- See Also:
- Constant Field Values
INSTRUMENT_RE
public static final java.lang.String INSTRUMENT_RE
- Matches the entire instrumentation portion of a station line. Contains
two groups. The Fist is the entire string and the second is the
orientation portion.
- See Also:
- Constant Field Values
LOC_RE
public static final java.lang.String LOC_RE
- Matches a LOC specifier on a station line. The entire RE is optional so
this will match nothing as well. There are four groups, the first is the
entire string so check it for null to see if this matched anything Groups
2-4 are the latitude, longitude and elevation in meters respectively.
- See Also:
- Constant Field Values
NC_FILE_LOC
public static final java.lang.String NC_FILE_LOC
- See Also:
- Constant Field Values
NCReader
public NCReader(java.util.Properties props)
throws java.io.IOException
- Throws:
java.io.IOException
NCReader
public NCReader(edu.iris.Fissures.IfNetwork.NetworkAttr net,
java.util.Map initialLocations)
- All items created by this DeluxeNCFile will be part of Network net.
initialLocations should be a mapping between string station codes and
Location objects like the map produced by XYReader
load
public void load(java.io.InputStream input)
throws java.io.IOException
- Throws:
java.io.IOException
load
public void load(java.io.Reader source)
throws java.io.IOException
- Throws:
java.io.IOException
load
public void load(java.io.BufferedReader source)
throws java.io.IOException
- Throws:
java.io.IOException
getSites
public java.util.List getSites()
dumpSites
public void dumpSites()
getUnitId
public java.lang.String getUnitId(edu.iris.Fissures.model.MicroSecondDate startTime,
java.lang.String stationCode)
getNumUnhandledLines
public int getNumUnhandledLines()
getUnhandledLine
public java.lang.String getUnhandledLine(int index)
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Throws:
java.io.IOException