PyGeoFetch 2.6.9.4__tar.gz → 2.6.9.6__tar.gz

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.
Files changed (268) hide show
  1. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/CHANGELOG.md +7 -7
  2. {pygeofetch-2.6.9.4/pygeofetch.egg-info → pygeofetch-2.6.9.6}/PKG-INFO +2 -2
  3. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/README.md +1 -1
  4. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/__init__.py +1 -1
  5. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/deburst.py +58 -26
  6. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/interferogram.py +154 -27
  7. pygeofetch-2.6.9.6/pygeofetch/insar/memory.py +76 -0
  8. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/ps_stack.py +7 -0
  9. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/meta.yaml +1 -1
  10. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6/pygeofetch.egg-info}/PKG-INFO +2 -2
  11. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch.egg-info/SOURCES.txt +1 -0
  12. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pyproject.toml +1 -1
  13. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/LICENSE +0 -0
  14. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/MANIFEST.in +0 -0
  15. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/cli/__init__.py +0 -0
  16. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/cli/auth_commands.py +0 -0
  17. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/cli/classify_commands.py +0 -0
  18. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/cli/config_commands.py +0 -0
  19. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/cli/download_commands.py +0 -0
  20. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/cli/index_commands.py +0 -0
  21. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/cli/main.py +0 -0
  22. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/cli/monitor_commands.py +0 -0
  23. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/cli/multisensor_commands.py +0 -0
  24. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/cli/optical_commands.py +0 -0
  25. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/cli/pipeline_process_commands.py +0 -0
  26. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/cli/postprocess_commands.py +0 -0
  27. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/cli/preprocess_commands.py +0 -0
  28. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/cli/sar_commands.py +0 -0
  29. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/cli/scale_commands.py +0 -0
  30. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/cli/search_commands.py +0 -0
  31. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/config/__init__.py +0 -0
  32. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/config/defaults.yaml +0 -0
  33. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/config/settings.py +0 -0
  34. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/core/__init__.py +0 -0
  35. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/core/authenticator.py +0 -0
  36. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/core/cache_manager.py +0 -0
  37. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/core/chunked_processor.py +0 -0
  38. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/core/data_formats/__init__.py +0 -0
  39. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/core/data_formats/geoparquet_io.py +0 -0
  40. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/core/data_formats/zarr_io.py +0 -0
  41. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/core/data_organizer.py +0 -0
  42. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/core/downloader.py +0 -0
  43. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/core/engine.py +0 -0
  44. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/core/logging.py +0 -0
  45. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/core/monitor.py +0 -0
  46. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/core/orbits.py +0 -0
  47. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/core/progress.py +0 -0
  48. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/core/scheduler.py +0 -0
  49. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/core/searcher.py +0 -0
  50. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/core/state.py +0 -0
  51. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/geotech/__init__.py +0 -0
  52. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/geotech/risk_mapper.py +0 -0
  53. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/__init__.py +0 -0
  54. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/advanced_safeguards.py +0 -0
  55. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/analysis.py +0 -0
  56. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/annotation.py +0 -0
  57. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/atmosphere.py +0 -0
  58. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/atmosphere_core.py +0 -0
  59. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/auto_fallback.py +0 -0
  60. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/coregister.py +0 -0
  61. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/errors.py +0 -0
  62. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/esd.py +0 -0
  63. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/extraction.py +0 -0
  64. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/feasibility.py +0 -0
  65. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/flatearth.py +0 -0
  66. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/geolocation.py +0 -0
  67. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/gpu.py +0 -0
  68. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/hybrid_unwrap.py +0 -0
  69. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/ionosphere.py +0 -0
  70. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/learned_unwrap.py +0 -0
  71. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/logs.py +0 -0
  72. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/network_thinning.py +0 -0
  73. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/offset_geometry.py +0 -0
  74. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/offset_tracking.py +0 -0
  75. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/preflight.py +0 -0
  76. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/provenance.py +0 -0
  77. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/ps_eval.py +0 -0
  78. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/ps_gnn_pygeofetch_selector.py +0 -0
  79. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/ps_selection.py +0 -0
  80. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/radar_geometry.py +0 -0
  81. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/splitspectrum_diagnostic.py +0 -0
  82. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/stack_selection.py +0 -0
  83. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/synthetic.py +0 -0
  84. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/timeseries.py +0 -0
  85. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/topo.py +0 -0
  86. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/unwrap.py +0 -0
  87. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/validate.py +0 -0
  88. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/visualize.py +0 -0
  89. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/insar/workflow.py +0 -0
  90. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/models/__init__.py +0 -0
  91. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/models/download_task.py +0 -0
  92. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/models/satellite_data.py +0 -0
  93. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/models/search_query.py +0 -0
  94. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/models/stream_options.py +0 -0
  95. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/models/user_auth.py +0 -0
  96. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/multisensor/__init__.py +0 -0
  97. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/multisensor/_init.py +0 -0
  98. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/multisensor/dem_differencing.py +0 -0
  99. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/multisensor/flood_mapping.py +0 -0
  100. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/multisensor/insar_optical_fusion.py +0 -0
  101. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/multisensor/terrain_corrected_change.py +0 -0
  102. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/multisensor/vegetation_disturbance.py +0 -0
  103. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/optical/__init__.py +0 -0
  104. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/optical/offset_tracking.py +0 -0
  105. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/processing/__init__.py +0 -0
  106. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/processing/base.py +0 -0
  107. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/processing/batch.py +0 -0
  108. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/processing/classification.py +0 -0
  109. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/processing/indices.py +0 -0
  110. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/processing/pipeline.py +0 -0
  111. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/processing/postprocessor.py +0 -0
  112. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/processing/preprocessor.py +0 -0
  113. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/processing/sar.py +0 -0
  114. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/processing/uq_exporter.py +0 -0
  115. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/processor/__init__.py +0 -0
  116. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/processor/indices.py +0 -0
  117. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/processor/landsat.py +0 -0
  118. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/processor/loader.py +0 -0
  119. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/processor/stacker.py +0 -0
  120. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/processor/timeseries.py +0 -0
  121. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/__init__.py +0 -0
  122. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/airbus_oneatlas.py +0 -0
  123. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/alaska_satellite_facility.py +0 -0
  124. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/aws_earth.py +0 -0
  125. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/base.py +0 -0
  126. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/copernicus.py +0 -0
  127. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/copernicus_nodes.py +0 -0
  128. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/digitalglobe.py +0 -0
  129. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/earth_explorer_additional.py +0 -0
  130. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/element84.py +0 -0
  131. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/eodag_provider.py +0 -0
  132. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/esa_scihub.py +0 -0
  133. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/geoserver_generic.py +0 -0
  134. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/google_earth_engine.py +0 -0
  135. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/inpe_cbers.py +0 -0
  136. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/isro_bhuvan.py +0 -0
  137. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/jaxa_earth.py +0 -0
  138. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/maxar_gbdx.py +0 -0
  139. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/nasa_earthdata.py +0 -0
  140. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/nasa_earthdata_cloud.py +0 -0
  141. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/noaa_big_data.py +0 -0
  142. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/opentopography.py +0 -0
  143. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/planet.py +0 -0
  144. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/planetary_computer.py +0 -0
  145. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/sentinel_hub.py +0 -0
  146. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/terrabotics.py +0 -0
  147. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/providers/usgs.py +0 -0
  148. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/sar/__init__.py +0 -0
  149. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/sar/_native.py +0 -0
  150. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/sar/_ost.py +0 -0
  151. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/sar/_sarxarray.py +0 -0
  152. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/sar/extraction.py +0 -0
  153. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/sar/math.py +0 -0
  154. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/sar/pipelines.py +0 -0
  155. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/sar/processor.py +0 -0
  156. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/stac_compute/__init__.py +0 -0
  157. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/stac_compute/burst_streaming.py +0 -0
  158. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/stac_compute/cog_streamer.py +0 -0
  159. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/stac_compute/lightweight_prefetch.py +0 -0
  160. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/stac_compute/window_calculator.py +0 -0
  161. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/streaming/__init__.py +0 -0
  162. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/streaming/scene.py +0 -0
  163. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/streaming/windowed.py +0 -0
  164. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/utils/__init__.py +0 -0
  165. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/utils/file_utils.py +0 -0
  166. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/utils/gcp_recovery.py +0 -0
  167. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/utils/geo_utils.py +0 -0
  168. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/utils/geocoding.py +0 -0
  169. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/utils/logging_setup.py +0 -0
  170. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/utils/retry_handler.py +0 -0
  171. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/utils/sar_math.py +0 -0
  172. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/utils/validators.py +0 -0
  173. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/validation/__init__.py +0 -0
  174. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/validation/optical_validator.py +0 -0
  175. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/viz/__init__.py +0 -0
  176. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/viz/insar.py +0 -0
  177. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/viz/map.py +0 -0
  178. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch/viz/plot.py +0 -0
  179. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch.egg-info/dependency_links.txt +0 -0
  180. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch.egg-info/entry_points.txt +0 -0
  181. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch.egg-info/not-zip-safe +0 -0
  182. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch.egg-info/requires.txt +0 -0
  183. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/pygeofetch.egg-info/top_level.txt +0 -0
  184. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/setup.cfg +0 -0
  185. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_advanced_safeguards.py +0 -0
  186. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_airbus_oneatlas.py +0 -0
  187. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_alaska_satellite_facility.py +0 -0
  188. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_atmospheric_circular_regression.py +0 -0
  189. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_auto_fallback.py +0 -0
  190. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_auto_fallback_fixed.py +0 -0
  191. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_build_sbas_network-new.py +0 -0
  192. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_build_sbas_network.py +0 -0
  193. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_burst_metadata.py +0 -0
  194. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_burst_processing_integration.py +0 -0
  195. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_burst_sync_large_gap.py +0 -0
  196. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_burst_sync_prescreening.py +0 -0
  197. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_burst_synchronization.py +0 -0
  198. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_circuit_breaker_wiring.py +0 -0
  199. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_cli_optical_validation.py +0 -0
  200. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_copernicus_nodes.py +0 -0
  201. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_coregister_integration.py +0 -0
  202. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_coregister_upgrades (1).py +0 -0
  203. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_coregister_upgrades.py +0 -0
  204. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_credential_encryption.py +0 -0
  205. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_data_organizer.py +0 -0
  206. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_dem_differencing_pipeline.py +0 -0
  207. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_digitalglobe.py +0 -0
  208. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_earth_explorer_additional.py +0 -0
  209. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_era5_atmospheric_correction.py +0 -0
  210. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_esa_scihub.py +0 -0
  211. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_extraction.py +0 -0
  212. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_flat_earth_phase.py +0 -0
  213. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_flood_mapping_pipeline.py +0 -0
  214. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_gcp_reprojection.py +0 -0
  215. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_geology_indices_and_rvi_fix.py +0 -0
  216. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_geoserver_generic.py +0 -0
  217. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_google_earth_engine.py +0 -0
  218. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_inpe_cbers.py +0 -0
  219. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_insar.py +0 -0
  220. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_insar_optical_fusion_pipeline.py +0 -0
  221. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_ionosphere.py +0 -0
  222. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_isro_bhuvan.py +0 -0
  223. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_jaxa_earth.py +0 -0
  224. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_lightweight_prefetch.py +0 -0
  225. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_map_preview_consolidation.py +0 -0
  226. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_models.py +0 -0
  227. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_monitor.py +0 -0
  228. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_nasa_earthdata_cloud_s3_fix.py +0 -0
  229. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_nasa_earthdata_public_search.py +0 -0
  230. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_network_thinning.py +0 -0
  231. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_noaa_big_data.py +0 -0
  232. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_offset_tracking.py +0 -0
  233. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_opentopography_pointcloud_usgs.py +0 -0
  234. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_optical_offset_tracking.py +0 -0
  235. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_optical_validation_wiring.py +0 -0
  236. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_optical_validator.py +0 -0
  237. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_optical_validator_stac.py +0 -0
  238. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_pgv_integration_contract.py +0 -0
  239. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_pipeline_process_export.py +0 -0
  240. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_planet_asset_type_fix.py +0 -0
  241. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_preflight_gate.py +0 -0
  242. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_preflight_quiet.py +0 -0
  243. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_preflight_spatial_baseline.py +0 -0
  244. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_provider_geometry_audit.py +0 -0
  245. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_provider_scene_disambiguation.py +0 -0
  246. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_providers.py +0 -0
  247. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_ps_selection.py +0 -0
  248. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_raster_collocation_integration.py +0 -0
  249. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_reference_pixel_and_despike.py +0 -0
  250. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_risk_mapper.py +0 -0
  251. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_risk_mapping.py +0 -0
  252. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_sar_pipelines.py +0 -0
  253. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_screen_stack_orchestration.py +0 -0
  254. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_search_download.py +0 -0
  255. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_sentinel_hub_catalog_fix.py +0 -0
  256. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_sign_convention.py +0 -0
  257. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_splitspectrum_diagnostic.py +0 -0
  258. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_stack_selection_consolidation.py +0 -0
  259. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_state.py +0 -0
  260. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_strain_and_fusion.py +0 -0
  261. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_streaming.py +0 -0
  262. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_terrain_corrected_change_pipeline.py +0 -0
  263. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_topo_r2_bug.py +0 -0
  264. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_uq_exporter.py +0 -0
  265. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_utils.py +0 -0
  266. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_vegetation_disturbance_pipeline.py +0 -0
  267. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_viz_plot.py +0 -0
  268. {pygeofetch-2.6.9.4 → pygeofetch-2.6.9.6}/tests/test_wls_inversion.py +0 -0
