public class RaypathCatalog
extends java.lang.Object
implements java.io.Serializable
If a new catalog is computed which does not exist in Kibrary share, it automatically is stored.
TODO sorting by dDelta/dp
修飾子とタイプ | フィールドと説明 |
---|---|
static RaypathCatalog |
ISO_PREM
Catalog for the isotropic PREM.
|
static RaypathCatalog |
PREM
Catalog for PREM.
|
修飾子とタイプ | メソッドと説明 |
---|---|
static RaypathCatalog |
computeCatalogue(VelocityStructure structure,
ComputationalMesh mesh,
double dDelta)
We compute epicentral distances Δ(P)i (P or
PcP) and Δ(S)i (S or ScS) for ray parameters
pi (pi < pi+1) for a catalogue.
|
Raypath |
getPdiff() |
Raypath[] |
getRaypaths() |
Raypath |
getSHdiff() |
VelocityStructure |
getStructure() |
Raypath |
getSVdiff() |
static void |
main(java.lang.String[] args)
Creates a catalog for a model file (model file, or prem, iprem, ak135).
|
static RaypathCatalog |
read(java.nio.file.Path path,
java.nio.file.OpenOption... options) |
Raypath[] |
searchPath(Phase targetPhase,
double eventR,
double targetDelta,
boolean relativeAngle) |
double[] |
searchTime(Phase targetPhase,
double eventR,
double targetDelta,
boolean relativeAngle) |
void |
write(java.nio.file.Path path,
java.nio.file.OpenOption... options) |
public static final RaypathCatalog PREM
public static final RaypathCatalog ISO_PREM
public static void main(java.lang.String[] args) throws java.io.IOException
args
- [model file (prem, iprem, ak135 or a polynomial file only now)] [δΔ (deg)] [inner-core]
[outer-core] [mantle] intervals [integral threshold (0, 1)]java.io.IOException
- if anypublic static RaypathCatalog computeCatalogue(VelocityStructure structure, ComputationalMesh mesh, double dDelta)
Note that if a catalog for the input parameter already exists in KibraryHOME/share, the stored catalog returns.
structure
- for computation of raypathsmesh
- for computation of raypaths.dDelta
- δΔ [rad] for creation of a catalog.public static RaypathCatalog read(java.nio.file.Path path, java.nio.file.OpenOption... options) throws java.io.IOException, java.lang.ClassNotFoundException
path
- the path for the catalogue file.options
- open optionjava.io.IOException
- if anyjava.lang.ClassNotFoundException
- if anypublic VelocityStructure getStructure()
public Raypath[] getRaypaths()
public Raypath getPdiff()
public Raypath getSVdiff()
public Raypath getSHdiff()
public void write(java.nio.file.Path path, java.nio.file.OpenOption... options) throws java.io.IOException
path
- the path to the write fileoptions
- if anyjava.io.IOException
- If an I/O error happens. it throws error.public Raypath[] searchPath(Phase targetPhase, double eventR, double targetDelta, boolean relativeAngle)
targetPhase
- target phaseeventR
- [km] event radiustargetDelta
- [rad] target ΔrelativeAngle
- if the input targetDelta is a relative angle.public double[] searchTime(Phase targetPhase, double eventR, double targetDelta, boolean relativeAngle)
targetPhase
- target phaseeventR
- [km] event radiustargetDelta
- [rad] target ΔrelativeAngle
- if the targetDelta is a relative value.