PyGeoFetch 2.6.9.8__tar.gz → 2.6.9.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) hide show
  1. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/CHANGELOG.md +7 -7
  2. {pygeofetch-2.6.9.8/pygeofetch.egg-info → pygeofetch-2.6.9.9}/PKG-INFO +2 -2
  3. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/README.md +1 -1
  4. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/__init__.py +1 -1
  5. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/core/downloader.py +18 -1
  6. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/meta.yaml +1 -1
  7. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/alaska_satellite_facility.py +149 -34
  8. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9/pygeofetch.egg-info}/PKG-INFO +2 -2
  9. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pyproject.toml +1 -1
  10. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/LICENSE +0 -0
  11. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/MANIFEST.in +0 -0
  12. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/cli/__init__.py +0 -0
  13. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/cli/auth_commands.py +0 -0
  14. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/cli/classify_commands.py +0 -0
  15. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/cli/config_commands.py +0 -0
  16. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/cli/download_commands.py +0 -0
  17. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/cli/index_commands.py +0 -0
  18. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/cli/main.py +0 -0
  19. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/cli/monitor_commands.py +0 -0
  20. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/cli/multisensor_commands.py +0 -0
  21. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/cli/optical_commands.py +0 -0
  22. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/cli/pipeline_process_commands.py +0 -0
  23. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/cli/postprocess_commands.py +0 -0
  24. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/cli/preprocess_commands.py +0 -0
  25. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/cli/sar_commands.py +0 -0
  26. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/cli/scale_commands.py +0 -0
  27. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/cli/search_commands.py +0 -0
  28. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/config/__init__.py +0 -0
  29. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/config/defaults.yaml +0 -0
  30. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/config/settings.py +0 -0
  31. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/core/__init__.py +0 -0
  32. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/core/authenticator.py +0 -0
  33. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/core/cache_manager.py +0 -0
  34. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/core/chunked_processor.py +0 -0
  35. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/core/data_formats/__init__.py +0 -0
  36. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/core/data_formats/geoparquet_io.py +0 -0
  37. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/core/data_formats/zarr_io.py +0 -0
  38. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/core/data_organizer.py +0 -0
  39. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/core/engine.py +0 -0
  40. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/core/logging.py +0 -0
  41. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/core/monitor.py +0 -0
  42. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/core/orbits.py +0 -0
  43. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/core/progress.py +0 -0
  44. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/core/scheduler.py +0 -0
  45. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/core/searcher.py +0 -0
  46. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/core/state.py +0 -0
  47. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/geotech/__init__.py +0 -0
  48. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/geotech/risk_mapper.py +0 -0
  49. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/__init__.py +0 -0
  50. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/advanced_safeguards.py +0 -0
  51. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/analysis.py +0 -0
  52. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/annotation.py +0 -0
  53. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/atmosphere.py +0 -0
  54. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/atmosphere_core.py +0 -0
  55. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/auto_fallback.py +0 -0
  56. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/coregister.py +0 -0
  57. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/deburst.py +0 -0
  58. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/errors.py +0 -0
  59. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/esd.py +0 -0
  60. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/extraction.py +0 -0
  61. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/feasibility.py +0 -0
  62. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/flatearth.py +0 -0
  63. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/geolocation.py +0 -0
  64. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/gpu.py +0 -0
  65. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/hybrid_unwrap.py +0 -0
  66. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/interferogram.py +0 -0
  67. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/ionosphere.py +0 -0
  68. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/learned_unwrap.py +0 -0
  69. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/logs.py +0 -0
  70. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/memory.py +0 -0
  71. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/network_thinning.py +0 -0
  72. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/offset_geometry.py +0 -0
  73. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/offset_tracking.py +0 -0
  74. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/preflight.py +0 -0
  75. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/provenance.py +0 -0
  76. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/ps_eval.py +0 -0
  77. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/ps_gnn_pygeofetch_selector.py +0 -0
  78. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/ps_selection.py +0 -0
  79. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/ps_stack.py +0 -0
  80. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/radar_geometry.py +0 -0
  81. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/splitspectrum_diagnostic.py +0 -0
  82. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/stack_selection.py +0 -0
  83. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/synthetic.py +0 -0
  84. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/timeseries.py +0 -0
  85. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/topo.py +0 -0
  86. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/unwrap.py +0 -0
  87. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/validate.py +0 -0
  88. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/visualize.py +0 -0
  89. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/insar/workflow.py +0 -0
  90. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/models/__init__.py +0 -0
  91. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/models/download_task.py +0 -0
  92. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/models/satellite_data.py +0 -0
  93. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/models/search_query.py +0 -0
  94. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/models/stream_options.py +0 -0
  95. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/models/user_auth.py +0 -0
  96. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/multisensor/__init__.py +0 -0
  97. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/multisensor/_init.py +0 -0
  98. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/multisensor/dem_differencing.py +0 -0
  99. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/multisensor/flood_mapping.py +0 -0
  100. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/multisensor/insar_optical_fusion.py +0 -0
  101. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/multisensor/terrain_corrected_change.py +0 -0
  102. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/multisensor/vegetation_disturbance.py +0 -0
  103. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/optical/__init__.py +0 -0
  104. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/optical/offset_tracking.py +0 -0
  105. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/processing/__init__.py +0 -0
  106. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/processing/base.py +0 -0
  107. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/processing/batch.py +0 -0
  108. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/processing/classification.py +0 -0
  109. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/processing/indices.py +0 -0
  110. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/processing/pipeline.py +0 -0
  111. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/processing/postprocessor.py +0 -0
  112. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/processing/preprocessor.py +0 -0
  113. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/processing/sar.py +0 -0
  114. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/processing/uq_exporter.py +0 -0
  115. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/processor/__init__.py +0 -0
  116. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/processor/indices.py +0 -0
  117. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/processor/landsat.py +0 -0
  118. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/processor/loader.py +0 -0
  119. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/processor/stacker.py +0 -0
  120. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/processor/timeseries.py +0 -0
  121. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/__init__.py +0 -0
  122. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/airbus_oneatlas.py +0 -0
  123. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/aws_earth.py +0 -0
  124. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/base.py +0 -0
  125. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/copernicus.py +0 -0
  126. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/copernicus_nodes.py +0 -0
  127. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/digitalglobe.py +0 -0
  128. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/earth_explorer_additional.py +0 -0
  129. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/element84.py +0 -0
  130. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/eodag_provider.py +0 -0
  131. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/esa_scihub.py +0 -0
  132. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/geoserver_generic.py +0 -0
  133. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/google_earth_engine.py +0 -0
  134. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/inpe_cbers.py +0 -0
  135. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/isro_bhuvan.py +0 -0
  136. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/jaxa_earth.py +0 -0
  137. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/maxar_gbdx.py +0 -0
  138. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/nasa_earthdata.py +0 -0
  139. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/nasa_earthdata_cloud.py +0 -0
  140. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/noaa_big_data.py +0 -0
  141. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/opentopography.py +0 -0
  142. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/planet.py +0 -0
  143. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/planetary_computer.py +0 -0
  144. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/sentinel_hub.py +0 -0
  145. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/terrabotics.py +0 -0
  146. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/providers/usgs.py +0 -0
  147. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/sar/__init__.py +0 -0
  148. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/sar/_native.py +0 -0
  149. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/sar/_ost.py +0 -0
  150. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/sar/_sarxarray.py +0 -0
  151. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/sar/extraction.py +0 -0
  152. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/sar/math.py +0 -0
  153. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/sar/pipelines.py +0 -0
  154. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/sar/processor.py +0 -0
  155. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/stac_compute/__init__.py +0 -0
  156. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/stac_compute/burst_streaming.py +0 -0
  157. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/stac_compute/cog_streamer.py +0 -0
  158. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/stac_compute/lightweight_prefetch.py +0 -0
  159. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/stac_compute/window_calculator.py +0 -0
  160. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/streaming/__init__.py +0 -0
  161. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/streaming/scene.py +0 -0
  162. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/streaming/windowed.py +0 -0
  163. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/utils/__init__.py +0 -0
  164. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/utils/file_utils.py +0 -0
  165. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/utils/gcp_recovery.py +0 -0
  166. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/utils/geo_utils.py +0 -0
  167. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/utils/geocoding.py +0 -0
  168. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/utils/logging_setup.py +0 -0
  169. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/utils/retry_handler.py +0 -0
  170. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/utils/sar_math.py +0 -0
  171. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/utils/validators.py +0 -0
  172. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/validation/__init__.py +0 -0
  173. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/validation/optical_validator.py +0 -0
  174. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/viz/__init__.py +0 -0
  175. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/viz/insar.py +0 -0
  176. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/viz/map.py +0 -0
  177. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch/viz/plot.py +0 -0
  178. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch.egg-info/SOURCES.txt +0 -0
  179. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch.egg-info/dependency_links.txt +0 -0
  180. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch.egg-info/entry_points.txt +0 -0
  181. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch.egg-info/not-zip-safe +0 -0
  182. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch.egg-info/requires.txt +0 -0
  183. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/pygeofetch.egg-info/top_level.txt +0 -0
  184. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/setup.cfg +0 -0
  185. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_advanced_safeguards.py +0 -0
  186. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_airbus_oneatlas.py +0 -0
  187. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_alaska_satellite_facility.py +0 -0
  188. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_atmospheric_circular_regression.py +0 -0
  189. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_auto_fallback.py +0 -0
  190. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_auto_fallback_fixed.py +0 -0
  191. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_build_sbas_network-new.py +0 -0
  192. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_build_sbas_network.py +0 -0
  193. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_burst_metadata.py +0 -0
  194. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_burst_processing_integration.py +0 -0
  195. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_burst_sync_large_gap.py +0 -0
  196. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_burst_sync_prescreening.py +0 -0
  197. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_burst_synchronization.py +0 -0
  198. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_circuit_breaker_wiring.py +0 -0
  199. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_cli_optical_validation.py +0 -0
  200. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_copernicus_nodes.py +0 -0
  201. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_coregister_integration.py +0 -0
  202. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_coregister_upgrades (1).py +0 -0
  203. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_coregister_upgrades.py +0 -0
  204. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_credential_encryption.py +0 -0
  205. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_data_organizer.py +0 -0
  206. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_dem_differencing_pipeline.py +0 -0
  207. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_digitalglobe.py +0 -0
  208. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_earth_explorer_additional.py +0 -0
  209. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_era5_atmospheric_correction.py +0 -0
  210. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_esa_scihub.py +0 -0
  211. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_extraction.py +0 -0
  212. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_flat_earth_phase.py +0 -0
  213. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_flood_mapping_pipeline.py +0 -0
  214. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_gcp_reprojection.py +0 -0
  215. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_geology_indices_and_rvi_fix.py +0 -0
  216. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_geoserver_generic.py +0 -0
  217. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_google_earth_engine.py +0 -0
  218. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_inpe_cbers.py +0 -0
  219. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_insar.py +0 -0
  220. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_insar_optical_fusion_pipeline.py +0 -0
  221. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_ionosphere.py +0 -0
  222. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_isro_bhuvan.py +0 -0
  223. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_jaxa_earth.py +0 -0
  224. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_lightweight_prefetch.py +0 -0
  225. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_map_preview_consolidation.py +0 -0
  226. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_models.py +0 -0
  227. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_monitor.py +0 -0
  228. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_nasa_earthdata_cloud_s3_fix.py +0 -0
  229. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_nasa_earthdata_public_search.py +0 -0
  230. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_network_thinning.py +0 -0
  231. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_noaa_big_data.py +0 -0
  232. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_offset_tracking.py +0 -0
  233. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_opentopography_pointcloud_usgs.py +0 -0
  234. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_optical_offset_tracking.py +0 -0
  235. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_optical_validation_wiring.py +0 -0
  236. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_optical_validator.py +0 -0
  237. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_optical_validator_stac.py +0 -0
  238. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_pgv_integration_contract.py +0 -0
  239. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_pipeline_process_export.py +0 -0
  240. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_planet_asset_type_fix.py +0 -0
  241. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_preflight_gate.py +0 -0
  242. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_preflight_quiet.py +0 -0
  243. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_preflight_spatial_baseline.py +0 -0
  244. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_provider_geometry_audit.py +0 -0
  245. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_provider_scene_disambiguation.py +0 -0
  246. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_providers.py +0 -0
  247. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_ps_selection.py +0 -0
  248. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_raster_collocation_integration.py +0 -0
  249. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_reference_pixel_and_despike.py +0 -0
  250. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_risk_mapper.py +0 -0
  251. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_risk_mapping.py +0 -0
  252. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_sar_pipelines.py +0 -0
  253. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_screen_stack_orchestration.py +0 -0
  254. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_search_download.py +0 -0
  255. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_sentinel_hub_catalog_fix.py +0 -0
  256. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_sign_convention.py +0 -0
  257. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_splitspectrum_diagnostic.py +0 -0
  258. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_stack_selection_consolidation.py +0 -0
  259. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_state.py +0 -0
  260. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_strain_and_fusion.py +0 -0
  261. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_streaming.py +0 -0
  262. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_terrain_corrected_change_pipeline.py +0 -0
  263. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_topo_r2_bug.py +0 -0
  264. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_uq_exporter.py +0 -0
  265. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_utils.py +0 -0
  266. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_vegetation_disturbance_pipeline.py +0 -0
  267. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/tests/test_viz_plot.py +0 -0
  268. {pygeofetch-2.6.9.8 → pygeofetch-2.6.9.9}/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.8.4
