depsi.network
depsi.network.form_network(stm, key_phase, key_h2ph, key_Btemporal, key_complex='complex', key_xcrds='lon', key_ycrds='lat', network_method='redundant', max_length=None, min_links=16, num_partitions=8, dphase_method='subtract')
Generate an STM of arcs from an STM of points.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stm
|
Dataset
|
Space-Time Matrix of scatterers. |
required |
key_phase
|
str
|
Key of the phase values in the STM. This phase will be used to compute the differential arc phase. |
required |
key_h2ph
|
str
|
Key of the h2ph values in the STM. The arc h2ph will be computed as the average between source and target. |
required |
key_Btemporal
|
str
|
Key of the temporal baseline values in the STM. |
required |
key_complex
|
str
|
Key of the complex values, by default "complex" |
'complex'
|
key_xcrds
|
str
|
Key of the x coordinates for calulating arc length, by default "lon" |
'lon'
|
key_ycrds
|
str
|
Key of the y coordinates for calulating arc length, by default "lat" |
'lat'
|
network_method
|
Literal['redundant', 'delaunay']
|
network formation method, by default "redundant" |
'redundant'
|
max_length
|
float
|
maximum arc length, by default None |
None
|
min_links
|
int
|
minimum links per point, by default 16 only effective when network_method is "redundant" |
16
|
num_partitions
|
int
|
number of partitions of searching when forming redundant network, by default 8 only effective when network_method is "redundant" |
8
|
dphase_method
|
Literal['conjmult', 'subtract']
|
method of computing phase difference, by default "subtract" "subtract" method subtracts the source phase from the target phase (without re-wrapping); "conjmult" method computes the phase difference by conjugate multiplication: d_phase = np.angle(complex_target * complex_source.conj()) |
'subtract'
|
Returns:
| Type | Description |
|---|---|
Dataset
|
Space-Time Matrix of arcs, containing the following variables: - d_phase: the arc phase, which is the difference between source and target points - Btemp: the temporal baseline, which is the same for all arcs - h2ph: the arc h2ph, which is the average between source and target points |
Source code in depsi/network.py
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 | |
depsi.network.spatial_integration(stm_pnts, stm_arcs, key_sdphase='sd_phase', key_arc_quality='temp_coh', threshold_arc_quality=0.5, idx_refpnt=None, min_arc_connections=3, parallel=False, sparse_mode=False, ensure_network_while_mht=False, arc_estimation_method='periodogram')
Spatially integrate the ambiguities of network arcs to points.
This function estimates the integer ambiguities of the points from arc ambiguities. It assumes a network has been formed from the points by calling "network.form_network", and arc ambiguities have been estimated by calling relevant functions in the "depsi.arc_estimation" module.
The function returns an updated STM of arcs which contains the adjusted arc ambiguities after spatial integration, as well as an updated STM of points which contains the estimated point ambiguities.
The following steps are performed:
1. Validate the network arcs (stm_arcs) against the point STM (stm_pnts)
2. Select arcs based on quality threshold and ensure minimum connections for all points
3. Select a reference point which assumes zero phase (hence zero ambiguity)
4. Adjust the network by removing arcs/points which potentially cause errors using Multi-Hypothesis Testing (MHT)
5. Adjust the ambiguities per time epoch to make sure spatial solutions give zero residuals.
6. Calculate point ambiguities and unwrapped phases w.r.t. the reference point.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stm_pnts
|
Dataset
|
Space-Time Matrix of points. |
required |
stm_arcs
|
Dataset
|
Space-Time Matrix of arcs. The arcs should be formed from stm_pnts, using the "network.form_network" function. This function generates coordinates "source" and "target" in stm_arcs which refer to the indices in stm_pnts. An "uid" data variable is also generated by "form_network" for easy indexing. An arc estimation should have been applied on stm_arcs before calling "spatial_integration". One can use relevant functions in "depsi.arc_estimation" module for this purpose. Arc estimation adds the variable "ambiguities" to stm_arcs, which are the estimated arc ambiguities. It also adds quality variables such as "temp_coh" (ensemble coherence), which are used to select arcs for spatial integration. |
required |
key_sdphase
|
str
|
Key of the single difference phase variable in stm_pnts, by default "sd_phase" This phase is used to compute unwrapped phases after ambiguity estimation. |
'sd_phase'
|
key_arc_quality
|
str
|
Key of the arc quality variable in stm_arcs, by default "temp_coh" |
'temp_coh'
|
threshold_arc_quality
|
float
|
Threshold for arc quality, by default 0.5 |
0.5
|
idx_refpnt
|
int | None
|
Index of the reference point in stm_pnts. If None, the source point of the arc with highest quality is selected as the reference point. |
None
|
min_arc_connections
|
int
|
Minimum number of connections for arcs, by default 3 |
3
|
parallel
|
bool
|
Whether to use parallel processing, by default False |
False
|
sparse_mode
|
bool
|
Whether to use sparse matrix format for large networks, by default False |
False
|
ensure_network_while_mht
|
bool
|
Whether to ensure minimum connections in MHT network adjustment, by default False |
False
|
arc_estimation_method
|
Literal['periodogram']
|
Method used for arc estimation, by default "periodogram". This constrains the method used for VCM computation. |
'periodogram'
|
Returns:
| Type | Description |
|---|---|
(Dataset, Dataset)
|
Updated Space-Time Matrix of arcs and updated Space-Time Matrix of points. For arcs, the "ambiguities" variable contains the adjusted arc ambiguities after spatial integration. For points, the "ambiguities" variable contains the estimated point ambiguities, and "unwrapped_phase" contains the unwrapped phase w.r.t. the reference point. |
References
Van Leijen, F.J.. "Persistent scatterer interferometry based on geodetic estimation theory." (2014).
Source code in depsi/network.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 | |