torchdeform 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- torchdeform/__init__.py +88 -0
- torchdeform/atmosphere/__init__.py +19 -0
- torchdeform/atmosphere/atm.py +821 -0
- torchdeform/core.py +298 -0
- torchdeform/geometry/__init__.py +17 -0
- torchdeform/geometry/coordinates.py +359 -0
- torchdeform/observation/__init__.py +56 -0
- torchdeform/observation/insar.py +285 -0
- torchdeform/observation/los.py +384 -0
- torchdeform/simulation/__init__.py +85 -0
- torchdeform/simulation/datasets.py +110 -0
- torchdeform/simulation/dem.py +100 -0
- torchdeform/simulation/generators.py +492 -0
- torchdeform/simulation/priors.py +777 -0
- torchdeform/sources/__init__.py +14 -0
- torchdeform/sources/base.py +88 -0
- torchdeform/sources/mogi.py +104 -0
- torchdeform/sources/okada.py +2001 -0
- torchdeform/sources/pcdm.py +253 -0
- torchdeform/sources/penny.py +460 -0
- torchdeform-0.1.0.dist-info/METADATA +18 -0
- torchdeform-0.1.0.dist-info/RECORD +26 -0
- torchdeform-0.1.0.dist-info/WHEEL +5 -0
- torchdeform-0.1.0.dist-info/licenses/LICENSE +201 -0
- torchdeform-0.1.0.dist-info/licenses/NOTICE +39 -0
- torchdeform-0.1.0.dist-info/top_level.txt +1 -0
torchdeform/__init__.py
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"""
|
|
2
|
+
torchdeform -- differentiable synthetic deformation and atmosphere in PyTorch.
|
|
3
|
+
|
|
4
|
+
A toolkit for generating synthetic geophysical InSAR data end-to-end and
|
|
5
|
+
differentiably, so it can be used both to build training datasets and as layers
|
|
6
|
+
inside a model:
|
|
7
|
+
|
|
8
|
+
* ``sources`` -- analytic deformation source models (Mogi, Okada finite fault,
|
|
9
|
+
penny-shaped crack) producing ground displacement fields.
|
|
10
|
+
* ``observation`` -- line-of-sight geometry and the displacement <-> phase
|
|
11
|
+
observation operators (Sentinel-1 conventions by default).
|
|
12
|
+
* ``atmosphere`` -- turbulent and topography-correlated atmospheric phase
|
|
13
|
+
screens.
|
|
14
|
+
* ``simulation`` -- synthetic DEMs and parameter priors for randomised scenes.
|
|
15
|
+
* ``geometry`` / ``core`` -- WGS84 coordinate transforms and the shared
|
|
16
|
+
tensor-backed data structures.
|
|
17
|
+
|
|
18
|
+
The most commonly used classes and functions are re-exported here at the package
|
|
19
|
+
top level; see the submodules for the full API.
|
|
20
|
+
"""
|
|
21
|
+
from .sources import (
|
|
22
|
+
MogiSource,
|
|
23
|
+
OkadaSource,
|
|
24
|
+
OkadaSourceSimple,
|
|
25
|
+
okada_params_from_fault,
|
|
26
|
+
PennySource,
|
|
27
|
+
PCDMSource,
|
|
28
|
+
)
|
|
29
|
+
from .observation import (
|
|
30
|
+
# S1_INCIDENCE_RANGE_DEG,
|
|
31
|
+
# S1_HEADING_ASCENDING_DEG,
|
|
32
|
+
# S1_HEADING_DESCENDING_DEG,
|
|
33
|
+
# S1_LOOK_SIDE,
|
|
34
|
+
# sample_s1_geometry,
|
|
35
|
+
los_vector,
|
|
36
|
+
los_vector_per_pixel,
|
|
37
|
+
los_vector_from_center,
|
|
38
|
+
los_vector_from_center_curved,
|
|
39
|
+
los_vector_from_satellite,
|
|
40
|
+
)
|
|
41
|
+
from .core import (
|
|
42
|
+
Displacement,
|
|
43
|
+
LOSVector,
|
|
44
|
+
ECEF,
|
|
45
|
+
Geodetic,
|
|
46
|
+
)
|
|
47
|
+
from .geometry import (
|
|
48
|
+
geodetic_to_ecef,
|
|
49
|
+
ecef_to_geodetic,
|
|
50
|
+
ecef_to_local_enu,
|
|
51
|
+
local_enu_to_ecef,
|
|
52
|
+
geodetic_to_local_enu,
|
|
53
|
+
local_enu_to_geodetic,
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
__all__ = [
|
|
57
|
+
"MogiSource",
|
|
58
|
+
"OkadaSource",
|
|
59
|
+
"OkadaSourceSimple",
|
|
60
|
+
"okada_params_from_fault",
|
|
61
|
+
"PennySource",
|
|
62
|
+
"PCDMSource",
|
|
63
|
+
|
|
64
|
+
# "S1_INCIDENCE_RANGE_DEG",
|
|
65
|
+
# "S1_HEADING_ASCENDING_DEG",
|
|
66
|
+
# "S1_HEADING_DESCENDING_DEG",
|
|
67
|
+
# "S1_LOOK_SIDE",
|
|
68
|
+
# "sample_s1_geometry",
|
|
69
|
+
"los_vector",
|
|
70
|
+
"los_vector_per_pixel",
|
|
71
|
+
"los_vector_from_center",
|
|
72
|
+
"los_vector_from_center_curved",
|
|
73
|
+
"los_vector_from_satellite",
|
|
74
|
+
|
|
75
|
+
"Displacement",
|
|
76
|
+
"LOSVector",
|
|
77
|
+
"ECEF",
|
|
78
|
+
"Geodetic",
|
|
79
|
+
|
|
80
|
+
"geodetic_to_ecef",
|
|
81
|
+
"ecef_to_geodetic",
|
|
82
|
+
"ecef_to_local_enu",
|
|
83
|
+
"local_enu_to_ecef",
|
|
84
|
+
"geodetic_to_local_enu",
|
|
85
|
+
"local_enu_to_geodetic",
|
|
86
|
+
]
|
|
87
|
+
|
|
88
|
+
__version__ = "0.1.0"
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from .atm import (TurbulentAPS, turbulent_aps, spectral_filter,
|
|
2
|
+
correlated_noise_cholesky, stratified_aps, StratifiedAPS,
|
|
3
|
+
sample_stratified_coeff, orbital_ramp,
|
|
4
|
+
atmospheric_phase_screen,
|
|
5
|
+
covariance_vs_distance, fit_exponential_covariance)
|
|
6
|
+
|
|
7
|
+
__all__ =[
|
|
8
|
+
"TurbulentAPS",
|
|
9
|
+
"turbulent_aps",
|
|
10
|
+
"spectral_filter",
|
|
11
|
+
"correlated_noise_cholesky",
|
|
12
|
+
"stratified_aps",
|
|
13
|
+
"StratifiedAPS",
|
|
14
|
+
"sample_stratified_coeff",
|
|
15
|
+
"orbital_ramp",
|
|
16
|
+
"atmospheric_phase_screen",
|
|
17
|
+
"covariance_vs_distance",
|
|
18
|
+
"fit_exponential_covariance",
|
|
19
|
+
]
|