PyGeoFetch 2.6.9.0__tar.gz → 2.6.9.1__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.
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/CHANGELOG.md +7 -7
- {pygeofetch-2.6.9.0/pygeofetch.egg-info → pygeofetch-2.6.9.1}/PKG-INFO +2 -2
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/README.md +1 -1
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/__init__.py +1 -1
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/__init__.py +17 -34
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/errors.py +12 -0
- pygeofetch-2.6.9.1/pygeofetch/insar/hybrid_unwrap.py +324 -0
- pygeofetch-2.6.9.1/pygeofetch/insar/learned_unwrap.py +905 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/meta.yaml +1 -1
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1/pygeofetch.egg-info}/PKG-INFO +2 -2
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch.egg-info/SOURCES.txt +2 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pyproject.toml +1 -1
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/LICENSE +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/MANIFEST.in +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/cli/__init__.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/cli/auth_commands.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/cli/classify_commands.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/cli/config_commands.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/cli/download_commands.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/cli/index_commands.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/cli/main.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/cli/monitor_commands.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/cli/multisensor_commands.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/cli/optical_commands.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/cli/pipeline_process_commands.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/cli/postprocess_commands.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/cli/preprocess_commands.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/cli/sar_commands.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/cli/scale_commands.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/cli/search_commands.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/config/__init__.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/config/defaults.yaml +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/config/settings.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/core/__init__.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/core/authenticator.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/core/cache_manager.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/core/chunked_processor.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/core/data_formats/__init__.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/core/data_formats/geoparquet_io.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/core/data_formats/zarr_io.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/core/data_organizer.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/core/downloader.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/core/engine.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/core/logging.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/core/monitor.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/core/orbits.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/core/progress.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/core/scheduler.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/core/searcher.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/core/state.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/geotech/__init__.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/geotech/risk_mapper.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/advanced_safeguards.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/analysis.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/annotation.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/atmosphere.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/atmosphere_core.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/auto_fallback.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/coregister.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/deburst.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/esd.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/extraction.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/feasibility.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/flatearth.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/geolocation.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/gpu.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/interferogram.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/ionosphere.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/network_thinning.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/offset_geometry.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/offset_tracking.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/preflight.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/provenance.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/ps_eval.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/ps_gnn_pygeofetch_selector.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/ps_selection.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/ps_stack.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/radar_geometry.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/splitspectrum_diagnostic.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/stack_selection.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/synthetic.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/timeseries.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/topo.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/unwrap.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/validate.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/visualize.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/insar/workflow.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/models/__init__.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/models/download_task.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/models/satellite_data.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/models/search_query.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/models/stream_options.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/models/user_auth.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/multisensor/__init__.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/multisensor/_init.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/multisensor/dem_differencing.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/multisensor/flood_mapping.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/multisensor/insar_optical_fusion.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/multisensor/terrain_corrected_change.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/multisensor/vegetation_disturbance.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/optical/__init__.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/optical/offset_tracking.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/processing/__init__.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/processing/base.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/processing/batch.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/processing/classification.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/processing/indices.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/processing/pipeline.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/processing/postprocessor.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/processing/preprocessor.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/processing/sar.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/processing/uq_exporter.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/processor/__init__.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/processor/indices.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/processor/landsat.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/processor/loader.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/processor/stacker.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/processor/timeseries.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/__init__.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/airbus_oneatlas.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/alaska_satellite_facility.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/aws_earth.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/base.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/copernicus.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/copernicus_nodes.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/digitalglobe.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/earth_explorer_additional.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/element84.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/eodag_provider.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/esa_scihub.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/geoserver_generic.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/google_earth_engine.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/inpe_cbers.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/isro_bhuvan.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/jaxa_earth.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/maxar_gbdx.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/nasa_earthdata.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/nasa_earthdata_cloud.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/noaa_big_data.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/opentopography.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/planet.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/planetary_computer.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/sentinel_hub.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/terrabotics.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/providers/usgs.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/sar/__init__.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/sar/_native.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/sar/_ost.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/sar/_sarxarray.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/sar/extraction.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/sar/math.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/sar/pipelines.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/sar/processor.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/stac_compute/__init__.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/stac_compute/burst_streaming.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/stac_compute/cog_streamer.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/stac_compute/lightweight_prefetch.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/stac_compute/window_calculator.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/streaming/__init__.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/streaming/scene.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/streaming/windowed.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/utils/__init__.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/utils/file_utils.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/utils/gcp_recovery.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/utils/geo_utils.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/utils/geocoding.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/utils/logging_setup.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/utils/retry_handler.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/utils/sar_math.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/utils/validators.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/validation/__init__.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/validation/optical_validator.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/viz/__init__.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/viz/insar.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/viz/map.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch/viz/plot.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch.egg-info/dependency_links.txt +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch.egg-info/entry_points.txt +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch.egg-info/not-zip-safe +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch.egg-info/requires.txt +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/pygeofetch.egg-info/top_level.txt +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/setup.cfg +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_advanced_safeguards.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_airbus_oneatlas.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_alaska_satellite_facility.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_atmospheric_circular_regression.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_auto_fallback.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_auto_fallback_fixed.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_build_sbas_network-new.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_build_sbas_network.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_burst_metadata.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_burst_processing_integration.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_burst_sync_large_gap.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_burst_sync_prescreening.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_burst_synchronization.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_circuit_breaker_wiring.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_cli_optical_validation.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_copernicus_nodes.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_coregister_integration.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_coregister_upgrades (1).py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_coregister_upgrades.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_credential_encryption.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_data_organizer.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_dem_differencing_pipeline.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_digitalglobe.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_earth_explorer_additional.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_era5_atmospheric_correction.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_esa_scihub.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_extraction.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_flat_earth_phase.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_flood_mapping_pipeline.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_gcp_reprojection.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_geology_indices_and_rvi_fix.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_geoserver_generic.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_google_earth_engine.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_inpe_cbers.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_insar.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_insar_optical_fusion_pipeline.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_ionosphere.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_isro_bhuvan.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_jaxa_earth.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_lightweight_prefetch.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_map_preview_consolidation.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_models.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_monitor.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_nasa_earthdata_cloud_s3_fix.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_nasa_earthdata_public_search.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_network_thinning.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_noaa_big_data.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_offset_tracking.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_opentopography_pointcloud_usgs.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_optical_offset_tracking.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_optical_validation_wiring.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_optical_validator.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_optical_validator_stac.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_pgv_integration_contract.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_pipeline_process_export.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_planet_asset_type_fix.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_preflight_gate.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_preflight_quiet.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_preflight_spatial_baseline.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_provider_geometry_audit.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_provider_scene_disambiguation.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_providers.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_ps_selection.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_raster_collocation_integration.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_reference_pixel_and_despike.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_risk_mapper.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_risk_mapping.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_sar_pipelines.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_screen_stack_orchestration.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_search_download.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_sentinel_hub_catalog_fix.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_sign_convention.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_splitspectrum_diagnostic.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_stack_selection_consolidation.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_state.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_strain_and_fusion.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_streaming.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_terrain_corrected_change_pipeline.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_topo_r2_bug.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_uq_exporter.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_utils.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_vegetation_disturbance_pipeline.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/tests/test_viz_plot.py +0 -0
- {pygeofetch-2.6.9.0 → pygeofetch-2.6.9.1}/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.
|
|
23
|
+
## [Unreleased] — v2.6.9.1.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.
|
|
133
|
+
## [2.6.9.1.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.
|
|
152
|
+
## [2.6.9.1] — 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.
|
|
264
|
+
**"2.6.9.1.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.
|
|
266
|
+
management, 17 spectral indices, and various bug fixes. **2.6.9.1.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.
|
|
410
|
-
2026-07-29 and 2026-07-12. **2.6.9.
|
|
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**,
|
|
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.
|
|
3
|
+
Version: 2.6.9.1
|
|
4
4
|
Summary: Universal satellite data pipeline + geospatial processing platform
|
|
5
5
|
Author-email: Samuel Appiah Kubi <appiahkubis14@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -371,7 +371,7 @@ If you use PyGeoFetch in your research or operational work, please cite it using
|
|
|
371
371
|
title = {PyGeoFetch: A Unified Python Framework for Multi-Provider Satellite Data Acquisition, Pre-download Quality Control, and Geospatial Processing},
|
|
372
372
|
year = {2026},
|
|
373
373
|
publisher = {Zenodo},
|
|
374
|
-
version = {2.6.9.
|
|
374
|
+
version = {2.6.9.1.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.
|
|
232
|
+
version = {2.6.9.1.1},
|
|
233
233
|
doi = {10.5281/zenodo.22087230},
|
|
234
234
|
url = {https://doi.org/10.5281/zenodo.22087230}
|
|
235
235
|
}
|
|
@@ -148,6 +148,12 @@ from pygeofetch.insar.gpu import gpu_available
|
|
|
148
148
|
from pygeofetch.insar.errors import (
|
|
149
149
|
BurstProcessingError, CoregistrationError, CropError, FlatEarthError, InputError, ProcessingError,
|
|
150
150
|
QualityRecord, TopographicPhaseError, AtmosphereError, GeometryProcessingError,
|
|
151
|
+
UnwrapError, ModelLoadError, UnwrapDependencyError,
|
|
152
|
+
)
|
|
153
|
+
from pygeofetch.insar.hybrid_unwrap import HybridConfig, HybridUnwrapper, HybridUnwrapResult, tie_components
|
|
154
|
+
from pygeofetch.insar.learned_unwrap import (
|
|
155
|
+
LearnedUnwrapConfig, LearnedUnwrapper, LearnedUnwrapResult, UnwrapModel, load_unwrap_model,
|
|
156
|
+
unwrap_diagnostics, unwrap_interferograms,
|
|
151
157
|
)
|
|
152
158
|
from pygeofetch.insar.interferogram import InterferogramGenerator, InterferogramResult
|
|
153
159
|
from pygeofetch.insar.ionosphere import IonosphericCorrector, parse_ionex
|
|
@@ -255,28 +261,11 @@ from pygeofetch.insar.visualize import (
|
|
|
255
261
|
from pygeofetch.insar.workflow import InSARProject
|
|
256
262
|
|
|
257
263
|
__all__ = [
|
|
258
|
-
"ProcessingError",
|
|
259
|
-
"
|
|
260
|
-
"
|
|
261
|
-
"
|
|
262
|
-
"
|
|
263
|
-
"TopographicPhaseError",
|
|
264
|
-
"CropError",
|
|
265
|
-
"QualityRecord",
|
|
266
|
-
"PSStack",
|
|
267
|
-
"PSSelection",
|
|
268
|
-
"PSSelector",
|
|
269
|
-
"ADISelector",
|
|
270
|
-
"build_ps_stack",
|
|
271
|
-
"build_stack",
|
|
272
|
-
"select_ps",
|
|
273
|
-
"compare_selections",
|
|
274
|
-
"holdout_stability",
|
|
275
|
-
"residual_phase_coherence",
|
|
276
|
-
"stability_weights",
|
|
277
|
-
"choose_master",
|
|
278
|
-
"boost_coherence_with_ps",
|
|
279
|
-
"compare_velocity_maps",
|
|
264
|
+
"ProcessingError", "InputError", "CoregistrationError", "BurstProcessingError", "FlatEarthError",
|
|
265
|
+
"TopographicPhaseError", "CropError", "QualityRecord",
|
|
266
|
+
"PSStack", "PSSelection", "PSSelector", "ADISelector", "build_ps_stack", "build_stack",
|
|
267
|
+
"select_ps", "compare_selections", "holdout_stability", "residual_phase_coherence",
|
|
268
|
+
"stability_weights", "choose_master", "boost_coherence_with_ps", "compare_velocity_maps",
|
|
280
269
|
"InterferogramGenerator",
|
|
281
270
|
"InterferogramResult",
|
|
282
271
|
"PhaseUnwrapper",
|
|
@@ -299,18 +288,12 @@ __all__ = [
|
|
|
299
288
|
"despike_velocity",
|
|
300
289
|
"InterferogramPair",
|
|
301
290
|
"TimeSeriesResult",
|
|
302
|
-
"AtmosphericCorrector",
|
|
303
|
-
"
|
|
304
|
-
"
|
|
305
|
-
"
|
|
306
|
-
"
|
|
307
|
-
"
|
|
308
|
-
"PixelFrame",
|
|
309
|
-
"compute_geometry_nodes",
|
|
310
|
-
"apply_geometric_phase",
|
|
311
|
-
"heights_on_output_grid",
|
|
312
|
-
"AtmosphereError",
|
|
313
|
-
"GeometryProcessingError",
|
|
291
|
+
"AtmosphericCorrector", "estimate_height_slopes_per_date", "fit_height_dependence", "structure_function",
|
|
292
|
+
"variance_reduction", "GeometryNodes", "PixelFrame", "compute_geometry_nodes", "apply_geometric_phase",
|
|
293
|
+
"heights_on_output_grid", "AtmosphereError", "GeometryProcessingError",
|
|
294
|
+
"UnwrapError", "ModelLoadError", "UnwrapDependencyError", "LearnedUnwrapConfig", "LearnedUnwrapper",
|
|
295
|
+
"LearnedUnwrapResult", "UnwrapModel", "load_unwrap_model", "unwrap_diagnostics", "unwrap_interferograms",
|
|
296
|
+
"HybridConfig", "HybridUnwrapper", "HybridUnwrapResult", "tie_components",
|
|
314
297
|
"SLCExtractor",
|
|
315
298
|
"DataValidator",
|
|
316
299
|
"ValidationResult",
|
|
@@ -71,6 +71,18 @@ class CropError(ProcessingError):
|
|
|
71
71
|
"""The AOI crop was requested and could not be done (the caller would otherwise get a different extent than asked)."""
|
|
72
72
|
|
|
73
73
|
|
|
74
|
+
class UnwrapError(ProcessingError):
|
|
75
|
+
"""Phase unwrapping was requested and failed (a tile could not be predicted, the output is not finite, no valid pixels)."""
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
class ModelLoadError(UnwrapError):
|
|
79
|
+
"""A learned-unwrapping checkpoint could not be loaded or does not match the model it is meant for."""
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
class UnwrapDependencyError(UnwrapError):
|
|
83
|
+
"""A package a learned unwrapper needs (torch, pyunwrap) is not installed."""
|
|
84
|
+
|
|
85
|
+
|
|
74
86
|
# ---------------------------------------------------------------------------------------------------------
|
|
75
87
|
|
|
76
88
|
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
"""Hybrid phase unwrapping: SNAPHU where it is reliable, the pyunwrap network where it is not.
|
|
2
|
+
|
|
3
|
+
What is different from pyunwrap's own ``HybridUnwrapper``
|
|
4
|
+
---------------------------------------------------------
|
|
5
|
+
Both unwrappers return an integer cycle map ``k`` that is only defined up to a whole number of cycles, and SNAPHU
|
|
6
|
+
defines it separately for every connected component (a real run on a scene split by a dead band gave two components at
|
|
7
|
+
offsets of 0 and -1 cycles from the truth). pyunwrap's hybrid picks ``k`` per pixel from one method or the other
|
|
8
|
+
without removing those offsets, so every boundary between the two sources is a cycle jump, and its own "SNAPHU +
|
|
9
|
+
do-nothing" control loses 15 points to SNAPHU alone on the hard scenes (47.4 % against 63.2 %).
|
|
10
|
+
|
|
11
|
+
Here every SNAPHU component is tied to the network's global cycle frame before any pixel is exchanged: the offset is
|
|
12
|
+
the most common whole-cycle difference ``k_network - k_snaphu`` over pixels where both are trusted and coherence is
|
|
13
|
+
at least ``offset_min_coherence``. A component whose pixels do not agree on one offset (``min_offset_agreement``) or
|
|
14
|
+
that is too small is *not* tied; it keeps SNAPHU's own offset, is labelled as such (provenance 3, its own
|
|
15
|
+
``conncomp`` label) and raises the flag ``component_offset_uncertain``.
|
|
16
|
+
|
|
17
|
+
Which method supplies which pixel
|
|
18
|
+
---------------------------------
|
|
19
|
+
* coherence at or below ``low_coherence``: the network (SNAPHU integrates through noise there);
|
|
20
|
+
* pixels SNAPHU left out of every component (``conncomp == 0``): the network, if it trusts them;
|
|
21
|
+
* everything else: SNAPHU, shifted into the network's frame.
|
|
22
|
+
|
|
23
|
+
A pixel is reported as reliable only if the method that supplied it reports it reliable. The network's own gate
|
|
24
|
+
(coherence >= 0.3 by default) therefore still applies to the pixels it supplies, so the hybrid completes the field at
|
|
25
|
+
very low coherence but does not claim those pixels.
|
|
26
|
+
|
|
27
|
+
Defaults and what they rest on
|
|
28
|
+
------------------------------
|
|
29
|
+
``low_coherence = 0.15`` is the threshold chosen on the validation scenes in the training run's hybrid summary
|
|
30
|
+
(``low_threshold_chosen_on_val``). Those scenes are synthetic. Nothing here was tuned on real data, and the same
|
|
31
|
+
summary shows the tuned hybrid only equal to SNAPHU on its hard test scenes (63.3 % against 63.2 %). Expect the hybrid to
|
|
32
|
+
differ from SNAPHU mainly by tying components together and by filling regions SNAPHU dropped.
|
|
33
|
+
|
|
34
|
+
Error policy: ``on_error="raise"`` (default) raises ``UnwrapError`` if either method fails; ``"degrade"`` returns the
|
|
35
|
+
surviving method's result, records the failure and grades the result ``degraded``. If both fail it always raises.
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
from __future__ import annotations
|
|
39
|
+
|
|
40
|
+
import logging
|
|
41
|
+
import time
|
|
42
|
+
from dataclasses import asdict, dataclass
|
|
43
|
+
from pathlib import Path
|
|
44
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
45
|
+
|
|
46
|
+
import numpy as np
|
|
47
|
+
|
|
48
|
+
from .errors import InputError, QualityRecord, UnwrapError
|
|
49
|
+
from .learned_unwrap import (
|
|
50
|
+
TWO_PI,
|
|
51
|
+
LearnedUnwrapper,
|
|
52
|
+
LearnedUnwrapResult,
|
|
53
|
+
_as_wrapped_phase,
|
|
54
|
+
unwrap_diagnostics,
|
|
55
|
+
)
|
|
56
|
+
from .unwrap import PhaseUnwrapper
|
|
57
|
+
|
|
58
|
+
logger = logging.getLogger("pygeofetch.insar.hybrid_unwrap")
|
|
59
|
+
|
|
60
|
+
PROV_NONE, PROV_CLASSICAL, PROV_LEARNED, PROV_CLASSICAL_UNTIED = 0, 1, 2, 3
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
@dataclass(frozen=True)
|
|
64
|
+
class HybridConfig:
|
|
65
|
+
low_coherence: float = 0.15 # at or below: the network supplies k (chosen on synthetic validation scenes)
|
|
66
|
+
learned_fills_classical_gaps: bool = True # pixels outside every SNAPHU component go to the network
|
|
67
|
+
offset_min_coherence: float = 0.4 # pixels used to tie a component to the network's frame
|
|
68
|
+
min_offset_pixels: int = 200 # fewer trusted pixels than this: the component is not tied
|
|
69
|
+
min_offset_agreement: float = 0.5 # share of those pixels that must sit at the modal offset
|
|
70
|
+
on_error: str = "raise"
|
|
71
|
+
|
|
72
|
+
def __post_init__(self) -> None:
|
|
73
|
+
if not 0.0 <= self.low_coherence <= 1.0:
|
|
74
|
+
raise ValueError("low_coherence must be in [0, 1]")
|
|
75
|
+
if not 0.0 < self.min_offset_agreement <= 1.0:
|
|
76
|
+
raise ValueError("min_offset_agreement must be in (0, 1]")
|
|
77
|
+
if self.min_offset_pixels < 1:
|
|
78
|
+
raise ValueError("min_offset_pixels must be >= 1")
|
|
79
|
+
if self.on_error not in ("raise", "degrade"):
|
|
80
|
+
raise ValueError("on_error must be 'raise' or 'degrade'")
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
@dataclass
|
|
84
|
+
class HybridUnwrapResult(LearnedUnwrapResult):
|
|
85
|
+
"""``LearnedUnwrapResult`` plus ``provenance``: 0 none, 1 SNAPHU (tied), 2 network, 3 SNAPHU (not tied).
|
|
86
|
+
|
|
87
|
+
``ambiguity_map`` is the merged cycle map. ``conncomp`` is 0 where the supplying method does not trust the pixel.
|
|
88
|
+
"""
|
|
89
|
+
|
|
90
|
+
provenance: Any = None
|
|
91
|
+
|
|
92
|
+
def save(self, output_dir: Union[str, Path], save_png: bool = False, mask_unreliable: bool = True) -> Dict[str, Path]:
|
|
93
|
+
paths = super().save(output_dir, save_png=save_png, mask_unreliable=mask_unreliable)
|
|
94
|
+
if self.provenance is not None:
|
|
95
|
+
import rasterio
|
|
96
|
+
|
|
97
|
+
path = Path(output_dir) / "provenance.tif"
|
|
98
|
+
prof = {"driver": "GTiff", "count": 1, "height": self.provenance.shape[0], "width": self.provenance.shape[1],
|
|
99
|
+
"crs": self.profile.get("crs"), "transform": self.profile.get("transform"), "compress": "deflate",
|
|
100
|
+
"dtype": "uint8", "nodata": 255}
|
|
101
|
+
with rasterio.open(path, "w", **prof) as dst:
|
|
102
|
+
dst.write(np.asarray(self.provenance, dtype=np.uint8)[np.newaxis])
|
|
103
|
+
paths["provenance"] = path
|
|
104
|
+
return paths
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def tie_components(
|
|
108
|
+
k_classical: np.ndarray,
|
|
109
|
+
components: np.ndarray,
|
|
110
|
+
k_learned: np.ndarray,
|
|
111
|
+
trusted: np.ndarray,
|
|
112
|
+
min_pixels: int = 200,
|
|
113
|
+
min_agreement: float = 0.5,
|
|
114
|
+
) -> Tuple[np.ndarray, List[Dict[str, Any]]]:
|
|
115
|
+
"""Whole-cycle offset that brings each SNAPHU component into the network's cycle frame.
|
|
116
|
+
|
|
117
|
+
``trusted``: pixels where both methods may be compared. Returns ``(offsets_by_pixel, table)`` where
|
|
118
|
+
``offsets_by_pixel`` holds the offset to add to ``k_classical`` (0 for components that could not be tied) and
|
|
119
|
+
``table`` has one row per component: label, pixels, offset, agreement, tied.
|
|
120
|
+
"""
|
|
121
|
+
offsets = np.zeros(k_classical.shape, dtype=np.float64)
|
|
122
|
+
table: List[Dict[str, Any]] = []
|
|
123
|
+
for c in np.unique(components[components > 0]):
|
|
124
|
+
in_c = components == c
|
|
125
|
+
m = in_c & trusted
|
|
126
|
+
n = int(m.sum())
|
|
127
|
+
row = {"label": int(c), "pixels": int(in_c.sum()), "trusted_pixels": n, "offset": 0, "agreement": float("nan"),
|
|
128
|
+
"tied": False}
|
|
129
|
+
if n >= min_pixels:
|
|
130
|
+
d = np.rint(k_learned[m] - k_classical[m]).astype(np.int64)
|
|
131
|
+
vals, counts = np.unique(d, return_counts=True)
|
|
132
|
+
j = int(np.argmax(counts))
|
|
133
|
+
agreement = float(counts[j] / n)
|
|
134
|
+
row["agreement"] = agreement
|
|
135
|
+
if agreement >= min_agreement:
|
|
136
|
+
row.update(offset=int(vals[j]), tied=True)
|
|
137
|
+
offsets[in_c] = float(vals[j])
|
|
138
|
+
table.append(row)
|
|
139
|
+
return offsets, table
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
class HybridUnwrapper:
|
|
143
|
+
"""SNAPHU and the network, tied into one cycle frame.
|
|
144
|
+
|
|
145
|
+
hybrid = HybridUnwrapper(LearnedUnwrapper.from_checkpoint("model/best.pt", run_config="model/config.json"),
|
|
146
|
+
PhaseUnwrapper(cost_mode="defo", init_method="mcf"))
|
|
147
|
+
res = hybrid.unwrap_pair(phase_ml, coh_ml, profile, amplitude=amp_ml, nlooks=256.0)
|
|
148
|
+
|
|
149
|
+
The call signature matches ``LearnedUnwrapper.unwrap_pair`` plus the SNAPHU arguments, so ``unwrap_interferograms``
|
|
150
|
+
accepts it in place of the learned unwrapper.
|
|
151
|
+
"""
|
|
152
|
+
|
|
153
|
+
def __init__(self, learned: LearnedUnwrapper, classical: Optional[PhaseUnwrapper] = None,
|
|
154
|
+
config: Optional[HybridConfig] = None):
|
|
155
|
+
self.learned = learned
|
|
156
|
+
self.classical = classical if classical is not None else PhaseUnwrapper()
|
|
157
|
+
self.config = config or HybridConfig()
|
|
158
|
+
|
|
159
|
+
# -- helpers ----------------------------------------------------------------------------------------
|
|
160
|
+
def _run_classical(self, psi0: np.ndarray, coh: np.ndarray, valid: np.ndarray, profile: Dict[str, Any],
|
|
161
|
+
nlooks: float, min_conncomp_frac: float, min_region_size: int):
|
|
162
|
+
return self.classical.unwrap_pair(
|
|
163
|
+
psi0, np.where(valid, coh, 0.0), profile, nlooks=nlooks, mask=valid,
|
|
164
|
+
min_conncomp_frac=min_conncomp_frac, min_region_size=min_region_size)
|
|
165
|
+
|
|
166
|
+
# -- public API -------------------------------------------------------------------------------------
|
|
167
|
+
def unwrap_pair(
|
|
168
|
+
self,
|
|
169
|
+
interferogram: Any,
|
|
170
|
+
coherence: Any,
|
|
171
|
+
profile: Dict[str, Any],
|
|
172
|
+
reference_date: Optional[str] = None,
|
|
173
|
+
secondary_date: Optional[str] = None,
|
|
174
|
+
nlooks: float = 1.0,
|
|
175
|
+
looks_azimuth: int = 1,
|
|
176
|
+
looks_range: int = 1,
|
|
177
|
+
amplitude: Optional[Any] = None,
|
|
178
|
+
mask: Optional[Any] = None,
|
|
179
|
+
pixel_size_m: Optional[Tuple[float, float]] = None,
|
|
180
|
+
min_region_size: int = 100,
|
|
181
|
+
min_conncomp_frac: float = 0.001,
|
|
182
|
+
) -> HybridUnwrapResult:
|
|
183
|
+
cfg = self.config
|
|
184
|
+
t0 = time.time()
|
|
185
|
+
psi = _as_wrapped_phase(interferogram)
|
|
186
|
+
coh = np.asarray(coherence, dtype=np.float64)
|
|
187
|
+
if coh.shape != psi.shape:
|
|
188
|
+
raise InputError("unwrap_inputs", f"coherence shape {coh.shape} differs from the interferogram {psi.shape}")
|
|
189
|
+
valid = np.isfinite(psi) & np.isfinite(coh)
|
|
190
|
+
if mask is not None:
|
|
191
|
+
m = np.asarray(mask, dtype=bool)
|
|
192
|
+
if m.shape != psi.shape:
|
|
193
|
+
raise InputError("unwrap_inputs", f"mask shape {m.shape} differs from the interferogram {psi.shape}")
|
|
194
|
+
valid &= m
|
|
195
|
+
if not valid.any():
|
|
196
|
+
raise InputError("unwrap_inputs", "no valid pixel (everything is NaN or masked)")
|
|
197
|
+
psi0 = np.where(valid, psi, 0.0)
|
|
198
|
+
|
|
199
|
+
q = QualityRecord(on_error=cfg.on_error)
|
|
200
|
+
cl = le = None
|
|
201
|
+
errors: Dict[str, Exception] = {}
|
|
202
|
+
|
|
203
|
+
# -- the two unwrappers ---------------------------------------------------------------------
|
|
204
|
+
try:
|
|
205
|
+
cl = self._run_classical(psi0, coh, valid, profile, nlooks, min_conncomp_frac, min_region_size)
|
|
206
|
+
q.ok("classical", f"SNAPHU: {100 * cl.reliable_fraction:.1f}% of pixels in a component")
|
|
207
|
+
except Exception as exc: # noqa: BLE001 - policy below decides
|
|
208
|
+
errors["classical"] = exc
|
|
209
|
+
try:
|
|
210
|
+
le = self.learned.unwrap_pair(
|
|
211
|
+
psi, coh, profile, reference_date, secondary_date, nlooks, looks_azimuth, looks_range,
|
|
212
|
+
amplitude=amplitude, mask=mask, pixel_size_m=pixel_size_m, min_region_size=min_region_size)
|
|
213
|
+
except Exception as exc: # noqa: BLE001
|
|
214
|
+
errors["learned"] = exc
|
|
215
|
+
|
|
216
|
+
if len(errors) == 2:
|
|
217
|
+
raise UnwrapError("hybrid", "both unwrappers failed: SNAPHU: "
|
|
218
|
+
f"{type(errors['classical']).__name__}: {errors['classical']}; network: "
|
|
219
|
+
f"{type(errors['learned']).__name__}: {errors['learned']}") from errors["learned"]
|
|
220
|
+
if errors and cfg.on_error == "raise":
|
|
221
|
+
which, exc = next(iter(errors.items()))
|
|
222
|
+
raise UnwrapError("hybrid", f"the {'SNAPHU' if which == 'classical' else 'network'} unwrapper failed and "
|
|
223
|
+
f"on_error='raise': {type(exc).__name__}: {exc}") from exc
|
|
224
|
+
|
|
225
|
+
scaled_profile = (le.profile if le is not None else cl.profile)
|
|
226
|
+
if le is None: # network failed, degrade to SNAPHU alone
|
|
227
|
+
q.failed("learned", f"{type(errors['learned']).__name__}: {errors['learned']}", "hybrid_learned_failed")
|
|
228
|
+
return self._single(cl, psi, valid, coh, q, "classical", scaled_profile, reference_date, secondary_date,
|
|
229
|
+
nlooks, errors, t0, min_region_size)
|
|
230
|
+
for f in le.metadata["quality"]["flags"]:
|
|
231
|
+
q.flag(f)
|
|
232
|
+
q.ok("learned", f"network: {100 * le.reliable_fraction:.1f}% of pixels reliable, grade "
|
|
233
|
+
f"{le.metadata['quality']['grade']}")
|
|
234
|
+
if cl is None: # SNAPHU failed, degrade to the network alone
|
|
235
|
+
q.failed("classical", f"{type(errors['classical']).__name__}: {errors['classical']}", "hybrid_classical_failed")
|
|
236
|
+
return self._single(le, psi, valid, coh, q, "learned", scaled_profile, reference_date, secondary_date,
|
|
237
|
+
nlooks, errors, t0, min_region_size)
|
|
238
|
+
|
|
239
|
+
# -- tie SNAPHU's components into the network's cycle frame ---------------------------------
|
|
240
|
+
phi_c = np.asarray(cl.unwrapped_phase, dtype=np.float64)
|
|
241
|
+
cc = np.asarray(cl.conncomp)
|
|
242
|
+
k_c = np.where(np.isfinite(phi_c) & valid, np.rint((phi_c - psi0) / TWO_PI), 0.0)
|
|
243
|
+
k_l = np.asarray(le.ambiguity_map, dtype=np.float64)
|
|
244
|
+
trusted = valid & (cc > 0) & (le.conncomp > 0) & (coh >= cfg.offset_min_coherence)
|
|
245
|
+
offsets, table = tie_components(k_c, cc, k_l, trusted, cfg.min_offset_pixels, cfg.min_offset_agreement)
|
|
246
|
+
n_tied = sum(r["tied"] for r in table)
|
|
247
|
+
if table and n_tied < len(table):
|
|
248
|
+
q.flag("component_offset_uncertain")
|
|
249
|
+
if table:
|
|
250
|
+
q.ok("offset_alignment", f"{n_tied} of {len(table)} SNAPHU components tied to the network's cycle frame "
|
|
251
|
+
f"(offsets {[r['offset'] for r in table if r['tied']]})")
|
|
252
|
+
else:
|
|
253
|
+
q.flag("no_classical_component")
|
|
254
|
+
q.ok("offset_alignment", "SNAPHU returned no component; the network supplies every pixel")
|
|
255
|
+
tied_px = np.zeros(psi.shape, bool)
|
|
256
|
+
for r in table:
|
|
257
|
+
if r["tied"]:
|
|
258
|
+
tied_px |= cc == r["label"]
|
|
259
|
+
|
|
260
|
+
# -- choose a source per pixel ----------------------------------------------------------------
|
|
261
|
+
use_learned = valid & (coh <= cfg.low_coherence)
|
|
262
|
+
if cfg.learned_fills_classical_gaps:
|
|
263
|
+
use_learned |= valid & (cc == 0)
|
|
264
|
+
prov = np.zeros(psi.shape, dtype=np.uint8)
|
|
265
|
+
prov[valid & ~use_learned & tied_px] = PROV_CLASSICAL
|
|
266
|
+
prov[valid & ~use_learned & (cc > 0) & ~tied_px] = PROV_CLASSICAL_UNTIED
|
|
267
|
+
prov[use_learned] = PROV_LEARNED
|
|
268
|
+
k = np.where(prov == PROV_LEARNED, k_l, k_c + offsets)
|
|
269
|
+
unwrapped = np.where(valid, psi0 + TWO_PI * k, np.nan)
|
|
270
|
+
|
|
271
|
+
# -- reliability: only where the supplying method trusts the pixel ---------------------------
|
|
272
|
+
rel_aligned = ((prov == PROV_CLASSICAL) & (cc > 0)) | ((prov == PROV_LEARNED) & (le.conncomp > 0))
|
|
273
|
+
conncomp = LearnedUnwrapper._components(rel_aligned, min_region_size)
|
|
274
|
+
nxt = int(conncomp.max()) + 1
|
|
275
|
+
for r in table:
|
|
276
|
+
if not r["tied"]:
|
|
277
|
+
sel = (prov == PROV_CLASSICAL_UNTIED) & (cc == r["label"])
|
|
278
|
+
if sel.any():
|
|
279
|
+
conncomp[sel] = nxt
|
|
280
|
+
nxt += 1
|
|
281
|
+
reliable_fraction = float(np.mean(conncomp > 0))
|
|
282
|
+
share = {n: float(np.mean(prov == v)) for n, v in
|
|
283
|
+
(("classical", PROV_CLASSICAL), ("learned", PROV_LEARNED), ("classical_untied", PROV_CLASSICAL_UNTIED))}
|
|
284
|
+
q.ok("merge", f"{100 * share['classical']:.1f}% SNAPHU, {100 * share['learned']:.1f}% network, "
|
|
285
|
+
f"{100 * share['classical_untied']:.1f}% SNAPHU not tied; {100 * reliable_fraction:.1f}% reliable")
|
|
286
|
+
both = valid & (cc > 0) & (le.conncomp > 0) & tied_px
|
|
287
|
+
agree = float(np.mean((k_c + offsets)[both] == k_l[both])) if both.any() else float("nan")
|
|
288
|
+
diag = unwrap_diagnostics(unwrapped, psi, conncomp > 0)
|
|
289
|
+
if diag.get("wrap_error_max", 0.0) > 1e-4:
|
|
290
|
+
raise UnwrapError("hybrid", f"internal check failed: wrap(unwrapped - wrapped) reaches {diag['wrap_error_max']:.2e} rad")
|
|
291
|
+
meta = {
|
|
292
|
+
"method": "hybrid-snaphu-pyunwrap", "hybrid_config": asdict(cfg), "components": table,
|
|
293
|
+
"source_share": share, "agreement_where_both_trusted": agree, "diagnostics": diag, "quality": q.to_dict(),
|
|
294
|
+
"model": le.metadata["model"], "learned_config": le.metadata["config"], "seconds": time.time() - t0,
|
|
295
|
+
"classical_reliable_fraction": cl.reliable_fraction, "learned_reliable_fraction": le.reliable_fraction,
|
|
296
|
+
"median_coherence": le.metadata["median_coherence"],
|
|
297
|
+
}
|
|
298
|
+
return HybridUnwrapResult(
|
|
299
|
+
unwrapped_phase=unwrapped.astype(np.float32), conncomp=conncomp, coherence=np.asarray(coherence),
|
|
300
|
+
profile=scaled_profile, reference_date=reference_date, secondary_date=secondary_date, nlooks=nlooks,
|
|
301
|
+
cost_mode="hybrid", init_method="snaphu+ambiguitynet", reliable_fraction=reliable_fraction, metadata=meta,
|
|
302
|
+
ambiguity_map=np.where(valid, k, 0).astype(np.int16), residue_prob=le.residue_prob, k_spread=le.k_spread,
|
|
303
|
+
provenance=prov)
|
|
304
|
+
|
|
305
|
+
def _single(self, src, psi, valid, coh, q, which, profile, d1, d2, nlooks, errors, t0, min_region_size):
|
|
306
|
+
"""Result from one surviving method (``on_error='degrade'``), in the hybrid result type."""
|
|
307
|
+
psi0 = np.where(valid, psi, 0.0)
|
|
308
|
+
phi = np.asarray(src.unwrapped_phase, dtype=np.float64)
|
|
309
|
+
k = np.where(np.isfinite(phi) & valid, np.rint((phi - psi0) / TWO_PI), 0.0)
|
|
310
|
+
prov_val = PROV_CLASSICAL_UNTIED if which == "classical" else PROV_LEARNED
|
|
311
|
+
prov = np.where(valid, prov_val, PROV_NONE).astype(np.uint8)
|
|
312
|
+
conncomp = np.asarray(src.conncomp)
|
|
313
|
+
unwrapped = np.where(valid, psi0 + TWO_PI * k, np.nan)
|
|
314
|
+
diag = unwrap_diagnostics(unwrapped, psi, conncomp > 0)
|
|
315
|
+
meta = {"method": f"hybrid-degraded-{which}-only", "components": [], "diagnostics": diag, "quality": q.to_dict(),
|
|
316
|
+
"failures": {k_: f"{type(v).__name__}: {v}" for k_, v in errors.items()}, "seconds": time.time() - t0,
|
|
317
|
+
"hybrid_config": asdict(self.config)}
|
|
318
|
+
if which == "learned":
|
|
319
|
+
meta.update(model=src.metadata["model"], learned_config=src.metadata["config"])
|
|
320
|
+
return HybridUnwrapResult(
|
|
321
|
+
unwrapped_phase=unwrapped.astype(np.float32), conncomp=conncomp, coherence=np.asarray(coh), profile=profile,
|
|
322
|
+
reference_date=d1, secondary_date=d2, nlooks=nlooks, cost_mode="hybrid", init_method="degraded",
|
|
323
|
+
reliable_fraction=float(np.mean(conncomp > 0)), metadata=meta, ambiguity_map=np.where(valid, k, 0).astype(np.int16),
|
|
324
|
+
residue_prob=getattr(src, "residue_prob", None), k_spread=getattr(src, "k_spread", None), provenance=prov)
|