修飾子とタイプ | クラスと説明 |
---|---|
static class |
SCARDEC.SCARDEC_ID
ID for information
|
修飾子とタイプ | フィールドと説明 |
---|---|
static java.time.format.DateTimeFormatter |
FORMAT |
修飾子とタイプ | メソッドと説明 |
---|---|
SourceTimeFunction |
getAverageSTF(int np,
double tlen)
Interpolate to the samplingHz 20. and creates
SourceTimeFunction |
SourceTimeFunction |
getOptimalSTF(int np,
double tlen)
Interpolate to the samplingHz 20. and creates
SourceTimeFunction |
java.time.LocalDateTime |
getOriginTime() |
java.lang.String |
getRegion() |
static SCARDEC |
getSCARDEC(SCARDEC.SCARDEC_ID id) |
static void |
main(java.lang.String[] args) |
static SCARDEC.SCARDEC_ID |
pick(java.util.function.Predicate<SCARDEC.SCARDEC_ID> predicate)
Choose one ID from candidates satisfying the predicate.
|
void |
printInfo()
Prints out the origin time, epicentral location, M0, Mw, strikes, dips
and rakes.
|
static void |
printList()
Prints out all the events in the catalog.
|
void |
printMomentRate()
Prints out moment rate function in the format "time[s] moment
rate[N·m/s]"
|
static SCARDEC |
readAscii(java.nio.file.Path averagePath,
java.nio.file.Path optimalPath) |
static SCARDEC |
readBinary(java.nio.file.Path averagePath,
java.nio.file.Path optimalPath,
java.nio.file.OpenOption... options) |
static java.util.Set<SCARDEC.SCARDEC_ID> |
search(java.util.function.Predicate<SCARDEC.SCARDEC_ID> predicate) |
void |
write(java.nio.file.Path folder,
java.nio.file.OpenOption... options)
Outputs the SCARDEC information in the binary format.
|
public static void printList()
public static SCARDEC getSCARDEC(SCARDEC.SCARDEC_ID id)
public static java.util.Set<SCARDEC.SCARDEC_ID> search(java.util.function.Predicate<SCARDEC.SCARDEC_ID> predicate)
predicate
- Filter for IDspublic static SCARDEC.SCARDEC_ID pick(java.util.function.Predicate<SCARDEC.SCARDEC_ID> predicate)
predicate
- filter for IDspublic static void main(java.lang.String[] args)
args
- -l for all the list. If ID(yyyyMMdd_HHmmss)s put, it shows
their information.public static SCARDEC readAscii(java.nio.file.Path averagePath, java.nio.file.Path optimalPath) throws java.io.IOException
averagePath
- a PATH for a SCARDEC file of the average STF (moy)optimalPath
- a PATH for a SCARDEC file of the optimal STF (opt)java.io.IOException
- if anypublic static SCARDEC readBinary(java.nio.file.Path averagePath, java.nio.file.Path optimalPath, java.nio.file.OpenOption... options) throws java.io.IOException
java.io.IOException
public java.time.LocalDateTime getOriginTime()
public java.lang.String getRegion()
public SourceTimeFunction getOptimalSTF(int np, double tlen)
SourceTimeFunction
np
- steps of frequency [should be same as synthetics].tlen
- [s] length of waveform [should be same as synthetics]SourceTimeFunction
for this.public SourceTimeFunction getAverageSTF(int np, double tlen)
SourceTimeFunction
np
- steps of frequency [should be same as synthetics].tlen
- [s] length of waveform [should be same as synthetics]SourceTimeFunction
for this.public void write(java.nio.file.Path folder, java.nio.file.OpenOption... options) throws java.io.IOException
folder
- Path of the folder where SCARDEC files are written.options
- if anyjava.io.IOException
- if anypublic void printInfo()
public void printMomentRate()