PyGeoFetch 2.6.9.1__tar.gz → 2.6.9.3__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 (267) hide show
  1. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/CHANGELOG.md +7 -7
  2. {pygeofetch-2.6.9.1/pygeofetch.egg-info → pygeofetch-2.6.9.3}/PKG-INFO +2 -2
  3. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/README.md +1 -1
  4. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/__init__.py +1 -1
  5. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/__init__.py +2 -1
  6. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/coregister.py +179 -3
  7. pygeofetch-2.6.9.3/pygeofetch/insar/gpu.py +155 -0
  8. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/interferogram.py +295 -22
  9. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/meta.yaml +1 -1
  10. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/viz/insar.py +3 -3
  11. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3/pygeofetch.egg-info}/PKG-INFO +2 -2
  12. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pyproject.toml +1 -1
  13. pygeofetch-2.6.9.1/pygeofetch/insar/gpu.py +0 -108
  14. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/LICENSE +0 -0
  15. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/MANIFEST.in +0 -0
  16. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/cli/__init__.py +0 -0
  17. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/cli/auth_commands.py +0 -0
  18. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/cli/classify_commands.py +0 -0
  19. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/cli/config_commands.py +0 -0
  20. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/cli/download_commands.py +0 -0
  21. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/cli/index_commands.py +0 -0
  22. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/cli/main.py +0 -0
  23. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/cli/monitor_commands.py +0 -0
  24. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/cli/multisensor_commands.py +0 -0
  25. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/cli/optical_commands.py +0 -0
  26. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/cli/pipeline_process_commands.py +0 -0
  27. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/cli/postprocess_commands.py +0 -0
  28. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/cli/preprocess_commands.py +0 -0
  29. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/cli/sar_commands.py +0 -0
  30. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/cli/scale_commands.py +0 -0
  31. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/cli/search_commands.py +0 -0
  32. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/config/__init__.py +0 -0
  33. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/config/defaults.yaml +0 -0
  34. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/config/settings.py +0 -0
  35. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/core/__init__.py +0 -0
  36. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/core/authenticator.py +0 -0
  37. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/core/cache_manager.py +0 -0
  38. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/core/chunked_processor.py +0 -0
  39. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/core/data_formats/__init__.py +0 -0
  40. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/core/data_formats/geoparquet_io.py +0 -0
  41. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/core/data_formats/zarr_io.py +0 -0
  42. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/core/data_organizer.py +0 -0
  43. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/core/downloader.py +0 -0
  44. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/core/engine.py +0 -0
  45. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/core/logging.py +0 -0
  46. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/core/monitor.py +0 -0
  47. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/core/orbits.py +0 -0
  48. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/core/progress.py +0 -0
  49. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/core/scheduler.py +0 -0
  50. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/core/searcher.py +0 -0
  51. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/core/state.py +0 -0
  52. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/geotech/__init__.py +0 -0
  53. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/geotech/risk_mapper.py +0 -0
  54. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/advanced_safeguards.py +0 -0
  55. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/analysis.py +0 -0
  56. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/annotation.py +0 -0
  57. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/atmosphere.py +0 -0
  58. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/atmosphere_core.py +0 -0
  59. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/auto_fallback.py +0 -0
  60. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/deburst.py +0 -0
  61. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/errors.py +0 -0
  62. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/esd.py +0 -0
  63. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/extraction.py +0 -0
  64. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/feasibility.py +0 -0
  65. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/flatearth.py +0 -0
  66. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/geolocation.py +0 -0
  67. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/hybrid_unwrap.py +0 -0
  68. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/ionosphere.py +0 -0
  69. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/learned_unwrap.py +0 -0
  70. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/network_thinning.py +0 -0
  71. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/offset_geometry.py +0 -0
  72. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/offset_tracking.py +0 -0
  73. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/preflight.py +0 -0
  74. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/provenance.py +0 -0
  75. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/ps_eval.py +0 -0
  76. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/ps_gnn_pygeofetch_selector.py +0 -0
  77. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/ps_selection.py +0 -0
  78. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/ps_stack.py +0 -0
  79. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/radar_geometry.py +0 -0
  80. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/splitspectrum_diagnostic.py +0 -0
  81. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/stack_selection.py +0 -0
  82. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/synthetic.py +0 -0
  83. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/timeseries.py +0 -0
  84. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/topo.py +0 -0
  85. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/unwrap.py +0 -0
  86. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/validate.py +0 -0
  87. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/visualize.py +0 -0
  88. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/insar/workflow.py +0 -0
  89. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/models/__init__.py +0 -0
  90. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/models/download_task.py +0 -0
  91. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/models/satellite_data.py +0 -0
  92. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/models/search_query.py +0 -0
  93. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/models/stream_options.py +0 -0
  94. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/models/user_auth.py +0 -0
  95. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/multisensor/__init__.py +0 -0
  96. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/multisensor/_init.py +0 -0
  97. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/multisensor/dem_differencing.py +0 -0
  98. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/multisensor/flood_mapping.py +0 -0
  99. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/multisensor/insar_optical_fusion.py +0 -0
  100. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/multisensor/terrain_corrected_change.py +0 -0
  101. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/multisensor/vegetation_disturbance.py +0 -0
  102. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/optical/__init__.py +0 -0
  103. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/optical/offset_tracking.py +0 -0
  104. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/processing/__init__.py +0 -0
  105. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/processing/base.py +0 -0
  106. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/processing/batch.py +0 -0
  107. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/processing/classification.py +0 -0
  108. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/processing/indices.py +0 -0
  109. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/processing/pipeline.py +0 -0
  110. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/processing/postprocessor.py +0 -0
  111. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/processing/preprocessor.py +0 -0
  112. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/processing/sar.py +0 -0
  113. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/processing/uq_exporter.py +0 -0
  114. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/processor/__init__.py +0 -0
  115. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/processor/indices.py +0 -0
  116. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/processor/landsat.py +0 -0
  117. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/processor/loader.py +0 -0
  118. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/processor/stacker.py +0 -0
  119. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/processor/timeseries.py +0 -0
  120. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/__init__.py +0 -0
  121. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/airbus_oneatlas.py +0 -0
  122. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/alaska_satellite_facility.py +0 -0
  123. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/aws_earth.py +0 -0
  124. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/base.py +0 -0
  125. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/copernicus.py +0 -0
  126. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/copernicus_nodes.py +0 -0
  127. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/digitalglobe.py +0 -0
  128. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/earth_explorer_additional.py +0 -0
  129. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/element84.py +0 -0
  130. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/eodag_provider.py +0 -0
  131. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/esa_scihub.py +0 -0
  132. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/geoserver_generic.py +0 -0
  133. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/google_earth_engine.py +0 -0
  134. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/inpe_cbers.py +0 -0
  135. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/isro_bhuvan.py +0 -0
  136. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/jaxa_earth.py +0 -0
  137. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/maxar_gbdx.py +0 -0
  138. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/nasa_earthdata.py +0 -0
  139. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/nasa_earthdata_cloud.py +0 -0
  140. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/noaa_big_data.py +0 -0
  141. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/opentopography.py +0 -0
  142. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/planet.py +0 -0
  143. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/planetary_computer.py +0 -0
  144. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/sentinel_hub.py +0 -0
  145. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/terrabotics.py +0 -0
  146. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/providers/usgs.py +0 -0
  147. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/sar/__init__.py +0 -0
  148. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/sar/_native.py +0 -0
  149. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/sar/_ost.py +0 -0
  150. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/sar/_sarxarray.py +0 -0
  151. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/sar/extraction.py +0 -0
  152. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/sar/math.py +0 -0
  153. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/sar/pipelines.py +0 -0
  154. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/sar/processor.py +0 -0
  155. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/stac_compute/__init__.py +0 -0
  156. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/stac_compute/burst_streaming.py +0 -0
  157. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/stac_compute/cog_streamer.py +0 -0
  158. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/stac_compute/lightweight_prefetch.py +0 -0
  159. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/stac_compute/window_calculator.py +0 -0
  160. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/streaming/__init__.py +0 -0
  161. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/streaming/scene.py +0 -0
  162. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/streaming/windowed.py +0 -0
  163. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/utils/__init__.py +0 -0
  164. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/utils/file_utils.py +0 -0
  165. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/utils/gcp_recovery.py +0 -0
  166. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/utils/geo_utils.py +0 -0
  167. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/utils/geocoding.py +0 -0
  168. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/utils/logging_setup.py +0 -0
  169. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/utils/retry_handler.py +0 -0
  170. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/utils/sar_math.py +0 -0
  171. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/utils/validators.py +0 -0
  172. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/validation/__init__.py +0 -0
  173. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/validation/optical_validator.py +0 -0
  174. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/viz/__init__.py +0 -0
  175. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/viz/map.py +0 -0
  176. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch/viz/plot.py +0 -0
  177. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch.egg-info/SOURCES.txt +0 -0
  178. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch.egg-info/dependency_links.txt +0 -0
  179. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch.egg-info/entry_points.txt +0 -0
  180. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch.egg-info/not-zip-safe +0 -0
  181. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch.egg-info/requires.txt +0 -0
  182. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/pygeofetch.egg-info/top_level.txt +0 -0
  183. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/setup.cfg +0 -0
  184. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_advanced_safeguards.py +0 -0
  185. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_airbus_oneatlas.py +0 -0
  186. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_alaska_satellite_facility.py +0 -0
  187. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_atmospheric_circular_regression.py +0 -0
  188. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_auto_fallback.py +0 -0
  189. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_auto_fallback_fixed.py +0 -0
  190. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_build_sbas_network-new.py +0 -0
  191. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_build_sbas_network.py +0 -0
  192. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_burst_metadata.py +0 -0
  193. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_burst_processing_integration.py +0 -0
  194. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_burst_sync_large_gap.py +0 -0
  195. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_burst_sync_prescreening.py +0 -0
  196. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_burst_synchronization.py +0 -0
  197. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_circuit_breaker_wiring.py +0 -0
  198. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_cli_optical_validation.py +0 -0
  199. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_copernicus_nodes.py +0 -0
  200. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_coregister_integration.py +0 -0
  201. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_coregister_upgrades (1).py +0 -0
  202. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_coregister_upgrades.py +0 -0
  203. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_credential_encryption.py +0 -0
  204. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_data_organizer.py +0 -0
  205. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_dem_differencing_pipeline.py +0 -0
  206. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_digitalglobe.py +0 -0
  207. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_earth_explorer_additional.py +0 -0
  208. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_era5_atmospheric_correction.py +0 -0
  209. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_esa_scihub.py +0 -0
  210. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_extraction.py +0 -0
  211. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_flat_earth_phase.py +0 -0
  212. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_flood_mapping_pipeline.py +0 -0
  213. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_gcp_reprojection.py +0 -0
  214. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_geology_indices_and_rvi_fix.py +0 -0
  215. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_geoserver_generic.py +0 -0
  216. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_google_earth_engine.py +0 -0
  217. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_inpe_cbers.py +0 -0
  218. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_insar.py +0 -0
  219. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_insar_optical_fusion_pipeline.py +0 -0
  220. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_ionosphere.py +0 -0
  221. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_isro_bhuvan.py +0 -0
  222. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_jaxa_earth.py +0 -0
  223. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_lightweight_prefetch.py +0 -0
  224. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_map_preview_consolidation.py +0 -0
  225. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_models.py +0 -0
  226. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_monitor.py +0 -0
  227. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_nasa_earthdata_cloud_s3_fix.py +0 -0
  228. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_nasa_earthdata_public_search.py +0 -0
  229. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_network_thinning.py +0 -0
  230. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_noaa_big_data.py +0 -0
  231. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_offset_tracking.py +0 -0
  232. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_opentopography_pointcloud_usgs.py +0 -0
  233. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_optical_offset_tracking.py +0 -0
  234. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_optical_validation_wiring.py +0 -0
  235. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_optical_validator.py +0 -0
  236. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_optical_validator_stac.py +0 -0
  237. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_pgv_integration_contract.py +0 -0
  238. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_pipeline_process_export.py +0 -0
  239. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_planet_asset_type_fix.py +0 -0
  240. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_preflight_gate.py +0 -0
  241. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_preflight_quiet.py +0 -0
  242. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_preflight_spatial_baseline.py +0 -0
  243. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_provider_geometry_audit.py +0 -0
  244. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_provider_scene_disambiguation.py +0 -0
  245. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_providers.py +0 -0
  246. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_ps_selection.py +0 -0
  247. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_raster_collocation_integration.py +0 -0
  248. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_reference_pixel_and_despike.py +0 -0
  249. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_risk_mapper.py +0 -0
  250. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_risk_mapping.py +0 -0
  251. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_sar_pipelines.py +0 -0
  252. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_screen_stack_orchestration.py +0 -0
  253. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_search_download.py +0 -0
  254. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_sentinel_hub_catalog_fix.py +0 -0
  255. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_sign_convention.py +0 -0
  256. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_splitspectrum_diagnostic.py +0 -0
  257. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_stack_selection_consolidation.py +0 -0
  258. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_state.py +0 -0
  259. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_strain_and_fusion.py +0 -0
  260. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_streaming.py +0 -0
  261. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_terrain_corrected_change_pipeline.py +0 -0
  262. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_topo_r2_bug.py +0 -0
  263. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_uq_exporter.py +0 -0
  264. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_utils.py +0 -0
  265. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_vegetation_disturbance_pipeline.py +0 -0
  266. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/tests/test_viz_plot.py +0 -0
  267. {pygeofetch-2.6.9.1 → pygeofetch-2.6.9.3}/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.1.4
