PyGeoFetch 2.7.0.0__py3-none-any.whl → 2.7.0.1__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.
- pygeofetch/__init__.py +1 -1
- pygeofetch/insar/coregister.py +10 -1
- pygeofetch/insar/interferogram.py +4 -9
- pygeofetch/insar/tops.py +1 -1
- pygeofetch/meta.yaml +1 -1
- {pygeofetch-2.7.0.0.dist-info → pygeofetch-2.7.0.1.dist-info}/METADATA +2 -2
- {pygeofetch-2.7.0.0.dist-info → pygeofetch-2.7.0.1.dist-info}/RECORD +11 -17
- pygeofetch-2.7.0.1.dist-info/top_level.txt +1 -0
- pygeofetch-2.7.0.0.dist-info/top_level.txt +0 -2
- pygeofetch_tops_deramp/files/pygeofetch/insar/coregister.py +0 -1563
- pygeofetch_tops_deramp/files/pygeofetch/insar/interferogram.py +0 -3475
- pygeofetch_tops_deramp/files/pygeofetch/insar/tops.py +0 -374
- pygeofetch_tops_deramp/files/tests/insar/_fake_safe.py +0 -70
- pygeofetch_tops_deramp/files/tests/insar/_tops_sim.py +0 -84
- pygeofetch_tops_deramp/files/tests/insar/test_tops_deramp.py +0 -110
- {pygeofetch-2.7.0.0.dist-info → pygeofetch-2.7.0.1.dist-info}/WHEEL +0 -0
- {pygeofetch-2.7.0.0.dist-info → pygeofetch-2.7.0.1.dist-info}/entry_points.txt +0 -0
- {pygeofetch-2.7.0.0.dist-info → pygeofetch-2.7.0.1.dist-info}/licenses/LICENSE +0 -0
pygeofetch/__init__.py
CHANGED
pygeofetch/insar/coregister.py
CHANGED
|
@@ -1375,6 +1375,7 @@ def resample_with_offset_field(
|
|
|
1375
1375
|
sec_row_offset: float = 0.0,
|
|
1376
1376
|
sec_col_offset: float = 0.0,
|
|
1377
1377
|
phase_ramp=None,
|
|
1378
|
+
output_shape=None,
|
|
1378
1379
|
):
|
|
1379
1380
|
"""
|
|
1380
1381
|
Resample a complex array using a real, per-pixel offset field
|
|
@@ -1414,6 +1415,14 @@ def resample_with_offset_field(
|
|
|
1414
1415
|
without deramping corrupts its phase (fringes along
|
|
1415
1416
|
azimuth that jump at burst edges) and its coherence.
|
|
1416
1417
|
`data` itself is not modified.
|
|
1418
|
+
output_shape: (rows, cols) of the REFERENCE crop, i.e. of the
|
|
1419
|
+
grid to resample onto. Defaults to `data.shape`,
|
|
1420
|
+
which is only right when both crops have the same
|
|
1421
|
+
size: the output rows/cols are reference-local
|
|
1422
|
+
coordinates. With crops of different sizes the old
|
|
1423
|
+
default produced an array of the secondary's size,
|
|
1424
|
+
which the caller then zoomed to the reference's
|
|
1425
|
+
size -- stretching the secondary along azimuth.
|
|
1417
1426
|
|
|
1418
1427
|
Returns:
|
|
1419
1428
|
The resampled complex array, on the reference image's grid.
|
|
@@ -1440,7 +1449,7 @@ def resample_with_offset_field(
|
|
|
1440
1449
|
# halves the footprint on its own; chunking bounds peak memory to
|
|
1441
1450
|
# one row-block regardless of total crop size.
|
|
1442
1451
|
|
|
1443
|
-
h, w = data.shape
|
|
1452
|
+
h, w = (int(output_shape[0]), int(output_shape[1])) if output_shape is not None else data.shape
|
|
1444
1453
|
# One complex64 output filled tile by tile. The previous version built two float32 planes and then
|
|
1445
1454
|
# (out_real + 1j * out_imag).astype(complex64), which held about four extra full-size arrays at the end.
|
|
1446
1455
|
out = np.empty((h, w), dtype=np.complex64)
|
|
@@ -613,8 +613,9 @@ class InterferogramGenerator:
|
|
|
613
613
|
# non-fatal degradation).
|
|
614
614
|
self._use_real_burst_processing = use_real_burst_processing
|
|
615
615
|
self._tops_ctx = None
|
|
616
|
-
# Part of every pair fingerprint: results saved before TOPS deramping (
|
|
617
|
-
|
|
616
|
+
# Part of every pair fingerprint: results saved before TOPS deramping (0) or before resampling onto the
|
|
617
|
+
# reference grid (1) are not reused.
|
|
618
|
+
self._tops_deramp_version = 2
|
|
618
619
|
# Automatic by default (None): on when the inputs exist, explicit
|
|
619
620
|
# True/False always respected. It used to be opt-in and silent, which
|
|
620
621
|
# left a full-width range ramp in every interferogram unless the caller
|
|
@@ -1835,13 +1836,6 @@ class InterferogramGenerator:
|
|
|
1835
1836
|
ProcessingError subclasses (all ValueError) when a step that was asked for fails, unless the
|
|
1836
1837
|
generator was built with ``on_error="degrade"``.
|
|
1837
1838
|
"""
|
|
1838
|
-
# accept a plain (min_lon, min_lat, max_lon, max_lat) tuple as well as a BoundingBox
|
|
1839
|
-
if aoi_bbox is not None and not hasattr(aoi_bbox, "min_lon"):
|
|
1840
|
-
from pygeofetch.models.search_query import BoundingBox
|
|
1841
|
-
|
|
1842
|
-
aoi_bbox = BoundingBox(
|
|
1843
|
-
min_lon=aoi_bbox[0], min_lat=aoi_bbox[1], max_lon=aoi_bbox[2], max_lat=aoi_bbox[3]
|
|
1844
|
-
)
|
|
1845
1839
|
# What this result depends on, taken before anything else is assigned. Used to decide on resume
|
|
1846
1840
|
# whether a saved result was made by the same pipeline with the same inputs and settings.
|
|
1847
1841
|
_fingerprint = self._pair_fingerprint(dict(locals()))
|
|
@@ -3022,6 +3016,7 @@ class InterferogramGenerator:
|
|
|
3022
3016
|
sec_row_offset=sec_row_off,
|
|
3023
3017
|
sec_col_offset=sec_col_off,
|
|
3024
3018
|
phase_ramp=None if sec_ramp is None else sec_ramp.phase,
|
|
3019
|
+
output_shape=ref_complex.shape, # resample onto the reference grid, whatever the crop sizes
|
|
3025
3020
|
)
|
|
3026
3021
|
if resampled.shape != ref_complex.shape:
|
|
3027
3022
|
resampled = self._resample_to_reference(resampled, ref_complex.shape)
|
pygeofetch/insar/tops.py
CHANGED
|
@@ -371,4 +371,4 @@ def shift_azimuth_tops(data: np.ndarray, shift_px: float, content_phase, lines_p
|
|
|
371
371
|
block = np.fft.ifft(np.fft.fft(block, axis=0) * ramp, axis=0)
|
|
372
372
|
block *= np.exp(1j * content_phase(rows - shift_px, cols))
|
|
373
373
|
out[r0:r1, c0:c1] = block.astype(np.complex64)
|
|
374
|
-
return out
|
|
374
|
+
return out
|
pygeofetch/meta.yaml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pygeofetch
|
|
3
|
-
Version: 2.7.0.
|
|
3
|
+
Version: 2.7.0.1
|
|
4
4
|
Summary: Universal satellite data pipeline + geospatial processing platform
|
|
5
5
|
Author-email: Samuel Appiah Kubi <appiahkubis14@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -371,7 +371,7 @@ If you use PyGeoFetch in your research or operational work, please cite it using
|
|
|
371
371
|
title = {PyGeoFetch: A Unified Python Framework for Multi-Provider Satellite Data Acquisition, Pre-download Quality Control, and Geospatial Processing},
|
|
372
372
|
year = {2026},
|
|
373
373
|
publisher = {Zenodo},
|
|
374
|
-
version = {2.7.0.
|
|
374
|
+
version = {2.7.0.1.1},
|
|
375
375
|
doi = {10.5281/zenodo.22087230},
|
|
376
376
|
url = {https://doi.org/10.5281/zenodo.22087230}
|
|
377
377
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
pygeofetch/__init__.py,sha256=
|
|
2
|
-
pygeofetch/meta.yaml,sha256=
|
|
1
|
+
pygeofetch/__init__.py,sha256=SJk6tXeZ1umzI3nLrMrbJNsOQtBuEJC8a5CfXHu8Z-Q,2107
|
|
2
|
+
pygeofetch/meta.yaml,sha256=fMqWc8n1PaN7-X6RXU9beYL_Iwl5qvxQiY7B4xODj0w,1284
|
|
3
3
|
pygeofetch/cli/__init__.py,sha256=QZMIIHEgmjGFieucqq9fZ5uephxP9-jdu1s8Q4qqw8o,30
|
|
4
4
|
pygeofetch/cli/auth_commands.py,sha256=OUYbInPaERvAfNZ_NmAF3azHoJm14cGn_ZTQtxjjcs4,7871
|
|
5
5
|
pygeofetch/cli/classify_commands.py,sha256=0att8QoTKPa-z24NXLTW-iXbpkBWZTxjoZkV1eNwHeU,4739
|
|
@@ -45,7 +45,7 @@ pygeofetch/insar/annotation.py,sha256=hQf_SnvcMpKanCdIaX3yTdygxhd57sJtz_3_L83zRm
|
|
|
45
45
|
pygeofetch/insar/atmosphere.py,sha256=frOTzYxIz33L4vPxbCQ4fVSkY2c_BZqHwIUoi4grK2Y,23032
|
|
46
46
|
pygeofetch/insar/atmosphere_core.py,sha256=enrcd-wCpc9uZgKIeYa2Wp5ZRpd6IhwkPUbbyOkeXGk,20880
|
|
47
47
|
pygeofetch/insar/auto_fallback.py,sha256=zBZuFpfn4FCHmW9GZ_D5YbVEvA-yjFLCT4gizuSI_OE,14612
|
|
48
|
-
pygeofetch/insar/coregister.py,sha256=
|
|
48
|
+
pygeofetch/insar/coregister.py,sha256=lZTudKeJaLSyvpDy4fIlY7IdwCKNQEFo3zOARwwBYug,70164
|
|
49
49
|
pygeofetch/insar/deburst.py,sha256=dzdB-jMupkalvUXoNxalLD31HNkMqyyXagpE5XSXT1g,8017
|
|
50
50
|
pygeofetch/insar/errors.py,sha256=KTgmnGS05kgjZJdFAB3frPZC_eGrOE3xqZq-ORwOsd0,6625
|
|
51
51
|
pygeofetch/insar/esd.py,sha256=FR0k7TwIUGInDA1u9cW4zrrX0HGTY5MuclfeDcShL9k,26177
|
|
@@ -55,7 +55,7 @@ pygeofetch/insar/flatearth.py,sha256=gSUdDcHlxs3P2TrUkKFkIwq7GftKVOit0A47CaBKIvc
|
|
|
55
55
|
pygeofetch/insar/geolocation.py,sha256=7T84uNHIXGmuOCvru9CJkFrnet4HX3t-thXXro2peRk,34163
|
|
56
56
|
pygeofetch/insar/gpu.py,sha256=tMQSurv6EmmQMFU-e9--ssZo0YRUooPRHyU0V8jamIQ,5726
|
|
57
57
|
pygeofetch/insar/hybrid_unwrap.py,sha256=PT4G9UPTrMqftaMjFd0i9DkwmtRZXAqN504eLYc22ds,18477
|
|
58
|
-
pygeofetch/insar/interferogram.py,sha256=
|
|
58
|
+
pygeofetch/insar/interferogram.py,sha256=XUPNnanpsyYZMXhXfHhh7NpPFFKe8CtS5soRCNkt1Io,171741
|
|
59
59
|
pygeofetch/insar/ionosphere.py,sha256=erfzXKGxWLcLvNZznBCx42t6V05oO3M9q-nbrGzrKyc,30987
|
|
60
60
|
pygeofetch/insar/learned_unwrap.py,sha256=lSX_u-2U5mm8lRKhO0xBMk1dVYcR3wDh6pFWcPdR350,45950
|
|
61
61
|
pygeofetch/insar/logs.py,sha256=lQliMDJmt15NTz8Xgqg1EzENA3WUFY48u2xRqvSoB1U,2453
|
|
@@ -76,7 +76,7 @@ pygeofetch/insar/stack_selection.py,sha256=T0QQsiw7TZcc2PZMZXYliAv50UkLUALKUeC0V
|
|
|
76
76
|
pygeofetch/insar/synthetic.py,sha256=QBHDPp3c8HFvYw4Tt1usGhMZ7D9VD3MT4USbQ7rZ5Sk,16595
|
|
77
77
|
pygeofetch/insar/timeseries.py,sha256=ArKDu5nYHQmue-n-YUweAU_MPIUoNF26TCitFCjC5MQ,75898
|
|
78
78
|
pygeofetch/insar/topo.py,sha256=LyfUVRyrUEgjoRJPripinyhudz3R0Mg1NMBrNn6a4qs,14349
|
|
79
|
-
pygeofetch/insar/tops.py,sha256
|
|
79
|
+
pygeofetch/insar/tops.py,sha256=-yIthiWED20u7t10m8M3AHEBaa8PDS_rvS-oDnYevgM,18459
|
|
80
80
|
pygeofetch/insar/unwrap.py,sha256=kQWASRas74vFgj4HPX9Yoq6DXPFLJMLifJFkMDatMpk,36241
|
|
81
81
|
pygeofetch/insar/validate.py,sha256=guIt70yzOGGmNGFRZwzg7t0usu2zqc6xIAq4fPvM9JY,15096
|
|
82
82
|
pygeofetch/insar/visualize.py,sha256=47V22sbLwhinFSPPMs2wdACyAurSO12vlYwXi7zCGv4,8422
|
|
@@ -170,15 +170,9 @@ pygeofetch/viz/__init__.py,sha256=bSgK_f_goAHVQOfYu2nbPFVushvsy2hVKBvIBoGonyk,53
|
|
|
170
170
|
pygeofetch/viz/insar.py,sha256=SaHBsbmvxAF4dLYptePX3wvKWV8Y2Sxqn8pFDjvyXuk,56742
|
|
171
171
|
pygeofetch/viz/map.py,sha256=f8whny5mnz7gDsStNdgtVSpqTNHSDhSZoRT2Qs-Lvos,16403
|
|
172
172
|
pygeofetch/viz/plot.py,sha256=JybD4qElJBOTvWCu7VllL5DqkKFYf5ttJdFfsgApfLE,56601
|
|
173
|
-
pygeofetch-2.7.0.
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
pygeofetch_tops_deramp/files/tests/insar/test_tops_deramp.py,sha256=ZYWKSLreEg3CR-MxbOvLFffgBhSTFsfoX_pxJgvuuS8,5117
|
|
180
|
-
pygeofetch-2.7.0.0.dist-info/METADATA,sha256=IRITGCUeM3VjNN3NvTAJY_X7iPVGMmNrziAyr-oHAFY,25014
|
|
181
|
-
pygeofetch-2.7.0.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
182
|
-
pygeofetch-2.7.0.0.dist-info/entry_points.txt,sha256=dHiUXLF5xNJ8vgtXZoUQNleEMQUeDPZiKQOE1tW8SDY,55
|
|
183
|
-
pygeofetch-2.7.0.0.dist-info/top_level.txt,sha256=SxtOyuuYN-DI73PBy5EV8V_uV9ouAsYq27q2TYrd3L4,34
|
|
184
|
-
pygeofetch-2.7.0.0.dist-info/RECORD,,
|
|
173
|
+
pygeofetch-2.7.0.1.dist-info/licenses/LICENSE,sha256=zavMyhODD6NvZTmmKFEtATrngwY4CU_NEtY7lhjxGnI,1075
|
|
174
|
+
pygeofetch-2.7.0.1.dist-info/METADATA,sha256=g5R-IiP4U5zGd5beO3WVCALOPsuD7kt_n7j0zPWH04M,25014
|
|
175
|
+
pygeofetch-2.7.0.1.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
176
|
+
pygeofetch-2.7.0.1.dist-info/entry_points.txt,sha256=dHiUXLF5xNJ8vgtXZoUQNleEMQUeDPZiKQOE1tW8SDY,55
|
|
177
|
+
pygeofetch-2.7.0.1.dist-info/top_level.txt,sha256=rOmnZargIfNk99fwVOqt6OJyJvpSTBBAYO5HU37yhHk,11
|
|
178
|
+
pygeofetch-2.7.0.1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pygeofetch
|