@@ -20,7 +20,7 @@ date, and marked accordingly rather than filled in with invented
20
20
  bullet points.
21
21
  ```
22
22
 
23
- ## [Unreleased] — v2.6.9.4.4
23
+ ## [Unreleased] — v2.6.9.6.4
24
24
 
25
25
  ```{note}
26
26
  Not yet published to PyPI. This entry documents work completed and
@@ -130,7 +130,7 @@ audit and remain open for a follow-up pass.
130
130
 
131
131
  ---
132
132
 
133
- ## [2.6.9.4.4] — 2026-08-25 (latest)
133
+ ## [2.6.9.6.4] — 2026-08-25 (latest)
134
134
 
135
135
  Confirmed via direct fetch of the current PyPI listing.
136
136
 
@@ -149,7 +149,7 @@ Confirmed via direct fetch of the current PyPI listing.
149
149
  - `SearchQuery.sort_ascending: bool` — earlier examples showed a `sort_order: "asc"/"desc"` string field that doesn't exist on the model (the CLI's `--sort-order` flag does convert to this internally, so CLI docs were unaffected)
150
150
  - `DownloadOptions.post_process` requires a list of `PostProcessAction` objects — passing plain strings raises a real `pydantic.ValidationError`
151
151
 
152
- ## [2.6.9.4] — 2026-08-24
152
+ ## [2.6.9.6] — 2026-08-24
153
153
  Real, verified release. Detailed notes not independently recovered from PyPI's release-history page (no distinct per-version notes exposed for this release specifically).