23
+ ## [Unreleased] — v2.6.9.3.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.1.4] — 2026-08-25 (latest)
133
+ ## [2.6.9.3.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.1] — 2026-08-24
152
+ ## [2.6.9.3] — 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.1.4 — 2026-07-12"** describing 22+ providers, Sentinel-1C/1D
264
+ **"2.6.9.3.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.1.4 was
266
+ management, 17 spectral indices, and various bug fixes. **2.6.9.3.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.1.4`**, dated
410
- 2026-07-29 and 2026-07-12. **2.6.9.1.4 was only ever released once**,
409
+ 1. **Two different entries were both labeled `2.6.9.3.4`**, dated
410
+ 2026-07-29 and 2026-07-12. **2.6.9.3.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.1
3
+ Version: 2.6.9.3
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.1.1},
374
+ version = {2.6.9.3.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.1.1},
232
+ version = {2.6.9.3.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.1.4"
33
+ __version__ = "2.6.9.3.4"
34
34
  __author__ = "PyGeoFetch Contributors"
35
35
  __license__ = "MIT"
36
36
 
@@ -144,7 +144,7 @@ from pygeofetch.insar.geolocation import (
144
144
  parse_orbit_file,
145
145
  range_offset_to_vertical_displacement,
146
146
  )
147
- from pygeofetch.insar.gpu import gpu_available
147
+ from pygeofetch.insar.gpu import gpu_available, gpu_info
148
148
  from pygeofetch.insar.errors import (
149
149
  BurstProcessingError, CoregistrationError, CropError, FlatEarthError, InputError, ProcessingError,
150
150
  QualityRecord, TopographicPhaseError, AtmosphereError, GeometryProcessingError,
@@ -299,6 +299,7 @@ __all__ = [
299
299
  "ValidationResult",
300
300
  "PairClassification",
301
301
  "gpu_available",
302
+ "gpu_info",
302
303
  "visualize_interferogram",
303
304
  "visualize_unwrapped",
304
305
  "visualize_timeseries",
@@ -80,6 +80,11 @@ class CoregistrationQuality:
80
80
  # Populated by callers that ran refine_offsets_by_coherence() before
81
81
  # fitting; None if the field going into the fit was orbit/DEM-only.
82
82
  mean_coherence: Optional[float] = None
83
+ # Set by fit_geometry_first_offsets(): how the final field was built
84
+ # ("geometry_only", "geometry+constant" or "geometry+linear") and how many
85
+ # orbit/DEM points defined the base field. None for the plain polynomial fit.
86
+ mode: Optional[str] = None
87
+ n_geometry_points: Optional[int] = None
83
88
 
84
89
  def log_summary(self, level: int = logging.INFO) -> None:
85
90
  coh_part = (
@@ -133,6 +138,8 @@ class CoregistrationQuality:
133
138
  "iterations_used": self.iterations_used,
134
139
  "degree": self.degree,
135
140
  "mean_coherence": self.mean_coherence,
141
+ "mode": self.mode,
142
+ "n_geometry_points": self.n_geometry_points,
136
143
  }
137
144
 
138
145
 
@@ -1004,6 +1011,9 @@ def fit_offset_polynomial_robust(
1004
1011
  degree: int = 1,
1005
1012
  max_iterations: int = 2,
1006
1013
  rms_threshold: Optional[float] = None,
1014
+ outlier_rule: str = "mad",
1015
+ mad_k: float = 3.0,
1016
+ mad_floor_px: float = 0.05,
1007
1017
  ):
1008
1018
  """
1009
1019
  Fit row and column offset polynomials with SNAP WarpOp-style
@@ -1033,6 +1043,15 @@ def fit_offset_polynomial_robust(
1033
1043
  each GCP, in pixels.
1034
1044
  degree: Warp polynomial order (1, 2, or 3).
1035
1045
  max_iterations: Number of mean-RMS filtering passes (SNAP: 2).
1046
+ outlier_rule: "mad" (default): reject GCPs whose RMS exceeds
1047
+ median + mad_k * 1.4826 * MAD (scale floored at
1048
+ mad_floor_px), and never reduce the set below the
1049
+ minimum the degree needs. "mean": SNAP WarpOp's
1050
+ rule (reject every GCP above the mean RMS). The mean
1051
+ rule removes roughly half the points on every pass
1052
+ even when all are good, which on a sparse
1053
+ low-coherence GCP set leaves 3 points and a fit that
1054
+ passes exactly through their noise.
1036
1055
  rms_threshold: Optional final absolute RMS cutoff, in pixels.
1037
1056
  None (default) skips this and relies only on
1038
1057
  the iterative mean-RMS filtering above, which
@@ -1102,8 +1121,21 @@ def fit_offset_polynomial_robust(
1102
1121
  if iteration == max_iterations:
1103
1122
  break
1104
1123
 
1105
- mean_rms = float(np.mean(rms))
1106
- is_outlier = rms > mean_rms
1124
+ if outlier_rule == "mean":
1125
+ is_outlier = rms > float(np.mean(rms))
1126
+ elif outlier_rule == "mad":
1127
+ med = float(np.median(rms))
1128
+ scale = max(1.4826 * float(np.median(np.abs(rms - med))), mad_floor_px)
1129
+ is_outlier = rms > med + mad_k * scale
1130
+ # never reject below what the degree needs: drop the worst first
1131
+ if rms.size - int(np.count_nonzero(is_outlier)) < min_gcps:
1132
+ n_drop = max(rms.size - min_gcps, 0)
1133
+ worst = np.argsort(rms)[::-1][:n_drop]
1134
+ cand = np.zeros_like(is_outlier)
1135
+ cand[worst] = True
1136
+ is_outlier = cand & is_outlier
1137
+ else:
1138
+ raise ValueError(f"outlier_rule must be 'mad' or 'mean', got {outlier_rule!r}")
1107
1139
  if not np.any(is_outlier):
1108
1140
  break # converged -- nothing left to reject
1109
1141
 
@@ -1159,6 +1191,150 @@ def fit_offset_polynomial_robust(
1159
1191
  return row_fn, col_fn, quality
1160
1192
 
1161
1193
 
1194
+ def fit_geometry_first_offsets(
1195
+ geom_rows,
1196
+ geom_cols,
1197
+ geom_offset_rows,
1198
+ geom_offset_cols,
1199
+ xc_rows,
1200
+ xc_cols,
1201
+ xc_offset_rows,
1202
+ xc_offset_cols,
1203
+ degree: int = 1,
1204
+ min_points_linear: int = 8,
1205
+ min_points_constant: int = 2,
1206
+ mad_k: float = 3.0,
1207
+ mad_floor_px: float = 0.05,
1208
+ max_iterations: int = 2,
1209
+ ):
1210
+ """
1211
+ Build the final offset field from the orbit/DEM geometry, corrected by
1212
+ image content only as far as the image content can support.
1213
+
1214
+ The orbit/DEM field is dense (tens of points) and physically grounded
1215
+ but can carry a bias from orbit timing or DEM datum errors. Cross-
1216
+ correlation offsets are image-based but sparse and noisy at low
1217
+ coherence (at gamma 0.3 only a handful of windows pass the threshold).
1218
+ Fitting a plane through 3-5 of them, as a free polynomial, gives a
1219
+ field that passes through their noise and extrapolates it across the
1220
+ scene. Instead:
1221
+
1222
+ 1. Fit the geometry points with a degree-`degree` polynomial (g).
1223
+ 2. Take d = xcorr offset - g at the cross-correlation points.
1224
+ 3. Reject outliers in d with median + k*MAD (at most `max_iterations`
1225
+ passes, never below `min_points_constant`).
1226
+ 4. Correct g by a model only as rich as the surviving points support:
1227
+ >= min_points_linear points -> degree-1 correction,
1228
+ >= min_points_constant -> constant (median) correction,
1229
+ otherwise -> none (geometry only).
1230
+
1231
+ Returns (row_fn, col_fn, quality): evaluable f(row, col) -> offset, and
1232
+ a CoregistrationQuality with .mode and .n_gcps_final = number of
1233
+ cross-correlation points that support the correction.
1234
+ """
1235
+ import numpy as np
1236
+
1237
+ gr = np.asarray(geom_rows, dtype=np.float64)
1238
+ gc = np.asarray(geom_cols, dtype=np.float64)
1239
+ gor = np.asarray(geom_offset_rows, dtype=np.float64)
1240
+ goc = np.asarray(geom_offset_cols, dtype=np.float64)
1241
+ xr = np.asarray(xc_rows, dtype=np.float64)
1242
+ xcl = np.asarray(xc_cols, dtype=np.float64)
1243
+ xor_ = np.asarray(xc_offset_rows, dtype=np.float64)
1244
+ xoc = np.asarray(xc_offset_cols, dtype=np.float64)
1245
+
1246
+ deg = degree
1247
+ while deg > 1 and gr.size < _min_points_for_degree(deg):
1248
+ deg -= 1
1249
+ if gr.size < _min_points_for_degree(deg):
1250
+ raise RuntimeError(
1251
+ f"fit_geometry_first_offsets: only {gr.size} orbit/DEM points; "
1252
+ f"a degree-{deg} geometry fit needs {_min_points_for_degree(deg)}."
1253
+ )
1254
+ g_row = fit_offset_polynomial(gr, gc, gor, degree=deg)
1255
+ g_col = fit_offset_polynomial(gr, gc, goc, degree=deg)
1256
+
1257
+ n_xc = int(xr.size)
1258
+ dr = np.empty(0)
1259
+ dc = np.empty(0)
1260
+ keep = np.zeros(n_xc, dtype=bool)
1261
+ iterations_used = 0
1262
+ if n_xc:
1263
+ dr = xor_ - g_row(xr, xcl)
1264
+ dc = xoc - g_col(xr, xcl)
1265
+ keep = np.ones(n_xc, dtype=bool)
1266
+ for it in range(max_iterations):
1267
+ idx = np.nonzero(keep)[0]
1268
+ if idx.size <= min_points_constant:
1269
+ break
1270
+ mr, mc = float(np.median(dr[idx])), float(np.median(dc[idx]))
1271
+ dist = np.hypot(dr[idx] - mr, dc[idx] - mc)
1272
+ med = float(np.median(dist))
1273
+ scale = max(1.4826 * float(np.median(np.abs(dist - med))), mad_floor_px)
1274
+ bad = dist > med + mad_k * scale
1275
+ if not np.any(bad) or idx.size - int(bad.sum()) < min_points_constant:
1276
+ break
1277
+ keep[idx[bad]] = False
1278
+ iterations_used = it + 1
1279
+
1280
+ idx = np.nonzero(keep)[0]
1281
+ n_support = int(idx.size)
1282
+
1283
+ def _zero(r, c):
1284
+ return np.zeros_like(np.asarray(r, dtype=np.float64) + np.asarray(c, dtype=np.float64))
1285
+
1286
+ corr_row = corr_col = _zero
1287
+ mode = "geometry_only"
1288
+ if n_support >= min_points_linear:
1289
+ try:
1290
+ corr_row = fit_offset_polynomial(xr[idx], xcl[idx], dr[idx], degree=1)
1291
+ corr_col = fit_offset_polynomial(xr[idx], xcl[idx], dc[idx], degree=1)
1292
+ mode = "geometry+linear"
1293
+ except Exception:
1294
+ corr_row = corr_col = _zero
1295
+ if mode == "geometry_only" and n_support >= min_points_constant:
1296
+ cr, cc_ = float(np.median(dr[idx])), float(np.median(dc[idx]))
1297
+
1298
+ def corr_row(r, c, _v=cr):
1299
+ return np.full_like(np.asarray(r, dtype=np.float64) + np.asarray(c, dtype=np.float64), _v)
1300
+
1301
+ def corr_col(r, c, _v=cc_):
1302
+ return np.full_like(np.asarray(r, dtype=np.float64) + np.asarray(c, dtype=np.float64), _v)
1303
+
1304
+ mode = "geometry+constant"
1305
+
1306
+ def row_fn(r, c):
1307
+ return g_row(r, c) + corr_row(r, c)
1308
+
1309
+ def col_fn(r, c):
1310
+ return g_col(r, c) + corr_col(r, c)
1311
+
1312
+ if n_support:
1313
+ er = row_fn(xr[idx], xcl[idx]) - xor_[idx]
1314
+ ec = col_fn(xr[idx], xcl[idx]) - xoc[idx]
1315
+ rms = np.sqrt(er**2 + ec**2)
1316
+ quality = CoregistrationQuality(
1317
+ n_gcps_initial=n_xc, n_gcps_final=n_support, n_gcps_rejected=n_xc - n_support,
1318
+ rms_mean=float(np.mean(rms)), rms_std=float(np.std(rms)),
1319
+ row_residual_mean=float(np.mean(er)), row_residual_std=float(np.std(er)),
1320
+ col_residual_mean=float(np.mean(ec)), col_residual_std=float(np.std(ec)),
1321
+ per_point_rms=rms.tolist(), iterations_used=iterations_used, degree=deg,
1322
+ mode=mode, n_geometry_points=int(gr.size))
1323
+ else:
1324
+ quality = CoregistrationQuality(
1325
+ n_gcps_initial=n_xc, n_gcps_final=0, n_gcps_rejected=n_xc,
1326
+ rms_mean=0.0, rms_std=0.0, row_residual_mean=0.0, row_residual_std=0.0,
1327
+ col_residual_mean=0.0, col_residual_std=0.0, per_point_rms=[],
1328
+ iterations_used=iterations_used, degree=deg, mode=mode,
1329
+ n_geometry_points=int(gr.size))
1330
+ logger.info(
1331
+ "Geometry-first coregistration: %s from %d orbit/DEM points (degree-%d); %d/%d "
1332
+ "cross-correlation points support the correction%s",
1333
+ mode, gr.size, deg, n_support, n_xc,
1334
+ f", residual RMS {quality.rms_mean:.3f} px" if n_support else " (image content did not constrain it)")
1335
+ return row_fn, col_fn, quality
1336
+
1337
+
1162
1338
  def resample_with_offset_field(
1163
1339
  data,
1164
1340
  row_offset_fn,
@@ -1325,4 +1501,4 @@ def _linspace(start, stop, n):
1325
1501
  if n == 1:
1326
1502
  return [start]
1327
1503
  step = (stop - start) / (n - 1)
1328
- return [start + i * step for i in range(n)]
1504
+ return [start + i * step for i in range(n)]
@@ -0,0 +1,155 @@
1
+ """
2
+ GPU/CPU array module abstraction for the InSAR pipeline.
3
+
4
+ Coherence estimation (windowed cross-correlation over the full scene)
5
+ and SBAS inversion (a single large matrix solve over every pixel at
6
+ once) are the two steps that genuinely benefit from GPU acceleration
7
+ at scale — both are already vectorized, large-array operations, not
8
+ per-pixel Python loops, which is exactly the shape of computation
9
+ CuPy accelerates well.
10
+
11
+ Usage::
12
+
13
+ from pygeofetch.insar.gpu import get_array_module
14
+
15
+ xp, ndi, using_gpu = get_array_module(prefer_gpu=True)
16
+ # xp is either cupy or numpy; ndi is the matching ndimage module
17
+ # (cupyx.scipy.ndimage or scipy.ndimage). Code written against xp/ndi
18
+ # works unchanged on either backend, since CuPy's array API mirrors
19
+ # numpy's directly.
20
+
21
+ Honesty note (important, not boilerplate): this module's CPU fallback
22
+ path and GPU-detection logic are both directly tested and confirmed
23
+ working. The actual GPU-accelerated numerical path (real CuPy array
24
+ operations executing on real CUDA hardware) has NOT been verified
25
+ against real GPU hardware — no GPU was available in the environment
26
+ this was built and tested in. The array operations are written to
27
+ mirror the existing, already-verified numpy/scipy logic line-for-line
28
+ specifically to minimize the risk of a behavioral difference, but
29
+ "correct by construction against a numpy-mirroring API" is not the
30
+ same claim as "confirmed correct by execution." Test on real GPU
31
+ hardware before relying on this for production results, and please
32
+ report back either way — that's a real gap in this module's
33
+ verification, not a formality.
34
+ """
35
+
36
+ from __future__ import annotations
37
+
38
+ import logging
39
+ from typing import Any, Tuple
40
+
41
+ logger = logging.getLogger("pygeofetch.insar.gpu")
42
+
43
+ _gpu_checked = False
44
+ _gpu_available = False
45
+ _gpu_reason = ""
46
+ _gpu_name = ""
47
+
48
+
49
+ def _probe() -> None:
50
+ """Run the GPU check once and record WHY it failed, not just that it did."""
51
+ global _gpu_checked, _gpu_available, _gpu_reason, _gpu_name
52
+ if _gpu_checked:
53
+ return
54
+ _gpu_checked = True
55
+ try:
56
+ import cupy as cp
57
+ except ImportError as exc:
58
+ _gpu_reason = (
59
+ "the cupy package is not installed in this Python environment "
60
+ f"({exc}). Install the build that matches your CUDA version, e.g. "
61
+ "'pip install cupy-cuda12x' (CUDA 12) or 'pip install cupy-cuda13x' (CUDA 13); "
62
+ "'nvidia-smi' shows your CUDA version. torch having CUDA does not give cupy a GPU."
63
+ )
64
+ return
65
+ except Exception as exc: # cupy present but broken (wrong CUDA libraries, ...)
66
+ _gpu_reason = f"importing cupy failed: {type(exc).__name__}: {exc}"
67
+ return
68
+ try:
69
+ if not bool(cp.cuda.is_available()):
70
+ _gpu_reason = (
71
+ "cupy is installed but reports no usable CUDA device "
72
+ "(driver missing or too old for this cupy build, or the process cannot see the GPU)."
73
+ )
74
+ return
75
+ n = int(cp.cuda.runtime.getDeviceCount())
76
+ if n < 1:
77
+ _gpu_reason = "cupy found 0 CUDA devices"
78
+ return
79
+ props = cp.cuda.runtime.getDeviceProperties(0)
80
+ name = props.get("name", b"")
81
+ _gpu_name = name.decode() if isinstance(name, bytes) else str(name)
82
+ # Prove it by computing something: is_available() can be True while kernels still fail
83
+ # (for example a cupy build for a different CUDA major version).
84
+ float(cp.asarray([1.0, 2.0]).sum())
85
+ _gpu_available = True
86
+ except Exception as exc:
87
+ _gpu_reason = f"cupy could not run on the GPU: {type(exc).__name__}: {exc}"
88
+ _gpu_available = False
89
+
90
+
91
+ def gpu_available() -> bool:
92
+ """True only when a CUDA device exists AND a trivial cupy computation runs on it
93
+ (not just whether the cupy package imports, which it does with no GPU present)."""
94
+ _probe()
95
+ return _gpu_available
96
+
97
+
98
+ def gpu_info() -> dict:
99
+ """Why the GPU is or is not used: {"available", "device", "reason", "cupy", "torch_cuda"}.
100
+ Call this in a notebook cell when use_gpu=True does not do what you expect."""
101
+ _probe()
102
+ info = {"available": _gpu_available, "device": _gpu_name or None,
103
+ "reason": _gpu_reason or None, "cupy": None, "torch_cuda": None}
104
+ try:
105
+ import cupy as cp
106
+ info["cupy"] = cp.__version__
107
+ except Exception:
108
+ pass
109
+ try:
110
+ import torch
111
+ info["torch_cuda"] = bool(torch.cuda.is_available())
112
+ except Exception:
113
+ pass
114
+ return info
115
+
116
+
117
+ def get_array_module(prefer_gpu: bool = True) -> Tuple[Any, Any, bool]:
118
+ """
119
+ Returns (xp, ndimage_module, using_gpu).
120
+
121
+ prefer_gpu=True and a working GPU -> cupy + cupyx.scipy.ndimage; otherwise numpy + scipy.
122
+ When the GPU was asked for but cannot be used, the reason is logged once at WARNING.
123
+ """
124
+ if prefer_gpu and gpu_available():
125
+ import cupy as cp
126
+ from cupyx.scipy import ndimage as gpu_ndimage
127
+
128
+ return cp, gpu_ndimage, True
129
+
130
+ import numpy as np
131
+ from scipy import ndimage
132
+
133
+ if prefer_gpu:
134
+ _warn_once()
135
+ return np, ndimage, False
136
+
137
+
138
+ _warned = False
139
+
140
+
141
+ def _warn_once() -> None:
142
+ global _warned
143
+ if _warned:
144
+ return
145
+ _warned = True
146
+ logger.warning("use_gpu=True but the GPU is not being used: %s", _gpu_reason or "unknown reason")
147
+
148
+
149
+ def to_numpy(arr: Any) -> Any:
150
+ """Move an array back to host memory if it's a CuPy array; a no-op
151
+ for numpy arrays. Use this at the boundary between GPU-accelerated
152
+ steps and the rest of the pipeline, which is not GPU-aware."""
153
+ if hasattr(arr, "get"): # cupy.ndarray has .get(), numpy.ndarray does not
154
+ return arr.get()
155
+ return arr