23
+ ## [Unreleased] — v2.6.9.9.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.8.4] — 2026-08-25 (latest)
133
+ ## [2.6.9.9.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.8] — 2026-08-24
152
+ ## [2.6.9.9] — 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.8.4 — 2026-07-12"** describing 22+ providers, Sentinel-1C/1D
264
+ **"2.6.9.9.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.8.4 was
266
+ management, 17 spectral indices, and various bug fixes. **2.6.9.9.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.8.4`**, dated
410
- 2026-07-29 and 2026-07-12. **2.6.9.8.4 was only ever released once**,
409
+ 1. **Two different entries were both labeled `2.6.9.9.4`**, dated
410
+ 2026-07-29 and 2026-07-12. **2.6.9.9.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.8
3
+ Version: 2.6.9.9
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.8.1},
374
+ version = {2.6.9.9.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.8.1},
232
+ version = {2.6.9.9.1},
233
233
  doi = {10.5281/zenodo.22087230},
234
234
  url = {https://doi.org/10.5281/zenodo.22087230}
235
235
  }
@@ -30,7 +30,7 @@ CLI::
30
30
  pygeofetch doctor
31
31
  """
32
32
 
33
- __version__ = "2.6.9.8.4"
33
+ __version__ = "2.6.9.9.4"
34
34
  __author__ = "PyGeoFetch Contributors"
35
35
  __license__ = "MIT"
36
36
 
@@ -229,6 +229,11 @@ class AdaptiveDownloader:
229
229
  # network truncation is typically transient. Route through
230
230
  # the same backoff-and-retry path a raised exception would
231
231
  # take, instead of returning early.
232
+ # A refused login does not get better by retrying (and repeated
233
+ # failed logins can lock an account), so stop at once.
234
+ if getattr(result, "error_type", None) == "AuthenticationError":
235
+ logger.error(f"Download failed (authentication): {result.error}")
236
+ return result
232
237
  if attempt < options.retry_attempts:
233
238
  delay = self._backoff(attempt, options)
234
239
  logger.warning(
@@ -245,6 +250,18 @@ class AdaptiveDownloader:
245
250
  )
246
251
  return result
247
252
  except Exception as exc:
253
+ from pygeofetch.providers.base import AuthenticationError as _AuthErr
254
+
255
+ if isinstance(exc, _AuthErr):
256
+ logger.error(f"Download failed (authentication): {exc}")
257
+ return DownloadResult(
258
+ status=DownloadStatus.FAILED,
259
+ data_id=data.id,
260
+ provider=data.provider,
261
+ error=str(exc),
262
+ error_type="AuthenticationError",
263
+ retries_used=attempt,
264
+ )
248
265
  if attempt < options.retry_attempts:
249
266
  delay = self._backoff(attempt, options)
250
267
  logger.warning(
@@ -1352,4 +1369,4 @@ class AdaptiveDownloader:
1352
1369
  @property
1353
1370
  def _result_total_size_mb(self) -> float:
1354
1371
  """Property used by result objects."""
1355
- return 0.0
1372
+ return 0.0
@@ -1,4 +1,4 @@
1
- {% set version = "2.6.9.8.4" %}
1
+ {% set version = "2.6.9.9.4" %}
2
2
 
3
3
  package:
4
4
  name: pygeofetch
@@ -85,12 +85,45 @@ def _bbox_to_wkt_polygon(
85
85
  )
86
86
 
87
87
 
88
+ class _EarthdataSession:
89
+ """``requests.Session`` that keeps credentials only for the Earthdata login host across redirects.
90
+
91
+ Based on NASA's recipe for Earthdata downloads in Python: requests drops
92
+ the Authorization header whenever a redirect changes host, which would
93
+ strip it on the way to urs.earthdata.nasa.gov. Here it is kept only when a
94
+ redirect goes to the login host, and dropped on every other change of host
95
+ (the way back carries a one-time code and cookies; the final signed S3 URL
96
+ must not receive credentials).
97
+ """
98
+
99
+ AUTH_HOST = "urs.earthdata.nasa.gov"
100
+
101
+ def __new__(cls): # build lazily so importing this module never needs requests
102
+ import requests
103
+ from requests.utils import urlparse
104
+
105
+ auth_host = cls.AUTH_HOST
106
+
107
+ class _Session(requests.Session):
108
+ def rebuild_auth(self, prepared_request, response):
109
+ headers = prepared_request.headers
110
+ if "Authorization" in headers:
111
+ original = urlparse(response.request.url).hostname
112
+ redirect = urlparse(prepared_request.url).hostname
113
+ if original != redirect and redirect != auth_host:
114
+ del headers["Authorization"]
115
+
116
+ return _Session()
117
+
118
+
88
119
  class AlaskaSatelliteFacilityProvider(AbstractBaseProvider):
89
120
  PROVIDER_ID = "alaska_satellite_facility"
90
121
  DISPLAY_NAME = "Alaska Satellite Facility (ASF) DAAC"
91
122
  # Real, verified: the search endpoint itself needs no authentication.
92
123
  # Only download() requires a real NASA Earthdata Login account.
93
124
  REQUIRES_AUTH = False
125
+ # ...but downloads do: the downloader authenticates before calling download().
126
+ REQUIRES_AUTH_FOR_DOWNLOAD = True
94
127
  DESCRIPTION = (
95
128
  "SAR data from Sentinel-1, NISAR, ALOS PALSAR, ERS, JERS via ASF's real "
96
129
  "Search API. Search is public; downloading requires a free NASA "
@@ -115,7 +148,7 @@ class AlaskaSatelliteFacilityProvider(AbstractBaseProvider):
115
148
  # Auth against a real EDL endpoint to confirm the credentials
116
149
  # are genuinely valid), since ASF uses the identical EDL system
117
150
  # -- not a second, independent implementation of the same check.
118
- token = _plain(credentials.api_key or credentials.access_key)
151
+ token = _plain(credentials.api_key or credentials.access_key or getattr(credentials, "token", None))
119
152
  password = _plain(credentials.get_password())
120
153
 
121
154
  if token:
@@ -149,9 +182,19 @@ class AlaskaSatelliteFacilityProvider(AbstractBaseProvider):
149
182
  auth=(credentials.username, password),
150
183
  timeout=30,
151
184
  )
152
- if resp.status_code not in (200, 404):
185
+ if resp.status_code in (401, 403):
186
+ # This pre-check calls an Earthdata endpoint that is documented for
187
+ # tokens; it can answer 401 even when the same login works for a
188
+ # real download. Do not block here: the download itself
189
+ # (redirect through urs.earthdata.nasa.gov) is the authoritative test
190
+ # and reports precisely why it was refused.
191
+ self._logger.warning(
192
+ f"{self.DISPLAY_NAME}: Earthdata pre-check answered HTTP {resp.status_code}; "
193
+ "continuing, the download will confirm whether the login is accepted"
194
+ )
195
+ elif resp.status_code not in (200, 404):
153
196
  raise AuthenticationError(
154
- f"{self.DISPLAY_NAME}: NASA Earthdata login failed (HTTP {resp.status_code})"
197
+ f"{self.DISPLAY_NAME}: NASA Earthdata login check failed (HTTP {resp.status_code})"
155
198
  )
156
199
  except AuthenticationError:
157
200
  raise
@@ -176,6 +219,58 @@ class AlaskaSatelliteFacilityProvider(AbstractBaseProvider):
176
219
  )
177
220
  return session
178
221
 
222
+ def _authenticate_from_stored_credentials(self) -> None:
223
+ """Authenticate with an Earthdata login found in pygeofetch's credential store or the environment.
224
+
225
+ Looks, in order, for credentials stored for this provider, then for
226
+ ``nasa_earthdata`` / ``nasa_earthdata_cloud`` (the same Earthdata Login), in
227
+ both storage backends, then for ``EARTHDATA_TOKEN`` or
228
+ ``EARTHDATA_USERNAME`` + ``EARTHDATA_PASSWORD``. Raises with a clear
229
+ message when none is found.
230
+ """
231
+ import os
232
+
233
+ tried = []
234
+ try:
235
+ from pygeofetch.core.authenticator import AuthManager
236
+ except Exception: # pragma: no cover
237
+ AuthManager = None # noqa: N806
238
+ if AuthManager is not None:
239
+ for backend in ("file", "keyring"):
240
+ try:
241
+ store = AuthManager(storage_backend=backend)
242
+ except Exception:
243
+ continue
244
+ for pid in (self.PROVIDER_ID, "nasa_earthdata", "nasa_earthdata_cloud"):
245
+ tried.append(f"{pid} ({backend})")
246
+ try:
247
+ creds = store.get_credentials(pid)
248
+ except Exception:
249
+ creds = None
250
+ if creds is not None and self.validate_credentials(creds):
251
+ self.authenticate(creds)
252
+ self._logger.info(f"{self.DISPLAY_NAME}: using Earthdata login stored for {pid!r} ({backend})")
253
+ return
254
+ token = os.environ.get("EARTHDATA_TOKEN")
255
+ user, password = os.environ.get("EARTHDATA_USERNAME"), os.environ.get("EARTHDATA_PASSWORD")
256
+ if token or (user and password):
257
+ from pydantic import SecretStr
258
+
259
+ creds = Credentials(
260
+ provider=self.PROVIDER_ID,
261
+ username=user,
262
+ password=SecretStr(password) if password else None,
263
+ api_key=SecretStr(token) if token else None,
264
+ )
265
+ self.authenticate(creds)
266
+ self._logger.info(f"{self.DISPLAY_NAME}: using the Earthdata login from environment variables")
267
+ return
268
+ raise AuthenticationError(
269
+ f"{self.DISPLAY_NAME}: no NASA Earthdata login found (looked in: {', '.join(tried) or 'credential store'}, "
270
+ "EARTHDATA_TOKEN, EARTHDATA_USERNAME/EARTHDATA_PASSWORD). Add one with: "
271
+ f"pygeofetch auth add {self.PROVIDER_ID} --username USER --password PASSWORD"
272
+ )
273
+
179
274
  def validate_credentials(self, credentials: Credentials) -> bool:
180
275
  has_token = bool(credentials.api_key or credentials.access_key)
181
276
  has_basic = bool(
@@ -297,50 +392,69 @@ class AlaskaSatelliteFacilityProvider(AbstractBaseProvider):
297
392
  def download(
298
393
  self, data: SatelliteData, destination: Path, options: DownloadOptions
299
394
  ) -> DownloadResult:
395
+ """Stream every http asset of ``data`` to ``destination`` with NASA Earthdata Login.
396
+
397
+ Earthdata downloads redirect through urs.earthdata.nasa.gov (login) and
398
+ then to a signed S3 URL. A plain HTTP client drops the credentials at the
399
+ first cross-host redirect, so the login never reaches Earthdata. This uses
400
+ the redirect handling NASA documents for Python clients: credentials are
401
+ kept for the Earthdata login host only, and dropped everywhere else (S3).
402
+ A bearer token (``api_key``) works the same way. Files are written to
403
+ ``<name>.part`` and renamed when complete; finished files are skipped.
404
+ """
300
405
  self.require_auth()
301
- import httpx
302
-
406
+ if self._session is None:
407
+ # The downloader normally authenticates first; if it did not (older downloader, or the
408
+ # provider used directly), find the Earthdata login ourselves.
409
+ self._authenticate_from_stored_credentials()
303
410
  destination = Path(destination)
304
411
  destination.mkdir(parents=True, exist_ok=True)
305
412
  start = time.time()
306
413
  output_paths, total_bytes = [], 0
307
-
308
- auth_mode = (self._active_session().session_data or {}).get("auth_mode")
309
- headers: dict[str, str] = {}
310
- auth: tuple[str, str] | None = None
311
- if auth_mode == "bearer_token":
312
- headers["Authorization"] = (
313
- f"Bearer {self._active_session().session_data['token']}"
314
- )
315
- elif auth_mode == "basic":
316
- auth = (
317
- self._active_session().session_data["username"],
318
- self._active_session().session_data["password"],
319
- )
320
-
414
+ session_data = self._active_session().session_data or {}
415
+ http = _EarthdataSession()
416
+ if session_data.get("auth_mode") == "bearer_token":
417
+ http.headers["Authorization"] = f"Bearer {session_data['token']}"
418
+ elif session_data.get("auth_mode") == "basic":
419
+ http.auth = (session_data["username"], session_data["password"])
420
+
421
+ errors = []
321
422
  for key, asset in (data.data_assets or data.assets).items():
322
423
  if not asset.href or not asset.href.startswith("http"):
323
424
  continue
324
425
  out_file = destination / (asset.href.split("/")[-1] or f"{data.id}_{key}")
426
+ if out_file.exists() and out_file.stat().st_size > 0 and getattr(options, "resume", True):
427
+ output_paths.append(out_file)
428
+ total_bytes += out_file.stat().st_size
429
+ continue
430
+ part = out_file.with_name(out_file.name + ".part")
325
431
  try:
326
- with httpx.stream(
327
- "GET",
328
- asset.href,
329
- headers=headers,
330
- auth=auth,
331
- timeout=options.timeout_seconds,
332
- follow_redirects=True,
333
- ) as resp:
334
- self._handle_http_error(resp)
335
- with open(out_file, "wb") as f:
336
- f.writelines(
337
- resp.iter_bytes(
338
- chunk_size=int(options.chunk_size_mb * 1024 * 1024)
339
- )
432
+ with http.get(asset.href, stream=True, timeout=options.timeout_seconds, allow_redirects=True) as resp:
433
+ if resp.status_code in (401, 403):
434
+ raise AuthenticationError(
435
+ f"{self.DISPLAY_NAME}: Earthdata refused the download (HTTP {resp.status_code}). Likely causes: "
436
+ "(1) wrong username/password (log in at https://urs.earthdata.nasa.gov to test; a password "
437
+ "with special characters can be mangled when typed at a shell, so quote it or use a token); "
438
+ "(2) the ASF / NISAR applications are not approved in your Earthdata profile "
439
+ "(Applications > Authorized Apps > Approve More Applications, then accept the EULA); "
440
+ "(3) use a token instead: create one under 'Generate Token' on your Earthdata profile and run "
441
+ "`pygeofetch auth add alaska_satellite_facility --api-key TOKEN`."
442
+ )
443
+ resp.raise_for_status()
444
+ if "text/html" in resp.headers.get("Content-Type", ""):
445
+ raise AuthenticationError(
446
+ f"{self.DISPLAY_NAME}: received an HTML page instead of data (Earthdata login page?)"
340
447
  )
448
+ with open(part, "wb") as f:
449
+ for chunk in resp.iter_content(chunk_size=int(options.chunk_size_mb * 1024 * 1024)):
450
+ if chunk:
451
+ f.write(chunk)
452
+ part.replace(out_file)
341
453
  output_paths.append(out_file)
342
454
  total_bytes += out_file.stat().st_size
343
455
  except Exception as exc:
456
+ part.unlink(missing_ok=True)
457
+ errors.append(f"{key}: {exc}")
344
458
  self._logger.warning(f"Asset {key} failed: {exc}")
345
459
 
346
460
  if not output_paths:
@@ -348,7 +462,8 @@ class AlaskaSatelliteFacilityProvider(AbstractBaseProvider):
348
462
  status=DownloadStatus.FAILED,
349
463
  data_id=data.id,
350
464
  provider=self.PROVIDER_ID,
351
- error="No assets downloaded",
465
+ error="; ".join(errors) or "No assets downloaded",
466
+ error_type="AuthenticationError" if any("refused the download" in e for e in errors) else None,
352
467
  )
353
468
  return DownloadResult(
354
469
  status=DownloadStatus.COMPLETED,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pygeofetch
3
- Version: 2.6.9.8
3
+ Version: 2.6.9.9
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.8.1},
374
+ version = {2.6.9.9.1},
375
375
  doi = {10.5281/zenodo.22087230},
376
376
  url = {https://doi.org/10.5281/zenodo.22087230}
377
377
  }
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pygeofetch"
7
- version = "2.6.9.8"
7
+ version = "2.6.9.9"
8
8
  description = "Universal satellite data pipeline + geospatial processing platform"
9
9
  readme = "README.md"
10
10
  license = { file = "LICENSE" }
File without changes
File without changes