154
154
 
155
155
  ## [2.6.1] — 2026-08-22
@@ -261,9 +261,9 @@ recovered.
261
261
 
262
262
  ```{note}
263
263
  The previous version of this changelog had an entry labeled
264
- **"2.6.9.4.4 — 2026-07-12"** describing 22+ providers, Sentinel-1C/1D
264
+ **"2.6.9.6.4 — 2026-07-12"** describing 22+ providers, Sentinel-1C/1D
265
265
  support, SLC search with provider routing, precise orbit file
266
- management, 17 spectral indices, and various bug fixes. **2.6.9.4.4 was
266
+ management, 17 spectral indices, and various bug fixes. **2.6.9.6.4 was
267
267
  only ever released once, on 2026-08-25** — it was never released on
268
268
  2026-07-12. The date matches this real release, **1.0.8**, exactly.
269
269
  That content is reproduced below under the version it actually
@@ -406,8 +406,8 @@ The version of this file uploaded for this update had **5 entries
406
406
  covering 5 dates**. PyPI's real release history has **54 releases**.
407
407
  Specific issues found and fixed:
408
408
 
409
- 1. **Two different entries were both labeled `2.6.9.4.4`**, dated
410
- 2026-07-29 and 2026-07-12. **2.6.9.4.4 was only ever released once**,
409
+ 1. **Two different entries were both labeled `2.6.9.6.4`**, dated
410
+ 2026-07-29 and 2026-07-12. **2.6.9.6.4 was only ever released once**,
411
411
  on 2026-08-25 (confirmed directly from the live PyPI listing).
412
412
  2. **The 2026-07-12 entry's date exactly matches a real release**
413
413
  — version **1.0.8** — and its content (22+ providers, Sentinel-1C/D,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pygeofetch
3
- Version: 2.6.9.4
3
+ Version: 2.6.9.6
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.6.9.4.1},
374
+ version = {2.6.9.6.1},
375
375
  doi = {10.5281/zenodo.22087230},
376
376
  url = {https://doi.org/10.5281/zenodo.22087230}
377
377
  }
@@ -229,7 +229,7 @@ If you use PyGeoFetch in your research or operational work, please cite it using
229
229
  title = {PyGeoFetch: A Unified Python Framework for Multi-Provider Satellite Data Acquisition, Pre-download Quality Control, and Geospatial Processing},
230
230
  year = {2026},
231
231
  publisher = {Zenodo},
232
- version = {2.6.9.4.1},
232
+ version = {2.6.9.6.1},
233
233
  doi = {10.5281/zenodo.22087230},
234
234
  url = {https://doi.org/10.5281/zenodo.22087230}
235
235
  }
@@ -30,7 +30,7 @@ CLI::
30
30
  pygeofetch doctor
31
31
  """
32
32
 
33
- __version__ = "2.6.9.4.4"
33
+ __version__ = "2.6.9.6.4"
34
34
  __author__ = "PyGeoFetch Contributors"
35
35
  __license__ = "MIT"
36
36
 
@@ -115,26 +115,16 @@ def compute_burst_row_ranges(
115
115
  return ranges
116
116
 
117
117
 
118
- def deburst_array(
119
- data: np.ndarray,
118
+ def plan_deburst(
119
+ n_rows: int,
120
120
  swath_timing: SwathTiming,
121
121
  azimuth_time_interval_s: float,
122
122
  row_offset: int = 0,
123
- ) -> Tuple[np.ndarray, int]:
124
- """
125
- Apply real deburst to an array: remove each burst's redundant
126
- overlap rows and concatenate the kept, non-overlapping portions
127
- into one continuous array.
123
+ ) -> Tuple[List[Tuple[int, int]], int]:
124
+ """Which array rows deburst keeps, without touching any data.
128
125
 
129
- Args:
130
- data: 2D array (complex SLC, real-valued raster, etc.)
131
- swath_timing: Real burst metadata from annotation.parse_burst_info().
132
- azimuth_time_interval_s: Real per-line time spacing.
133
- row_offset: If `data` is an already-cropped extract, the real
134
- row offset of `data`'s row 0 within the full-scene burst stack.
135
-
136
- Returns:
137
- (debursted_data, first_kept_full_scene_row)
126
+ Returns ([(start, stop), ...] in array rows, first_kept_full_scene_row). Raises the same errors as
127
+ deburst_array, so a caller can validate both images before changing either one.
138
128
  """
139
129
  if not isinstance(swath_timing, SwathTiming):
140
130
  raise TypeError(
@@ -146,7 +136,7 @@ def deburst_array(
146
136
  ranges = compute_burst_row_ranges(swath_timing, azimuth_time_interval_s)
147
137
  lines_per_burst = swath_timing.lines_per_burst
148
138
 
149
- chunks = []
139
+ spans: List[Tuple[int, int]] = []
150
140
  first_kept_full_scene_row = None
151
141
 
152
142
  for i, (keep_start, keep_end) in enumerate(ranges):
@@ -158,7 +148,7 @@ def deburst_array(
158
148
  chunk_end = burst_full_scene_start + keep_end + 1
159
149
 
160
150
  clipped_start = max(0, chunk_start)
161
- clipped_end = min(data.shape[0], chunk_end)
151
+ clipped_end = min(n_rows, chunk_end)
162
152
 
163
153
  if clipped_start >= clipped_end:
164
154
  continue
@@ -166,21 +156,63 @@ def deburst_array(
166
156
  if first_kept_full_scene_row is None:
167
157
  first_kept_full_scene_row = clipped_start + row_offset
168
158
 
169
- chunks.append(data[clipped_start:clipped_end])
159
+ spans.append((clipped_start, clipped_end))
170
160
 
171
- if not chunks:
161
+ if not spans:
172
162
  raise ValueError(
173
163
  "deburst_array: no real data remained after debursting — "
174
164
  "check that row_offset correctly reflects data's real "
175
165
  "position within the full-scene burst stack."
176
166
  )
167
+ assert first_kept_full_scene_row is not None
168
+ return spans, first_kept_full_scene_row
177
169
 
178
- debursted = np.concatenate(chunks, axis=0)
179
170
 
180
- assert first_kept_full_scene_row is not None, (
181
- "first_kept_full_scene_row must be set whenever chunks is "
182
- "non-empty (set on the first appended chunk above)."
183
- )
171
+ def deburst_array(
172
+ data: np.ndarray,
173
+ swath_timing: SwathTiming,
174
+ azimuth_time_interval_s: float,
175
+ row_offset: int = 0,
176
+ inplace: bool = False,
177
+ spans: Optional[List[Tuple[int, int]]] = None,
178
+ first_kept_row: Optional[int] = None,
179
+ ) -> Tuple[np.ndarray, int]:
180
+ """
181
+ Apply real deburst to an array: remove each burst's redundant
182
+ overlap rows and concatenate the kept, non-overlapping portions
183
+ into one continuous array.
184
+
185
+ Args:
186
+ data: 2D array (complex SLC, real-valued raster, etc.)
187
+ swath_timing: Real burst metadata from annotation.parse_burst_info().
188
+ azimuth_time_interval_s: Real per-line time spacing.
189
+ row_offset: If `data` is an already-cropped extract, the real
190
+ row offset of `data`'s row 0 within the full-scene burst stack.
191
+ inplace: Compact the kept rows toward the top of `data` and return a view of the first rows, instead
192
+ of allocating a second full-size array. The input array is overwritten, so only use it when
193
+ nothing else needs the original. Same values as the copying version. Ignored (falls back to a
194
+ copy) when `data` is read-only.
195
+ spans, first_kept_row: A plan from plan_deburst(), to skip recomputing it.
196
+
197
+ Returns:
198
+ (debursted_data, first_kept_full_scene_row)
199
+ """
200
+ if spans is None or first_kept_row is None:
201
+ spans, first_kept_row = plan_deburst(data.shape[0], swath_timing, azimuth_time_interval_s, row_offset)
202
+
203
+ if inplace and data.flags.writeable:
204
+ # Kept spans are in increasing order and each destination is at or above its source row, so
205
+ # moving them in order never overwrites a row that is still to be read. numpy copes with the
206
+ # overlap inside one span.
207
+ dst = 0
208
+ for a, b in spans:
209
+ n = b - a
210
+ if dst != a:
211
+ data[dst:dst + n] = data[a:b]
212
+ dst += n
213
+ debursted = data[:dst]
214
+ else:
215
+ debursted = np.concatenate([data[a:b] for a, b in spans], axis=0)
184
216
 
185
217
  logger.info(
186
218
  "Deburst: %d bursts -> %d output rows (input was %d rows)",
@@ -189,4 +221,4 @@ def deburst_array(
189
221
  data.shape[0],
190
222
  )
191
223
 
192
- return debursted, first_kept_full_scene_row
224
+ return debursted, first_kept_row
@@ -510,6 +510,9 @@ class InterferogramGenerator:
510
510
  meaningful for burst-mode (TOPS) SLC pairs;
511
511
  has no effect on already-deburst/stripmap data.
512
512
  use_gpu: Use CuPy GPU acceleration if available.
513
+ memory_guard: "warn" (default) | "raise" | "off". Compares the estimated peak memory of a pair with the
514
+ available memory before the SLCs are read; "raise" stops with MemoryError instead of
515
+ letting the system kill the process.
513
516
  verbosity: None leaves logging alone. "quiet" | "normal" | "full" | "debug": how much the InSAR
514
517
  modules log (see pygeofetch.insar.logs). "normal" drops the per-pair repeats of the
515
518
  "Parsed real SLC geometry", "Parsed orbit state vectors" and "Plot saved" lines.
@@ -561,11 +564,17 @@ class InterferogramGenerator:
561
564
  chunk_size: Optional[int] = None,
562
565
  on_error: str = "raise",
563
566
  dem_geoid_offset_m: float = 0.0,
567
+ memory_guard: str = "warn",
564
568
  ) -> None:
565
569
  # Added to every DEM height before use. Most DEMs are orthometric (Copernicus DEM: EGM2008) but the geometry
566
570
  # needs ellipsoidal heights; the difference (about +40 m in Silesia) shifts the geocoding by ~N/tan(incidence)
567
571
  # and the topographic phase by a nearly constant offset. 0.0 = use the DEM as is.
568
572
  self._dem_geoid_offset_m = float(dem_geoid_offset_m)
573
+ # Before an SLC pair is read, compare the estimated peak memory with what the system has available.
574
+ # "warn" logs it, "raise" stops with MemoryError before anything is allocated, "off" skips the check.
575
+ if memory_guard not in ("off", "warn", "raise"):
576
+ raise ValueError(f"memory_guard must be 'off', 'warn' or 'raise', got {memory_guard!r}")
577
+ self._memory_guard = memory_guard
569
578
  # What to do when a step that was asked for (or whose inputs were supplied) fails:
570
579
  # "raise" (default) -- stop with a ProcessingError subclass naming the stage; the cause is chained.
571
580
  # This is what ISCE2, GAMMA, SNAP and HyP3 do. No weaker product is returned.
@@ -1192,7 +1201,7 @@ class InterferogramGenerator:
1192
1201
  try:
1193
1202
  from pygeofetch.insar.annotation import parse_burst_info, parse_slc_geometry
1194
1203
  from pygeofetch.insar.coregister import read_crop_offset, read_matched_swath
1195
- from pygeofetch.insar.deburst import deburst_array
1204
+ from pygeofetch.insar.deburst import deburst_array, plan_deburst
1196
1205
  from pygeofetch.insar.esd import estimate_esd_shift_per_burst_overlap
1197
1206
 
1198
1207
  ref_swath_hint = (
@@ -1444,25 +1453,26 @@ class InterferogramGenerator:
1444
1453
  # per-burst-overlap ESD issue investigated above, which runs
1445
1454
  # earlier, on the pre-deburst array, and was already using
1446
1455
  # ref_row_off correctly for both images at that stage.
1447
- ref_debursted, ref_first_kept_row = deburst_array(
1448
- ref_complex,
1449
- ref_burst_info,
1450
- azimuth_time_interval_s,
1451
- row_offset=int(ref_row_off),
1452
- )
1453
-
1454
- # FIX: Use ref_burst_info for the secondary as well.
1455
- # Because sec_complex has already been resampled onto the reference's
1456
- # grid by the swath-level coregistration, its burst boundaries in
1457
- # pixel coordinates now perfectly match the reference's. Using
1458
- # sec_burst_info applies the secondary's original, un-warped timing,
1459
- # which cuts out the wrong rows and destroys coherence at burst edges.
1456
+ # Plan both debursts first (cheap, raises before any data is touched), then compact each image in
1457
+ # place: kept rows move toward the top of the array that already exists, so no second full-size
1458
+ # copy of either image is made. Both inputs are replaced by the return values in process_pair.
1459
+ #
1460
+ # FIX: Use ref_burst_info for the secondary as well. sec_complex was already resampled onto the
1461
+ # reference's grid by the swath-level coregistration, so its burst boundaries in pixel
1462
+ # coordinates match the reference's; the secondary's own un-warped timing would cut the wrong
1463
+ # rows and destroy coherence at burst edges.
1464
+ _ref_spans, ref_first_kept_row = plan_deburst(
1465
+ ref_complex.shape[0], ref_burst_info, azimuth_time_interval_s, row_offset=int(ref_row_off))
1466
+ _sec_spans, _sec_first = plan_deburst(
1467
+ sec_complex.shape[0], ref_burst_info, azimuth_time_interval_s, row_offset=int(ref_row_off))
1468
+ ref_debursted, _ = deburst_array(
1469
+ ref_complex, ref_burst_info, azimuth_time_interval_s, row_offset=int(ref_row_off),
1470
+ inplace=True, spans=_ref_spans, first_kept_row=ref_first_kept_row)
1471
+ ref_complex = None
1460
1472
  sec_debursted, _ = deburst_array(
1461
- sec_complex,
1462
- ref_burst_info,
1463
- azimuth_time_interval_s,
1464
- row_offset=int(ref_row_off),
1465
- )
1473
+ sec_complex, ref_burst_info, azimuth_time_interval_s, row_offset=int(ref_row_off),
1474
+ inplace=True, spans=_sec_spans, first_kept_row=_sec_first)
1475
+ sec_complex = None
1466
1476
 
1467
1477
  # Real correctness fix, not optional: deburst can remove
1468
1478
  # rows from the TOP of the array (whenever the crop's own
@@ -1500,7 +1510,7 @@ class InterferogramGenerator:
1500
1510
  logger.info(
1501
1511
  "Real burst-aware processing complete: %s -> %s "
1502
1512
  "(burst-boundary redundancy removed)",
1503
- ref_complex.shape,
1513
+ ref_debursted.base.shape if ref_debursted.base is not None else ref_debursted.shape,
1504
1514
  ref_debursted.shape,
1505
1515
  )
1506
1516
  return ref_debursted, sec_debursted, metadata
@@ -1535,6 +1545,121 @@ class InterferogramGenerator:
1535
1545
  # MAIN PROCESSING PIPELINE
1536
1546
  # ══════════════════════════════════════════════════════════════════
1537
1547
 
1548
+ _FINGERPRINT_EXCLUDED_ARGS = frozenset({
1549
+ "self", "chunk_rows", "use_chunked_processing", "output_dir", "resume", "save_visualizations",
1550
+ "min_coreg_gcps", "max_coreg_rms_px", "max_burst_sync_ms"})
1551
+ _FINGERPRINT_EXCLUDED_SETTINGS = frozenset({"_use_gpu", "_chunk_size", "_on_error", "_coherence_backend", "_memory_guard"})
1552
+
1553
+ def _pair_fingerprint(self, arguments: Dict[str, Any]) -> Dict[str, Any]:
1554
+ """What a saved result depends on, from the process_pair arguments (all of them, defaults included)."""
1555
+ args = {k: v for k, v in arguments.items()
1556
+ if k not in self._FINGERPRINT_EXCLUDED_ARGS and not k.startswith("_")}
1557
+ settings = {k: v for k, v in vars(self).items()
1558
+ if isinstance(v, (bool, int, float, str, type(None)))
1559
+ and k not in self._FINGERPRINT_EXCLUDED_SETTINGS}
1560
+ return make_fingerprint(args, settings)
1561
+
1562
+ def pair_fingerprint(self, **process_pair_kwargs) -> Dict[str, Any]:
1563
+ """The fingerprint process_pair would store for these arguments, without running anything. Used to
1564
+ decide up front whether a pair on disk is current."""
1565
+ import inspect
1566
+
1567
+ bound = inspect.signature(self.process_pair).bind(**process_pair_kwargs)
1568
+ bound.apply_defaults()
1569
+ return self._pair_fingerprint(dict(bound.arguments))
1570
+
1571
+ def is_pair_current(self, output_dir, reference_date: str, secondary_date: str, **process_pair_kwargs) -> bool:
1572
+ """True when output_dir/<ref>_<sec> holds a complete save made with exactly these inputs and settings."""
1573
+ saved = InterferogramResult.saved_fingerprint(Path(output_dir) / f"{reference_date}_{secondary_date}")
1574
+ if not saved:
1575
+ return False
1576
+ return saved.get("hash") == self.pair_fingerprint(
1577
+ reference_date=reference_date, secondary_date=secondary_date, **process_pair_kwargs)["hash"]
1578
+
1579
+ def process_pairs(
1580
+ self,
1581
+ pairs,
1582
+ output_dir,
1583
+ resume: bool = True,
1584
+ keep_results: bool = False,
1585
+ stop_on_error: bool = False,
1586
+ **common_kwargs,
1587
+ ):
1588
+ """Process many pairs one after another, saving each under output_dir/<ref>_<sec>.
1589
+
1590
+ pairs: iterable of dicts of process_pair arguments for one pair (reference, secondary,
1591
+ reference_date, secondary_date, ... ). common_kwargs apply to every pair; a pair's own dict wins.
1592
+ resume: pairs whose folder already holds a complete save made with the same inputs and settings
1593
+ are skipped before any SLC is opened (checked with the same fingerprint process_pair stores).
1594
+ keep_results: False (default) keeps only a small record per pair, so memory stays flat however many
1595
+ pairs run; True also returns each InterferogramResult (loaded from disk for skipped pairs).
1596
+ stop_on_error: False records the failure and carries on with the next pair.
1597
+
1598
+ Returns a list of records: reference_date, secondary_date, status ("skipped: already generated",
1599
+ "computed", "failed"), folder, metadata (the pair's summary, loaded from result.json when skipped),
1600
+ error, and result (only with keep_results). The decision for every pair is printed, so a run that
1601
+ did not skip anything says so.
1602
+ """
1603
+ import gc
1604
+ import json
1605
+
1606
+ out = Path(output_dir)
1607
+ pairs = list(pairs)
1608
+ records = []
1609
+ n_skip = n_done = n_fail = 0
1610
+ print(f"process_pairs: {len(pairs)} pairs, output_dir={out}, resume={resume}")
1611
+ for i, spec in enumerate(pairs, 1):
1612
+ kw = {**common_kwargs, **spec}
1613
+ rd, sd = kw.get("reference_date"), kw.get("secondary_date")
1614
+ if not (rd and sd):
1615
+ raise InputError("input", "every pair needs reference_date and secondary_date")
1616
+ folder = out / f"{rd}_{sd}"
1617
+ rec = {"reference_date": rd, "secondary_date": sd, "folder": folder, "status": None,
1618
+ "metadata": None, "error": None, "result": None}
1619
+ tag = f"[{i}/{len(pairs)}] {rd} -> {sd}"
1620
+ current = False
1621
+ if resume:
1622
+ try:
1623
+ current = self.is_pair_current(out, rd, sd, **{k: v for k, v in kw.items()
1624
+ if k not in ("reference_date", "secondary_date")})
1625
+ except Exception as exc: # noqa: BLE001
1626
+ logger.warning("resume check failed for %s_%s (%s); computing it", rd, sd, exc)
1627
+ if current:
1628
+ rec["status"] = "skipped: already generated"
1629
+ try:
1630
+ rec["metadata"] = _restore(json.loads((folder / _RESULT_JSON).read_text()).get("metadata") or {})
1631
+ if keep_results:
1632
+ rec["result"] = InterferogramResult.load(folder)
1633
+ except Exception as exc: # noqa: BLE001
1634
+ logger.warning("could not read saved result for %s_%s (%s)", rd, sd, exc)
1635
+ n_skip += 1
1636
+ print(f"{tag}: {rec['status']}")
1637
+ else:
1638
+ why = "resume off" if not resume else (
1639
+ "no complete save" if InterferogramResult.saved_fingerprint(folder) is None
1640
+ else "saved with different inputs/settings/version")
1641
+ print(f"{tag}: computing ({why})")
1642
+ try:
1643
+ res = self.process_pair(output_dir=out, resume=False, **kw)
1644
+ rec["status"] = "computed"
1645
+ rec["metadata"] = dict(res.metadata)
1646
+ if keep_results:
1647
+ rec["result"] = res
1648
+ n_done += 1
1649
+ del res
1650
+ except Exception as exc: # noqa: BLE001
1651
+ rec["status"] = "failed"
1652
+ rec["error"] = f"{type(exc).__name__}: {exc}"
1653
+ n_fail += 1
1654
+ print(f"{tag}: FAILED {rec['error']}")
1655
+ if stop_on_error:
1656
+ records.append(rec)
1657
+ raise
1658
+ records.append(rec)
1659
+ gc.collect()
1660
+ print(f"process_pairs: {n_skip} skipped, {n_done} computed, {n_fail} failed")
1661
+ return records
1662
+
1538
1663
  def process_pair(
1539
1664
  self,
1540
1665
  reference: Union[str, Path],
@@ -1698,13 +1823,7 @@ class InterferogramGenerator:
1698
1823
  """
1699
1824
  # What this result depends on, taken before anything else is assigned. Used to decide on resume
1700
1825
  # whether a saved result was made by the same pipeline with the same inputs and settings.
1701
- _not_inputs = {"self", "chunk_rows", "use_chunked_processing", "output_dir", "resume",
1702
- "save_visualizations", "min_coreg_gcps", "max_coreg_rms_px", "max_burst_sync_ms"}
1703
- _arguments = {k: v for k, v in locals().items() if k not in _not_inputs and not k.startswith("_")}
1704
- _settings = {k: v for k, v in vars(self).items()
1705
- if isinstance(v, (bool, int, float, str, type(None)))
1706
- and k not in ("_use_gpu", "_chunk_size", "_on_error", "_coherence_backend")}
1707
- _fingerprint = make_fingerprint(_arguments, _settings)
1826
+ _fingerprint = self._pair_fingerprint(dict(locals()))
1708
1827
  _pair_dir = None
1709
1828
  _resume_note = "resume not requested" if not resume else "no output_dir"
1710
1829
  if output_dir is not None:
@@ -1739,6 +1858,14 @@ class InterferogramGenerator:
1739
1858
  # Resolve chunk size: explicit param > instance default > None (full)
1740
1859
  effective_chunk = chunk_rows if chunk_rows is not None else self._chunk_size
1741
1860
 
1861
+ from pygeofetch.insar.memory import check_memory
1862
+
1863
+ _need_gb, _have_gb = check_memory(
1864
+ reference, secondary, chunked=bool(use_chunked_processing and effective_chunk is not None),
1865
+ mode=self._memory_guard)
1866
+ if _need_gb is not None and _have_gb is not None:
1867
+ logger.info("memory: estimated peak %.1f GB, %.1f GB available", _need_gb, _have_gb)
1868
+
1742
1869
  # ── Step 0: Read SLCs ──
1743
1870
  # Use chunked reading for large files if chunking is enabled
1744
1871
  if use_chunked_processing and effective_chunk is not None:
@@ -0,0 +1,76 @@
1
+ """Memory check before a large SLC pair is read.
2
+
3
+ A Sentinel-1 sub-swath SLC is about 1 GB as complex64; a pair needs several full-size arrays at once. The
4
+ check reads the two image headers, estimates the peak and compares it with the memory the operating system
5
+ reports as available, so a run that cannot fit stops with a message instead of being killed (taking the
6
+ editor and the notebook kernel with it).
7
+ """
8
+ from __future__ import annotations
9
+
10
+ import logging
11
+ from pathlib import Path
12
+ from typing import Optional, Tuple, Union
13
+
14
+ logger = logging.getLogger(__name__)
15
+
16
+ # Peak working set of process_pair as a multiple of one full-size complex64 array. Measured with a synthetic
17
+ # pair at 1 x 1 looks (10.9 x with a small image, where fixed-size buffers weigh more); the values below are
18
+ # deliberately a little under that, so they do not refuse runs that would fit. Not measured on a real scene.
19
+ PEAK_FACTOR_CHUNKED = 8.0
20
+ PEAK_FACTOR_UNCHUNKED = 14.0
21
+
22
+
23
+ def available_gb() -> Optional[float]:
24
+ """Memory the OS says can be allocated without swapping, in GB (None if it cannot be read)."""
25
+ try:
26
+ with open("/proc/meminfo") as fh:
27
+ for line in fh:
28
+ if line.startswith("MemAvailable:"):
29
+ return int(line.split()[1]) / 1e6
30
+ except OSError:
31
+ pass
32
+ try:
33
+ import psutil
34
+
35
+ return psutil.virtual_memory().available / 1e9
36
+ except Exception: # noqa: BLE001
37
+ return None
38
+
39
+
40
+ def image_bytes(path: Union[str, Path]) -> Optional[int]:
41
+ """Size of the image as complex64, from its header (None if it cannot be opened)."""
42
+ try:
43
+ import rasterio
44
+
45
+ with rasterio.open(path) as src:
46
+ return int(src.height) * int(src.width) * 8
47
+ except Exception: # noqa: BLE001
48
+ return None
49
+
50
+
51
+ def estimate_peak_gb(reference: Union[str, Path], secondary: Union[str, Path], chunked: bool) -> Optional[float]:
52
+ sizes = [s for s in (image_bytes(reference), image_bytes(secondary)) if s]
53
+ if not sizes:
54
+ return None
55
+ return max(sizes) * (PEAK_FACTOR_CHUNKED if chunked else PEAK_FACTOR_UNCHUNKED) / 1e9
56
+
57
+
58
+ def check_memory(reference, secondary, chunked: bool, mode: str = "warn") -> Tuple[Optional[float], Optional[float]]:
59
+ """Compare the estimated peak with the available memory. mode: "off" | "warn" | "raise".
60
+
61
+ Returns (estimated_peak_gb, available_gb). Raises MemoryError in "raise" mode when the estimate exceeds what is
62
+ available, with the numbers and what to do about it.
63
+ """
64
+ if mode == "off":
65
+ return None, None
66
+ need, have = estimate_peak_gb(reference, secondary, chunked), available_gb()
67
+ if need is None or have is None or need <= have:
68
+ return need, have
69
+ how = "" if chunked else " Chunked processing (chunk_size / chunk_rows) would cut it."
70
+ msg = (f"this pair needs about {need:.1f} GB at its peak and the system reports {have:.1f} GB available "
71
+ f"(estimate: {PEAK_FACTOR_CHUNKED if chunked else PEAK_FACTOR_UNCHUNKED:g} x the larger SLC; not measured on "
72
+ f"real scenes).{how} Close other programs, restart the kernel, or crop the SLCs to the AOI before processing.")
73
+ if mode == "raise":
74
+ raise MemoryError(msg)
75
+ logger.warning("memory: %s", msg)
76
+ return need, have
@@ -440,6 +440,11 @@ def build_ps_stack(
440
440
  kw = dict(process_kwargs or {})
441
441
  for forbidden in ("looks_azimuth", "looks_range", "apply_goldstein_filter"):
442
442
  kw.pop(forbidden, None)
443
+ # Every pair here is single-look, the heaviest setting. Without chunking process_pair reads and processes each
444
+ # full SLC in one piece, several times the memory. Chunking changes nothing in the result.
445
+ if getattr(generator, "_chunk_size", None) is None:
446
+ kw.setdefault("chunk_rows", 500)
447
+ kw.setdefault("use_chunked_processing", True)
443
448
  m_plat = _s1_platform_and_track(safe_zips[master])[0] if master in safe_zips else None
444
449
 
445
450
  def _gen():
@@ -462,6 +467,8 @@ def build_ps_stack(
462
467
  looks_azimuth=1, looks_range=1, apply_goldstein_filter=False,
463
468
  aoi_bbox=aoi_bbox, **kw,
464
469
  )
470
+ except MemoryError:
471
+ raise # not a property of this date: stop here so the message reaches the user
465
472
  except Exception as exc: # noqa: BLE001
466
473
  # ProcessingError carries its stage; anything else is reported with its type so it is not mistaken for a rule
467
474
  yield d, _Skipped(f"process_pair failed: {exc}" if hasattr(exc, "stage")
@@ -1,4 +1,4 @@
1
- {% set version = "2.6.9.4.4" %}
1
+ {% set version = "2.6.9.6.4" %}
2
2
 
3
3
  package:
4
4
  name: pygeofetch
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pygeofetch
3
- Version: 2.6.9.4
3
+ Version: 2.6.9.6
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.6.9.4.1},
374
+ version = {2.6.9.6.1},
375
375
  doi = {10.5281/zenodo.22087230},
376
376
  url = {https://doi.org/10.5281/zenodo.22087230}
377
377
  }
@@ -72,6 +72,7 @@ pygeofetch/insar/interferogram.py
72
72
  pygeofetch/insar/ionosphere.py
73
73
  pygeofetch/insar/learned_unwrap.py
74
74
  pygeofetch/insar/logs.py
75
+ pygeofetch/insar/memory.py
75
76
  pygeofetch/insar/network_thinning.py
76
77
  pygeofetch/insar/offset_geometry.py
77
78
  pygeofetch/insar/offset_tracking.py
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pygeofetch"
7
- version = "2.6.9.4"
7
+ version = "2.6.9.6"
8
8
  description = "Universal satellite data pipeline + geospatial processing platform"
9
9
  readme = "README.md"
10
10
  license = { file = "LICENSE" }
File without changes
File without changes