PyGeoFetch 2.6.9.3__tar.gz → 2.6.9.5__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.3 → pygeofetch-2.6.9.5}/CHANGELOG.md +7 -7
- {pygeofetch-2.6.9.3/pygeofetch.egg-info → pygeofetch-2.6.9.5}/PKG-INFO +2 -2
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/README.md +1 -1
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/__init__.py +1 -1
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/__init__.py +3 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/coregister.py +8 -6
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/deburst.py +58 -26
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/interferogram.py +186 -36
- pygeofetch-2.6.9.5/pygeofetch/insar/logs.py +62 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/topo.py +19 -3
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/meta.yaml +1 -1
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5/pygeofetch.egg-info}/PKG-INFO +2 -2
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch.egg-info/SOURCES.txt +1 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pyproject.toml +1 -1
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/LICENSE +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/MANIFEST.in +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/cli/__init__.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/cli/auth_commands.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/cli/classify_commands.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/cli/config_commands.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/cli/download_commands.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/cli/index_commands.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/cli/main.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/cli/monitor_commands.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/cli/multisensor_commands.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/cli/optical_commands.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/cli/pipeline_process_commands.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/cli/postprocess_commands.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/cli/preprocess_commands.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/cli/sar_commands.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/cli/scale_commands.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/cli/search_commands.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/config/__init__.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/config/defaults.yaml +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/config/settings.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/core/__init__.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/core/authenticator.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/core/cache_manager.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/core/chunked_processor.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/core/data_formats/__init__.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/core/data_formats/geoparquet_io.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/core/data_formats/zarr_io.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/core/data_organizer.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/core/downloader.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/core/engine.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/core/logging.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/core/monitor.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/core/orbits.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/core/progress.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/core/scheduler.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/core/searcher.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/core/state.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/geotech/__init__.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/geotech/risk_mapper.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/advanced_safeguards.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/analysis.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/annotation.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/atmosphere.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/atmosphere_core.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/auto_fallback.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/errors.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/esd.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/extraction.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/feasibility.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/flatearth.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/geolocation.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/gpu.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/hybrid_unwrap.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/ionosphere.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/learned_unwrap.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/network_thinning.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/offset_geometry.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/offset_tracking.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/preflight.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/provenance.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/ps_eval.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/ps_gnn_pygeofetch_selector.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/ps_selection.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/ps_stack.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/radar_geometry.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/splitspectrum_diagnostic.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/stack_selection.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/synthetic.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/timeseries.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/unwrap.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/validate.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/visualize.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/insar/workflow.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/models/__init__.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/models/download_task.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/models/satellite_data.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/models/search_query.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/models/stream_options.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/models/user_auth.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/multisensor/__init__.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/multisensor/_init.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/multisensor/dem_differencing.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/multisensor/flood_mapping.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/multisensor/insar_optical_fusion.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/multisensor/terrain_corrected_change.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/multisensor/vegetation_disturbance.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/optical/__init__.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/optical/offset_tracking.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/processing/__init__.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/processing/base.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/processing/batch.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/processing/classification.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/processing/indices.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/processing/pipeline.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/processing/postprocessor.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/processing/preprocessor.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/processing/sar.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/processing/uq_exporter.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/processor/__init__.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/processor/indices.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/processor/landsat.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/processor/loader.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/processor/stacker.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/processor/timeseries.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/__init__.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/airbus_oneatlas.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/alaska_satellite_facility.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/aws_earth.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/base.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/copernicus.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/copernicus_nodes.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/digitalglobe.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/earth_explorer_additional.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/element84.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/eodag_provider.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/esa_scihub.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/geoserver_generic.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/google_earth_engine.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/inpe_cbers.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/isro_bhuvan.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/jaxa_earth.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/maxar_gbdx.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/nasa_earthdata.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/nasa_earthdata_cloud.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/noaa_big_data.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/opentopography.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/planet.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/planetary_computer.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/sentinel_hub.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/terrabotics.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/providers/usgs.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/sar/__init__.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/sar/_native.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/sar/_ost.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/sar/_sarxarray.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/sar/extraction.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/sar/math.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/sar/pipelines.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/sar/processor.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/stac_compute/__init__.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/stac_compute/burst_streaming.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/stac_compute/cog_streamer.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/stac_compute/lightweight_prefetch.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/stac_compute/window_calculator.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/streaming/__init__.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/streaming/scene.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/streaming/windowed.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/utils/__init__.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/utils/file_utils.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/utils/gcp_recovery.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/utils/geo_utils.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/utils/geocoding.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/utils/logging_setup.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/utils/retry_handler.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/utils/sar_math.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/utils/validators.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/validation/__init__.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/validation/optical_validator.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/viz/__init__.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/viz/insar.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/viz/map.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch/viz/plot.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch.egg-info/dependency_links.txt +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch.egg-info/entry_points.txt +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch.egg-info/not-zip-safe +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch.egg-info/requires.txt +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/pygeofetch.egg-info/top_level.txt +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/setup.cfg +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_advanced_safeguards.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_airbus_oneatlas.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_alaska_satellite_facility.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_atmospheric_circular_regression.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_auto_fallback.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_auto_fallback_fixed.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_build_sbas_network-new.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_build_sbas_network.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_burst_metadata.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_burst_processing_integration.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_burst_sync_large_gap.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_burst_sync_prescreening.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_burst_synchronization.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_circuit_breaker_wiring.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_cli_optical_validation.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_copernicus_nodes.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_coregister_integration.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_coregister_upgrades (1).py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_coregister_upgrades.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_credential_encryption.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_data_organizer.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_dem_differencing_pipeline.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_digitalglobe.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_earth_explorer_additional.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_era5_atmospheric_correction.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_esa_scihub.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_extraction.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_flat_earth_phase.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_flood_mapping_pipeline.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_gcp_reprojection.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_geology_indices_and_rvi_fix.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_geoserver_generic.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_google_earth_engine.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_inpe_cbers.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_insar.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_insar_optical_fusion_pipeline.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_ionosphere.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_isro_bhuvan.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_jaxa_earth.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_lightweight_prefetch.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_map_preview_consolidation.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_models.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_monitor.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_nasa_earthdata_cloud_s3_fix.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_nasa_earthdata_public_search.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_network_thinning.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_noaa_big_data.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_offset_tracking.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_opentopography_pointcloud_usgs.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_optical_offset_tracking.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_optical_validation_wiring.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_optical_validator.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_optical_validator_stac.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_pgv_integration_contract.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_pipeline_process_export.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_planet_asset_type_fix.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_preflight_gate.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_preflight_quiet.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_preflight_spatial_baseline.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_provider_geometry_audit.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_provider_scene_disambiguation.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_providers.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_ps_selection.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_raster_collocation_integration.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_reference_pixel_and_despike.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_risk_mapper.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_risk_mapping.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_sar_pipelines.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_screen_stack_orchestration.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_search_download.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_sentinel_hub_catalog_fix.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_sign_convention.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_splitspectrum_diagnostic.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_stack_selection_consolidation.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_state.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_strain_and_fusion.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_streaming.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_terrain_corrected_change_pipeline.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_topo_r2_bug.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_uq_exporter.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_utils.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_vegetation_disturbance_pipeline.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/tests/test_viz_plot.py +0 -0
- {pygeofetch-2.6.9.3 → pygeofetch-2.6.9.5}/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.5.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.5.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.5] — 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.5.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.5.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.5.4`**, dated
|
|
410
|
+
2026-07-29 and 2026-07-12. **2.6.9.5.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.5
|
|
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.5.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.5.1},
|
|
233
233
|
doi = {10.5281/zenodo.22087230},
|
|
234
234
|
url = {https://doi.org/10.5281/zenodo.22087230}
|
|
235
235
|
}
|
|
@@ -145,6 +145,7 @@ from pygeofetch.insar.geolocation import (
|
|
|
145
145
|
range_offset_to_vertical_displacement,
|
|
146
146
|
)
|
|
147
147
|
from pygeofetch.insar.gpu import gpu_available, gpu_info
|
|
148
|
+
from pygeofetch.insar.logs import set_verbosity, current_verbosity
|
|
148
149
|
from pygeofetch.insar.errors import (
|
|
149
150
|
BurstProcessingError, CoregistrationError, CropError, FlatEarthError, InputError, ProcessingError,
|
|
150
151
|
QualityRecord, TopographicPhaseError, AtmosphereError, GeometryProcessingError,
|
|
@@ -300,6 +301,8 @@ __all__ = [
|
|
|
300
301
|
"PairClassification",
|
|
301
302
|
"gpu_available",
|
|
302
303
|
"gpu_info",
|
|
304
|
+
"set_verbosity",
|
|
305
|
+
"current_verbosity",
|
|
303
306
|
"visualize_interferogram",
|
|
304
307
|
"visualize_unwrapped",
|
|
305
308
|
"visualize_timeseries",
|
|
@@ -1187,7 +1187,7 @@ def fit_offset_polynomial_robust(
|
|
|
1187
1187
|
iterations_used=iterations_used,
|
|
1188
1188
|
degree=degree,
|
|
1189
1189
|
)
|
|
1190
|
-
quality.log_summary()
|
|
1190
|
+
quality.log_summary(logging.DEBUG) # the caller logs the one summary line that includes the coherence
|
|
1191
1191
|
return row_fn, col_fn, quality
|
|
1192
1192
|
|
|
1193
1193
|
|
|
@@ -1397,8 +1397,9 @@ def resample_with_offset_field(
|
|
|
1397
1397
|
# one row-block regardless of total crop size.
|
|
1398
1398
|
|
|
1399
1399
|
h, w = data.shape
|
|
1400
|
-
|
|
1401
|
-
|
|
1400
|
+
# One complex64 output filled tile by tile. The previous version built two float32 planes and then
|
|
1401
|
+
# (out_real + 1j * out_imag).astype(complex64), which held about four extra full-size arrays at the end.
|
|
1402
|
+
out = np.empty((h, w), dtype=np.complex64)
|
|
1402
1403
|
data_real = data.real
|
|
1403
1404
|
data_imag = data.imag
|
|
1404
1405
|
|
|
@@ -1432,14 +1433,15 @@ def resample_with_offset_field(
|
|
|
1432
1433
|
sample_cols, (r_end - r_start, c_end - c_start)
|
|
1433
1434
|
)
|
|
1434
1435
|
|
|
1435
|
-
|
|
1436
|
+
tile = out[r_start:r_end, c_start:c_end]
|
|
1437
|
+
tile.real = map_coordinates(
|
|
1436
1438
|
data_real,
|
|
1437
1439
|
[sample_rows_2d, sample_cols_2d],
|
|
1438
1440
|
order=1,
|
|
1439
1441
|
mode="constant",
|
|
1440
1442
|
cval=0.0,
|
|
1441
1443
|
)
|
|
1442
|
-
|
|
1444
|
+
tile.imag = map_coordinates(
|
|
1443
1445
|
data_imag,
|
|
1444
1446
|
[sample_rows_2d, sample_cols_2d],
|
|
1445
1447
|
order=1,
|
|
@@ -1449,7 +1451,7 @@ def resample_with_offset_field(
|
|
|
1449
1451
|
|
|
1450
1452
|
del sample_rows_2d, sample_cols_2d, offset_row, offset_col
|
|
1451
1453
|
|
|
1452
|
-
return
|
|
1454
|
+
return out
|
|
1453
1455
|
# chunk_rows = max(1, min(h, 2000))
|
|
1454
1456
|
# for row_start in range(0, h, chunk_rows):
|
|
1455
1457
|
# row_end = min(row_start + chunk_rows, h)
|
|
@@ -115,26 +115,16 @@ def compute_burst_row_ranges(
|
|
|
115
115
|
return ranges
|
|
116
116
|
|
|
117
117
|
|
|
118
|
-
def
|
|
119
|
-
|
|
118
|
+
def plan_deburst(
|
|
119
|
+
n_rows: int,
|
|
120
120
|
swath_timing: SwathTiming,
|
|
121
121
|
azimuth_time_interval_s: float,
|
|
122
122
|
row_offset: int = 0,
|
|
123
|
-
) -> Tuple[
|
|
124
|
-
"""
|
|
125
|
-
Apply real deburst to an array: remove each burst's redundant
|
|
126
|
-
overlap rows and concatenate the kept, non-overlapping portions
|
|
127
|
-
into one continuous array.
|
|
123
|
+
) -> Tuple[List[Tuple[int, int]], int]:
|
|
124
|
+
"""Which array rows deburst keeps, without touching any data.
|
|
128
125
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
swath_timing: Real burst metadata from annotation.parse_burst_info().
|
|
132
|
-
azimuth_time_interval_s: Real per-line time spacing.
|
|
133
|
-
row_offset: If `data` is an already-cropped extract, the real
|
|
134
|
-
row offset of `data`'s row 0 within the full-scene burst stack.
|
|
135
|
-
|
|
136
|
-
Returns:
|
|
137
|
-
(debursted_data, first_kept_full_scene_row)
|
|
126
|
+
Returns ([(start, stop), ...] in array rows, first_kept_full_scene_row). Raises the same errors as
|
|
127
|
+
deburst_array, so a caller can validate both images before changing either one.
|
|
138
128
|
"""
|
|
139
129
|
if not isinstance(swath_timing, SwathTiming):
|
|
140
130
|
raise TypeError(
|
|
@@ -146,7 +136,7 @@ def deburst_array(
|
|
|
146
136
|
ranges = compute_burst_row_ranges(swath_timing, azimuth_time_interval_s)
|
|
147
137
|
lines_per_burst = swath_timing.lines_per_burst
|
|
148
138
|
|
|
149
|
-
|
|
139
|
+
spans: List[Tuple[int, int]] = []
|
|
150
140
|
first_kept_full_scene_row = None
|
|
151
141
|
|
|
152
142
|
for i, (keep_start, keep_end) in enumerate(ranges):
|
|
@@ -158,7 +148,7 @@ def deburst_array(
|
|
|
158
148
|
chunk_end = burst_full_scene_start + keep_end + 1
|
|
159
149
|
|
|
160
150
|
clipped_start = max(0, chunk_start)
|
|
161
|
-
clipped_end = min(
|
|
151
|
+
clipped_end = min(n_rows, chunk_end)
|
|
162
152
|
|
|
163
153
|
if clipped_start >= clipped_end:
|
|
164
154
|
continue
|
|
@@ -166,21 +156,63 @@ def deburst_array(
|
|
|
166
156
|
if first_kept_full_scene_row is None:
|
|
167
157
|
first_kept_full_scene_row = clipped_start + row_offset
|
|
168
158
|
|
|
169
|
-
|
|
159
|
+
spans.append((clipped_start, clipped_end))
|
|
170
160
|
|
|
171
|
-
if not
|
|
161
|
+
if not spans:
|
|
172
162
|
raise ValueError(
|
|
173
163
|
"deburst_array: no real data remained after debursting — "
|
|
174
164
|
"check that row_offset correctly reflects data's real "
|
|
175
165
|
"position within the full-scene burst stack."
|
|
176
166
|
)
|
|
167
|
+
assert first_kept_full_scene_row is not None
|
|
168
|
+
return spans, first_kept_full_scene_row
|
|
177
169
|
|
|
178
|
-
debursted = np.concatenate(chunks, axis=0)
|
|
179
170
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
171
|
+
def deburst_array(
|
|
172
|
+
data: np.ndarray,
|
|
173
|
+
swath_timing: SwathTiming,
|
|
174
|
+
azimuth_time_interval_s: float,
|
|
175
|
+
row_offset: int = 0,
|
|
176
|
+
inplace: bool = False,
|
|
177
|
+
spans: Optional[List[Tuple[int, int]]] = None,
|
|
178
|
+
first_kept_row: Optional[int] = None,
|
|
179
|
+
) -> Tuple[np.ndarray, int]:
|
|
180
|
+
"""
|
|
181
|
+
Apply real deburst to an array: remove each burst's redundant
|
|
182
|
+
overlap rows and concatenate the kept, non-overlapping portions
|
|
183
|
+
into one continuous array.
|
|
184
|
+
|
|
185
|
+
Args:
|
|
186
|
+
data: 2D array (complex SLC, real-valued raster, etc.)
|
|
187
|
+
swath_timing: Real burst metadata from annotation.parse_burst_info().
|
|
188
|
+
azimuth_time_interval_s: Real per-line time spacing.
|
|
189
|
+
row_offset: If `data` is an already-cropped extract, the real
|
|
190
|
+
row offset of `data`'s row 0 within the full-scene burst stack.
|
|
191
|
+
inplace: Compact the kept rows toward the top of `data` and return a view of the first rows, instead
|
|
192
|
+
of allocating a second full-size array. The input array is overwritten, so only use it when
|
|
193
|
+
nothing else needs the original. Same values as the copying version. Ignored (falls back to a
|
|
194
|
+
copy) when `data` is read-only.
|
|
195
|
+
spans, first_kept_row: A plan from plan_deburst(), to skip recomputing it.
|
|
196
|
+
|
|
197
|
+
Returns:
|
|
198
|
+
(debursted_data, first_kept_full_scene_row)
|
|
199
|
+
"""
|
|
200
|
+
if spans is None or first_kept_row is None:
|
|
201
|
+
spans, first_kept_row = plan_deburst(data.shape[0], swath_timing, azimuth_time_interval_s, row_offset)
|
|
202
|
+
|
|
203
|
+
if inplace and data.flags.writeable:
|
|
204
|
+
# Kept spans are in increasing order and each destination is at or above its source row, so
|
|
205
|
+
# moving them in order never overwrites a row that is still to be read. numpy copes with the
|
|
206
|
+
# overlap inside one span.
|
|
207
|
+
dst = 0
|
|
208
|
+
for a, b in spans:
|
|
209
|
+
n = b - a
|
|
210
|
+
if dst != a:
|
|
211
|
+
data[dst:dst + n] = data[a:b]
|
|
212
|
+
dst += n
|
|
213
|
+
debursted = data[:dst]
|
|
214
|
+
else:
|
|
215
|
+
debursted = np.concatenate([data[a:b] for a, b in spans], axis=0)
|
|
184
216
|
|
|
185
217
|
logger.info(
|
|
186
218
|
"Deburst: %d bursts -> %d output rows (input was %d rows)",
|
|
@@ -189,4 +221,4 @@ def deburst_array(
|
|
|
189
221
|
data.shape[0],
|
|
190
222
|
)
|
|
191
223
|
|
|
192
|
-
return debursted,
|
|
224
|
+
return debursted, first_kept_row
|
|
@@ -162,12 +162,22 @@ def _restore(obj):
|
|
|
162
162
|
|
|
163
163
|
|
|
164
164
|
def _fingerprint_value(v):
|
|
165
|
-
"""A stable
|
|
165
|
+
"""A stable stand-in for one input. Archives and orbit files by name (it carries the acquisition id);
|
|
166
|
+
GeoTIFFs by name and raster shape (a re-extracted or re-clipped copy of the same data is the same input, whereas
|
|
167
|
+
byte size and timestamps change when a file is merely rewritten); everything else by value."""
|
|
166
168
|
if isinstance(v, (str, Path)):
|
|
167
169
|
pth = Path(str(v))
|
|
168
170
|
try:
|
|
169
|
-
if pth.
|
|
170
|
-
|
|
171
|
+
if pth.is_file():
|
|
172
|
+
if pth.suffix.lower() in (".tif", ".tiff"):
|
|
173
|
+
try:
|
|
174
|
+
import rasterio
|
|
175
|
+
|
|
176
|
+
with rasterio.open(pth) as src:
|
|
177
|
+
return f"raster:{pth.name}:{src.count}x{src.height}x{src.width}:{src.dtypes[0]}"
|
|
178
|
+
except Exception:
|
|
179
|
+
return f"file:{pth.name}"
|
|
180
|
+
return f"file:{pth.name}"
|
|
171
181
|
except OSError:
|
|
172
182
|
pass
|
|
173
183
|
return str(v)
|
|
@@ -500,6 +510,9 @@ class InterferogramGenerator:
|
|
|
500
510
|
meaningful for burst-mode (TOPS) SLC pairs;
|
|
501
511
|
has no effect on already-deburst/stripmap data.
|
|
502
512
|
use_gpu: Use CuPy GPU acceleration if available.
|
|
513
|
+
verbosity: None leaves logging alone. "quiet" | "normal" | "full" | "debug": how much the InSAR
|
|
514
|
+
modules log (see pygeofetch.insar.logs). "normal" drops the per-pair repeats of the
|
|
515
|
+
"Parsed real SLC geometry", "Parsed orbit state vectors" and "Plot saved" lines.
|
|
503
516
|
use_real_burst_processing: Use real per-burst-overlap ESD and
|
|
504
517
|
real deburst (requires SAFE zips).
|
|
505
518
|
remove_flat_earth_phase: Remove the geometric orbital/flat-earth
|
|
@@ -542,6 +555,7 @@ class InterferogramGenerator:
|
|
|
542
555
|
coherence_window: Optional[int] = None,
|
|
543
556
|
esd_enabled: bool = True,
|
|
544
557
|
use_gpu: bool = False,
|
|
558
|
+
verbosity: Optional[str] = None,
|
|
545
559
|
use_real_burst_processing: bool = False,
|
|
546
560
|
remove_flat_earth_phase: Optional[bool] = None,
|
|
547
561
|
chunk_size: Optional[int] = None,
|
|
@@ -570,6 +584,10 @@ class InterferogramGenerator:
|
|
|
570
584
|
self._coh_window_explicit = coherence_window
|
|
571
585
|
self._esd_enabled = esd_enabled
|
|
572
586
|
self._use_gpu = use_gpu
|
|
587
|
+
if verbosity is not None:
|
|
588
|
+
from pygeofetch.insar.logs import set_verbosity
|
|
589
|
+
|
|
590
|
+
set_verbosity(verbosity)
|
|
573
591
|
if use_gpu:
|
|
574
592
|
# fail loudly at construction, with the reason, rather than quietly on CPU
|
|
575
593
|
from pygeofetch.insar.gpu import get_array_module as _gam
|
|
@@ -1174,7 +1192,7 @@ class InterferogramGenerator:
|
|
|
1174
1192
|
try:
|
|
1175
1193
|
from pygeofetch.insar.annotation import parse_burst_info, parse_slc_geometry
|
|
1176
1194
|
from pygeofetch.insar.coregister import read_crop_offset, read_matched_swath
|
|
1177
|
-
from pygeofetch.insar.deburst import deburst_array
|
|
1195
|
+
from pygeofetch.insar.deburst import deburst_array, plan_deburst
|
|
1178
1196
|
from pygeofetch.insar.esd import estimate_esd_shift_per_burst_overlap
|
|
1179
1197
|
|
|
1180
1198
|
ref_swath_hint = (
|
|
@@ -1426,25 +1444,26 @@ class InterferogramGenerator:
|
|
|
1426
1444
|
# per-burst-overlap ESD issue investigated above, which runs
|
|
1427
1445
|
# earlier, on the pre-deburst array, and was already using
|
|
1428
1446
|
# ref_row_off correctly for both images at that stage.
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
#
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1447
|
+
# Plan both debursts first (cheap, raises before any data is touched), then compact each image in
|
|
1448
|
+
# place: kept rows move toward the top of the array that already exists, so no second full-size
|
|
1449
|
+
# copy of either image is made. Both inputs are replaced by the return values in process_pair.
|
|
1450
|
+
#
|
|
1451
|
+
# FIX: Use ref_burst_info for the secondary as well. sec_complex was already resampled onto the
|
|
1452
|
+
# reference's grid by the swath-level coregistration, so its burst boundaries in pixel
|
|
1453
|
+
# coordinates match the reference's; the secondary's own un-warped timing would cut the wrong
|
|
1454
|
+
# rows and destroy coherence at burst edges.
|
|
1455
|
+
_ref_spans, ref_first_kept_row = plan_deburst(
|
|
1456
|
+
ref_complex.shape[0], ref_burst_info, azimuth_time_interval_s, row_offset=int(ref_row_off))
|
|
1457
|
+
_sec_spans, _sec_first = plan_deburst(
|
|
1458
|
+
sec_complex.shape[0], ref_burst_info, azimuth_time_interval_s, row_offset=int(ref_row_off))
|
|
1459
|
+
ref_debursted, _ = deburst_array(
|
|
1460
|
+
ref_complex, ref_burst_info, azimuth_time_interval_s, row_offset=int(ref_row_off),
|
|
1461
|
+
inplace=True, spans=_ref_spans, first_kept_row=ref_first_kept_row)
|
|
1462
|
+
ref_complex = None
|
|
1442
1463
|
sec_debursted, _ = deburst_array(
|
|
1443
|
-
sec_complex,
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
row_offset=int(ref_row_off),
|
|
1447
|
-
)
|
|
1464
|
+
sec_complex, ref_burst_info, azimuth_time_interval_s, row_offset=int(ref_row_off),
|
|
1465
|
+
inplace=True, spans=_sec_spans, first_kept_row=_sec_first)
|
|
1466
|
+
sec_complex = None
|
|
1448
1467
|
|
|
1449
1468
|
# Real correctness fix, not optional: deburst can remove
|
|
1450
1469
|
# rows from the TOP of the array (whenever the crop's own
|
|
@@ -1482,7 +1501,7 @@ class InterferogramGenerator:
|
|
|
1482
1501
|
logger.info(
|
|
1483
1502
|
"Real burst-aware processing complete: %s -> %s "
|
|
1484
1503
|
"(burst-boundary redundancy removed)",
|
|
1485
|
-
|
|
1504
|
+
ref_debursted.base.shape if ref_debursted.base is not None else ref_debursted.shape,
|
|
1486
1505
|
ref_debursted.shape,
|
|
1487
1506
|
)
|
|
1488
1507
|
return ref_debursted, sec_debursted, metadata
|
|
@@ -1517,6 +1536,121 @@ class InterferogramGenerator:
|
|
|
1517
1536
|
# MAIN PROCESSING PIPELINE
|
|
1518
1537
|
# ══════════════════════════════════════════════════════════════════
|
|
1519
1538
|
|
|
1539
|
+
_FINGERPRINT_EXCLUDED_ARGS = frozenset({
|
|
1540
|
+
"self", "chunk_rows", "use_chunked_processing", "output_dir", "resume", "save_visualizations",
|
|
1541
|
+
"min_coreg_gcps", "max_coreg_rms_px", "max_burst_sync_ms"})
|
|
1542
|
+
_FINGERPRINT_EXCLUDED_SETTINGS = frozenset({"_use_gpu", "_chunk_size", "_on_error", "_coherence_backend"})
|
|
1543
|
+
|
|
1544
|
+
def _pair_fingerprint(self, arguments: Dict[str, Any]) -> Dict[str, Any]:
|
|
1545
|
+
"""What a saved result depends on, from the process_pair arguments (all of them, defaults included)."""
|
|
1546
|
+
args = {k: v for k, v in arguments.items()
|
|
1547
|
+
if k not in self._FINGERPRINT_EXCLUDED_ARGS and not k.startswith("_")}
|
|
1548
|
+
settings = {k: v for k, v in vars(self).items()
|
|
1549
|
+
if isinstance(v, (bool, int, float, str, type(None)))
|
|
1550
|
+
and k not in self._FINGERPRINT_EXCLUDED_SETTINGS}
|
|
1551
|
+
return make_fingerprint(args, settings)
|
|
1552
|
+
|
|
1553
|
+
def pair_fingerprint(self, **process_pair_kwargs) -> Dict[str, Any]:
|
|
1554
|
+
"""The fingerprint process_pair would store for these arguments, without running anything. Used to
|
|
1555
|
+
decide up front whether a pair on disk is current."""
|
|
1556
|
+
import inspect
|
|
1557
|
+
|
|
1558
|
+
bound = inspect.signature(self.process_pair).bind(**process_pair_kwargs)
|
|
1559
|
+
bound.apply_defaults()
|
|
1560
|
+
return self._pair_fingerprint(dict(bound.arguments))
|
|
1561
|
+
|
|
1562
|
+
def is_pair_current(self, output_dir, reference_date: str, secondary_date: str, **process_pair_kwargs) -> bool:
|
|
1563
|
+
"""True when output_dir/<ref>_<sec> holds a complete save made with exactly these inputs and settings."""
|
|
1564
|
+
saved = InterferogramResult.saved_fingerprint(Path(output_dir) / f"{reference_date}_{secondary_date}")
|
|
1565
|
+
if not saved:
|
|
1566
|
+
return False
|
|
1567
|
+
return saved.get("hash") == self.pair_fingerprint(
|
|
1568
|
+
reference_date=reference_date, secondary_date=secondary_date, **process_pair_kwargs)["hash"]
|
|
1569
|
+
|
|
1570
|
+
def process_pairs(
|
|
1571
|
+
self,
|
|
1572
|
+
pairs,
|
|
1573
|
+
output_dir,
|
|
1574
|
+
resume: bool = True,
|
|
1575
|
+
keep_results: bool = False,
|
|
1576
|
+
stop_on_error: bool = False,
|
|
1577
|
+
**common_kwargs,
|
|
1578
|
+
):
|
|
1579
|
+
"""Process many pairs one after another, saving each under output_dir/<ref>_<sec>.
|
|
1580
|
+
|
|
1581
|
+
pairs: iterable of dicts of process_pair arguments for one pair (reference, secondary,
|
|
1582
|
+
reference_date, secondary_date, ... ). common_kwargs apply to every pair; a pair's own dict wins.
|
|
1583
|
+
resume: pairs whose folder already holds a complete save made with the same inputs and settings
|
|
1584
|
+
are skipped before any SLC is opened (checked with the same fingerprint process_pair stores).
|
|
1585
|
+
keep_results: False (default) keeps only a small record per pair, so memory stays flat however many
|
|
1586
|
+
pairs run; True also returns each InterferogramResult (loaded from disk for skipped pairs).
|
|
1587
|
+
stop_on_error: False records the failure and carries on with the next pair.
|
|
1588
|
+
|
|
1589
|
+
Returns a list of records: reference_date, secondary_date, status ("skipped: already generated",
|
|
1590
|
+
"computed", "failed"), folder, metadata (the pair's summary, loaded from result.json when skipped),
|
|
1591
|
+
error, and result (only with keep_results). The decision for every pair is printed, so a run that
|
|
1592
|
+
did not skip anything says so.
|
|
1593
|
+
"""
|
|
1594
|
+
import gc
|
|
1595
|
+
import json
|
|
1596
|
+
|
|
1597
|
+
out = Path(output_dir)
|
|
1598
|
+
pairs = list(pairs)
|
|
1599
|
+
records = []
|
|
1600
|
+
n_skip = n_done = n_fail = 0
|
|
1601
|
+
print(f"process_pairs: {len(pairs)} pairs, output_dir={out}, resume={resume}")
|
|
1602
|
+
for i, spec in enumerate(pairs, 1):
|
|
1603
|
+
kw = {**common_kwargs, **spec}
|
|
1604
|
+
rd, sd = kw.get("reference_date"), kw.get("secondary_date")
|
|
1605
|
+
if not (rd and sd):
|
|
1606
|
+
raise InputError("input", "every pair needs reference_date and secondary_date")
|
|
1607
|
+
folder = out / f"{rd}_{sd}"
|
|
1608
|
+
rec = {"reference_date": rd, "secondary_date": sd, "folder": folder, "status": None,
|
|
1609
|
+
"metadata": None, "error": None, "result": None}
|
|
1610
|
+
tag = f"[{i}/{len(pairs)}] {rd} -> {sd}"
|
|
1611
|
+
current = False
|
|
1612
|
+
if resume:
|
|
1613
|
+
try:
|
|
1614
|
+
current = self.is_pair_current(out, rd, sd, **{k: v for k, v in kw.items()
|
|
1615
|
+
if k not in ("reference_date", "secondary_date")})
|
|
1616
|
+
except Exception as exc: # noqa: BLE001
|
|
1617
|
+
logger.warning("resume check failed for %s_%s (%s); computing it", rd, sd, exc)
|
|
1618
|
+
if current:
|
|
1619
|
+
rec["status"] = "skipped: already generated"
|
|
1620
|
+
try:
|
|
1621
|
+
rec["metadata"] = _restore(json.loads((folder / _RESULT_JSON).read_text()).get("metadata") or {})
|
|
1622
|
+
if keep_results:
|
|
1623
|
+
rec["result"] = InterferogramResult.load(folder)
|
|
1624
|
+
except Exception as exc: # noqa: BLE001
|
|
1625
|
+
logger.warning("could not read saved result for %s_%s (%s)", rd, sd, exc)
|
|
1626
|
+
n_skip += 1
|
|
1627
|
+
print(f"{tag}: {rec['status']}")
|
|
1628
|
+
else:
|
|
1629
|
+
why = "resume off" if not resume else (
|
|
1630
|
+
"no complete save" if InterferogramResult.saved_fingerprint(folder) is None
|
|
1631
|
+
else "saved with different inputs/settings/version")
|
|
1632
|
+
print(f"{tag}: computing ({why})")
|
|
1633
|
+
try:
|
|
1634
|
+
res = self.process_pair(output_dir=out, resume=False, **kw)
|
|
1635
|
+
rec["status"] = "computed"
|
|
1636
|
+
rec["metadata"] = dict(res.metadata)
|
|
1637
|
+
if keep_results:
|
|
1638
|
+
rec["result"] = res
|
|
1639
|
+
n_done += 1
|
|
1640
|
+
del res
|
|
1641
|
+
except Exception as exc: # noqa: BLE001
|
|
1642
|
+
rec["status"] = "failed"
|
|
1643
|
+
rec["error"] = f"{type(exc).__name__}: {exc}"
|
|
1644
|
+
n_fail += 1
|
|
1645
|
+
print(f"{tag}: FAILED {rec['error']}")
|
|
1646
|
+
if stop_on_error:
|
|
1647
|
+
records.append(rec)
|
|
1648
|
+
raise
|
|
1649
|
+
records.append(rec)
|
|
1650
|
+
gc.collect()
|
|
1651
|
+
print(f"process_pairs: {n_skip} skipped, {n_done} computed, {n_fail} failed")
|
|
1652
|
+
return records
|
|
1653
|
+
|
|
1520
1654
|
def process_pair(
|
|
1521
1655
|
self,
|
|
1522
1656
|
reference: Union[str, Path],
|
|
@@ -1680,14 +1814,9 @@ class InterferogramGenerator:
|
|
|
1680
1814
|
"""
|
|
1681
1815
|
# What this result depends on, taken before anything else is assigned. Used to decide on resume
|
|
1682
1816
|
# whether a saved result was made by the same pipeline with the same inputs and settings.
|
|
1683
|
-
|
|
1684
|
-
"save_visualizations", "min_coreg_gcps", "max_coreg_rms_px", "max_burst_sync_ms"}
|
|
1685
|
-
_arguments = {k: v for k, v in locals().items() if k not in _not_inputs and not k.startswith("_")}
|
|
1686
|
-
_settings = {k: v for k, v in vars(self).items()
|
|
1687
|
-
if isinstance(v, (bool, int, float, str, type(None)))
|
|
1688
|
-
and k not in ("_use_gpu", "_chunk_size", "_on_error", "_coherence_backend")}
|
|
1689
|
-
_fingerprint = make_fingerprint(_arguments, _settings)
|
|
1817
|
+
_fingerprint = self._pair_fingerprint(dict(locals()))
|
|
1690
1818
|
_pair_dir = None
|
|
1819
|
+
_resume_note = "resume not requested" if not resume else "no output_dir"
|
|
1691
1820
|
if output_dir is not None:
|
|
1692
1821
|
if not (reference_date and secondary_date):
|
|
1693
1822
|
raise InputError("input", "output_dir needs reference_date and secondary_date to name the pair folder")
|
|
@@ -1695,12 +1824,14 @@ class InterferogramGenerator:
|
|
|
1695
1824
|
if resume:
|
|
1696
1825
|
_saved = InterferogramResult.saved_fingerprint(_pair_dir)
|
|
1697
1826
|
if _saved is None:
|
|
1827
|
+
_resume_note = "computed: no complete saved result in the folder"
|
|
1698
1828
|
logger.info("resume: %s_%s has no complete saved result; computing it", reference_date, secondary_date)
|
|
1699
1829
|
elif _saved.get("hash") == _fingerprint["hash"]:
|
|
1700
1830
|
logger.info("resume: %s_%s already generated with the same inputs and settings; loaded from disk",
|
|
1701
1831
|
reference_date, secondary_date)
|
|
1702
1832
|
_loaded = InterferogramResult.load(_pair_dir)
|
|
1703
1833
|
_loaded.metadata["resumed_from_disk"] = True
|
|
1834
|
+
_loaded.metadata["resume_status"] = "loaded from disk"
|
|
1704
1835
|
return _loaded
|
|
1705
1836
|
else:
|
|
1706
1837
|
_changed = [f"{grp}.{k}" for grp in ("settings", "arguments")
|
|
@@ -1708,6 +1839,7 @@ class InterferogramGenerator:
|
|
|
1708
1839
|
if _saved.get(grp, {}).get(k) != _fingerprint[grp].get(k)]
|
|
1709
1840
|
if _saved.get("pipeline_version") != PIPELINE_VERSION:
|
|
1710
1841
|
_changed.insert(0, f"pipeline_version ({_saved.get('pipeline_version')} -> {PIPELINE_VERSION})")
|
|
1842
|
+
_resume_note = "computed: saved result differs in " + (", ".join(_changed) or "unknown")
|
|
1711
1843
|
logger.warning("resume: %s_%s was saved with different inputs, settings or pipeline version "
|
|
1712
1844
|
"(changed: %s); recomputing it", reference_date, secondary_date,
|
|
1713
1845
|
", ".join(_changed) or "unknown")
|
|
@@ -2103,8 +2235,14 @@ class InterferogramGenerator:
|
|
|
2103
2235
|
"Multilook %dx%d (azimuth x range) of the interferogram: %s -> %s",
|
|
2104
2236
|
looks_azimuth, looks_range, ref_complex.shape, out_shape,
|
|
2105
2237
|
)
|
|
2106
|
-
|
|
2107
|
-
|
|
2238
|
+
# Row blocks into one complex64 array. The one-line form built a conjugated copy, the product and a
|
|
2239
|
+
# third astype() copy of the whole scene; this holds only the result and one block.
|
|
2240
|
+
_np_ = self._np()
|
|
2241
|
+
interferogram = _np_.empty((_h_full, _w_full), dtype=_np_.complex64)
|
|
2242
|
+
_rb = max(16, 4_000_000 // _w_full)
|
|
2243
|
+
for _r0 in range(0, _h_full, _rb):
|
|
2244
|
+
_r1 = min(_h_full, _r0 + _rb)
|
|
2245
|
+
interferogram[_r0:_r1] = ref_complex[_r0:_r1, :_w_full] * _np_.conj(sec_complex[_r0:_r1, :_w_full])
|
|
2108
2246
|
|
|
2109
2247
|
# amplitude of the reference (dB): the root-mean-square over the look window. For one look this is 20*log10|ref|.
|
|
2110
2248
|
if _ml:
|
|
@@ -2227,7 +2365,7 @@ class InterferogramGenerator:
|
|
|
2227
2365
|
interferogram, geo_info = apply_geometric_phase(
|
|
2228
2366
|
interferogram, geometry_nodes, dem, remove_flat=bool(_fe_requested),
|
|
2229
2367
|
remove_topo=dem is not None, geoid_offset_m=self._dem_geoid_offset_m,
|
|
2230
|
-
looks=(looks_azimuth, looks_range))
|
|
2368
|
+
looks=(looks_azimuth, looks_range), inplace=True)
|
|
2231
2369
|
except Exception as exc: # noqa: BLE001
|
|
2232
2370
|
_cls = TopographicPhaseError if dem is not None else FlatEarthError
|
|
2233
2371
|
if self._on_error == "raise":
|
|
@@ -2408,6 +2546,7 @@ class InterferogramGenerator:
|
|
|
2408
2546
|
"resume_fingerprint": _fingerprint,
|
|
2409
2547
|
},
|
|
2410
2548
|
)
|
|
2549
|
+
result.metadata["resume_status"] = _resume_note
|
|
2411
2550
|
if _pair_dir is not None:
|
|
2412
2551
|
result.save(_pair_dir, auto_visualize=save_visualizations)
|
|
2413
2552
|
return result
|
|
@@ -3031,13 +3170,24 @@ class InterferogramGenerator:
|
|
|
3031
3170
|
return float(np.clip(shift_px, -0.5, 0.5))
|
|
3032
3171
|
|
|
3033
3172
|
def _apply_azimuth_shift(self, data, shift_px: float):
|
|
3034
|
-
"""Apply a sub-pixel azimuth (row) shift via Fourier phase ramp.
|
|
3173
|
+
"""Apply a sub-pixel azimuth (row) shift via Fourier phase ramp.
|
|
3174
|
+
|
|
3175
|
+
The transform runs along the rows of each column independently, so it is done in column blocks: the
|
|
3176
|
+
double-precision FFT, ramp product and inverse FFT then exist for one block instead of the whole scene
|
|
3177
|
+
(three full-size complex128 arrays, about 4 GB on a 4500 x 18000 crop). The block results are identical to
|
|
3178
|
+
the whole-array ones. Written into ``data`` when that is a plain writable complex64 array of its own
|
|
3179
|
+
(every caller replaces its variable with the return value); otherwise into a new array."""
|
|
3035
3180
|
np = self._np()
|
|
3036
3181
|
h, w = data.shape
|
|
3037
3182
|
freq = np.fft.fftfreq(h).reshape(-1, 1)
|
|
3038
3183
|
ramp = np.exp(-2j * np.pi * freq * shift_px)
|
|
3039
|
-
|
|
3040
|
-
|
|
3184
|
+
in_place = data.dtype == np.complex64 and data.flags.writeable and data.flags.owndata
|
|
3185
|
+
out = data if in_place else np.empty((h, w), dtype=np.complex64)
|
|
3186
|
+
cb = max(16, 4_000_000 // max(h, 1))
|
|
3187
|
+
for c0 in range(0, w, cb):
|
|
3188
|
+
c1 = min(w, c0 + cb)
|
|
3189
|
+
out[:, c0:c1] = np.fft.ifft(np.fft.fft(data[:, c0:c1], axis=0) * ramp, axis=0)
|
|
3190
|
+
return out
|
|
3041
3191
|
|
|
3042
3192
|
def _remove_topographic_phase(self, interferogram, dem_path: Path, profile) -> Any:
|
|
3043
3193
|
"""
|