climate-toolkit 0.1.0__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 (141) hide show
  1. climate_toolkit-0.1.0/LICENSE +21 -0
  2. climate_toolkit-0.1.0/PKG-INFO +1548 -0
  3. climate_toolkit-0.1.0/README.md +1510 -0
  4. climate_toolkit-0.1.0/climate_toolkit/__init__.py +109 -0
  5. climate_toolkit-0.1.0/climate_toolkit/_resources.py +45 -0
  6. climate_toolkit-0.1.0/climate_toolkit/calculate_hazards/__init__.py +14 -0
  7. climate_toolkit-0.1.0/climate_toolkit/calculate_hazards/crop_water_balance_params.json +58 -0
  8. climate_toolkit-0.1.0/climate_toolkit/calculate_hazards/ensemble_hazards.py +1317 -0
  9. climate_toolkit-0.1.0/climate_toolkit/calculate_hazards/hazards.py +3272 -0
  10. climate_toolkit-0.1.0/climate_toolkit/cli.py +89 -0
  11. climate_toolkit-0.1.0/climate_toolkit/climate_statistics/__init__.py +14 -0
  12. climate_toolkit-0.1.0/climate_toolkit/climate_statistics/ensemble_statistics.py +1065 -0
  13. climate_toolkit-0.1.0/climate_toolkit/climate_statistics/statistics.py +3375 -0
  14. climate_toolkit-0.1.0/climate_toolkit/climatology/__init__.py +104 -0
  15. climate_toolkit-0.1.0/climate_toolkit/climatology/_cli_common.py +172 -0
  16. climate_toolkit-0.1.0/climate_toolkit/climatology/heat_stress.py +675 -0
  17. climate_toolkit-0.1.0/climate_toolkit/climatology/human_heat_stress.py +389 -0
  18. climate_toolkit-0.1.0/climate_toolkit/climatology/long_term_climatology.py +1939 -0
  19. climate_toolkit-0.1.0/climate_toolkit/climatology/spei.py +745 -0
  20. climate_toolkit-0.1.0/climate_toolkit/climatology/vpd.py +246 -0
  21. climate_toolkit-0.1.0/climate_toolkit/climatology/xclim_reference.py +988 -0
  22. climate_toolkit-0.1.0/climate_toolkit/compare_datasets/__init__.py +14 -0
  23. climate_toolkit-0.1.0/climate_toolkit/compare_datasets/compare_datasets.py +1070 -0
  24. climate_toolkit-0.1.0/climate_toolkit/compare_periods/__init__.py +14 -0
  25. climate_toolkit-0.1.0/climate_toolkit/compare_periods/ensemble_periods.py +2899 -0
  26. climate_toolkit-0.1.0/climate_toolkit/compare_periods/periods.py +1892 -0
  27. climate_toolkit-0.1.0/climate_toolkit/crop_calendar/__init__.py +94 -0
  28. climate_toolkit-0.1.0/climate_toolkit/crop_calendar/ggcmi.py +198 -0
  29. climate_toolkit-0.1.0/climate_toolkit/crop_calendar/registry.py +102 -0
  30. climate_toolkit-0.1.0/climate_toolkit/data/__init__.py +1 -0
  31. climate_toolkit-0.1.0/climate_toolkit/data/ggcmi_phase3/__init__.py +1 -0
  32. climate_toolkit-0.1.0/climate_toolkit/data/ggcmi_phase3/crop_calendar.parquet +0 -0
  33. climate_toolkit-0.1.0/climate_toolkit/data/ggcmi_phase3/crop_calendar_manifest.json +42 -0
  34. climate_toolkit-0.1.0/climate_toolkit/fetch_data/__init__.py +61 -0
  35. climate_toolkit-0.1.0/climate_toolkit/fetch_data/cache_inventory.py +378 -0
  36. climate_toolkit-0.1.0/climate_toolkit/fetch_data/fetch_data.py +645 -0
  37. climate_toolkit-0.1.0/climate_toolkit/fetch_data/gee_xee_batch.py +1133 -0
  38. climate_toolkit-0.1.0/climate_toolkit/fetch_data/multi_site.py +220 -0
  39. climate_toolkit-0.1.0/climate_toolkit/fetch_data/nex_gddp_batch.py +1017 -0
  40. climate_toolkit-0.1.0/climate_toolkit/fetch_data/preprocess_data/__init__.py +18 -0
  41. climate_toolkit-0.1.0/climate_toolkit/fetch_data/preprocess_data/preprocess_data.py +332 -0
  42. climate_toolkit-0.1.0/climate_toolkit/fetch_data/runtime_notes.py +80 -0
  43. climate_toolkit-0.1.0/climate_toolkit/fetch_data/source_data/__init__.py +15 -0
  44. climate_toolkit-0.1.0/climate_toolkit/fetch_data/source_data/source_data.py +398 -0
  45. climate_toolkit-0.1.0/climate_toolkit/fetch_data/source_data/sources/agera_5.py +15 -0
  46. climate_toolkit-0.1.0/climate_toolkit/fetch_data/source_data/sources/chirps.py +63 -0
  47. climate_toolkit-0.1.0/climate_toolkit/fetch_data/source_data/sources/chirts.py +63 -0
  48. climate_toolkit-0.1.0/climate_toolkit/fetch_data/source_data/sources/era_5.py +15 -0
  49. climate_toolkit-0.1.0/climate_toolkit/fetch_data/source_data/sources/gee.py +999 -0
  50. climate_toolkit-0.1.0/climate_toolkit/fetch_data/source_data/sources/gee_xee.py +107 -0
  51. climate_toolkit-0.1.0/climate_toolkit/fetch_data/source_data/sources/ghcn_daily.py +87 -0
  52. climate_toolkit-0.1.0/climate_toolkit/fetch_data/source_data/sources/gsod.py +87 -0
  53. climate_toolkit-0.1.0/climate_toolkit/fetch_data/source_data/sources/imerg.py +106 -0
  54. climate_toolkit-0.1.0/climate_toolkit/fetch_data/source_data/sources/nasa_power.py +414 -0
  55. climate_toolkit-0.1.0/climate_toolkit/fetch_data/source_data/sources/nex_gddp.py +357 -0
  56. climate_toolkit-0.1.0/climate_toolkit/fetch_data/source_data/sources/nex_gddp_xee.py +1062 -0
  57. climate_toolkit-0.1.0/climate_toolkit/fetch_data/source_data/sources/soil_grid.py +58 -0
  58. climate_toolkit-0.1.0/climate_toolkit/fetch_data/source_data/sources/tamsat.py +647 -0
  59. climate_toolkit-0.1.0/climate_toolkit/fetch_data/source_data/sources/terraclimate.py +96 -0
  60. climate_toolkit-0.1.0/climate_toolkit/fetch_data/source_data/sources/utils/__init__.py +177 -0
  61. climate_toolkit-0.1.0/climate_toolkit/fetch_data/source_data/sources/utils/config.yaml +227 -0
  62. climate_toolkit-0.1.0/climate_toolkit/fetch_data/source_data/sources/utils/models.py +539 -0
  63. climate_toolkit-0.1.0/climate_toolkit/fetch_data/source_data/sources/utils/settings.py +206 -0
  64. climate_toolkit-0.1.0/climate_toolkit/fetch_data/source_data/sources/xee_common.py +221 -0
  65. climate_toolkit-0.1.0/climate_toolkit/fetch_data/transform_data/__init__.py +20 -0
  66. climate_toolkit-0.1.0/climate_toolkit/fetch_data/transform_data/data_dictionary.yaml +96 -0
  67. climate_toolkit-0.1.0/climate_toolkit/fetch_data/transform_data/transform_data.py +343 -0
  68. climate_toolkit-0.1.0/climate_toolkit/gee_check.py +280 -0
  69. climate_toolkit-0.1.0/climate_toolkit/pipeline.py +307 -0
  70. climate_toolkit-0.1.0/climate_toolkit/season_analysis/__init__.py +24 -0
  71. climate_toolkit-0.1.0/climate_toolkit/season_analysis/ensemble.py +1016 -0
  72. climate_toolkit-0.1.0/climate_toolkit/season_analysis/season_identity.py +58 -0
  73. climate_toolkit-0.1.0/climate_toolkit/season_analysis/seasons.py +1817 -0
  74. climate_toolkit-0.1.0/climate_toolkit/weather_station/__init__.py +73 -0
  75. climate_toolkit-0.1.0/climate_toolkit/weather_station/compare.py +3236 -0
  76. climate_toolkit-0.1.0/climate_toolkit/weather_station/custom_station.py +464 -0
  77. climate_toolkit-0.1.0/climate_toolkit/weather_station/dem.py +153 -0
  78. climate_toolkit-0.1.0/climate_toolkit/weather_station/download.py +1440 -0
  79. climate_toolkit-0.1.0/climate_toolkit/weather_station/ghcn_daily.py +832 -0
  80. climate_toolkit-0.1.0/climate_toolkit/weather_station/gsod.py +835 -0
  81. climate_toolkit-0.1.0/climate_toolkit/weather_station/overrides.py +174 -0
  82. climate_toolkit-0.1.0/climate_toolkit/weather_station/station_selector.py +607 -0
  83. climate_toolkit-0.1.0/climate_toolkit.egg-info/PKG-INFO +1548 -0
  84. climate_toolkit-0.1.0/climate_toolkit.egg-info/SOURCES.txt +139 -0
  85. climate_toolkit-0.1.0/climate_toolkit.egg-info/dependency_links.txt +1 -0
  86. climate_toolkit-0.1.0/climate_toolkit.egg-info/entry_points.txt +18 -0
  87. climate_toolkit-0.1.0/climate_toolkit.egg-info/requires.txt +18 -0
  88. climate_toolkit-0.1.0/climate_toolkit.egg-info/top_level.txt +1 -0
  89. climate_toolkit-0.1.0/pyproject.toml +128 -0
  90. climate_toolkit-0.1.0/setup.cfg +4 -0
  91. climate_toolkit-0.1.0/tests/test_api_smoke.py +50 -0
  92. climate_toolkit-0.1.0/tests/test_auto_season_alignment_report.py +76 -0
  93. climate_toolkit-0.1.0/tests/test_cache_inventory.py +216 -0
  94. climate_toolkit-0.1.0/tests/test_cli_dispatch.py +73 -0
  95. climate_toolkit-0.1.0/tests/test_climatology_output.py +491 -0
  96. climate_toolkit-0.1.0/tests/test_climatology_typer_cli.py +150 -0
  97. climate_toolkit-0.1.0/tests/test_compare_datasets_source_policy.py +212 -0
  98. climate_toolkit-0.1.0/tests/test_compare_periods_baseline.py +2825 -0
  99. climate_toolkit-0.1.0/tests/test_crop_registry_hazards.py +21 -0
  100. climate_toolkit-0.1.0/tests/test_distribution_artifacts.py +155 -0
  101. climate_toolkit-0.1.0/tests/test_ensemble_hazards_aggregation.py +733 -0
  102. climate_toolkit-0.1.0/tests/test_ensemble_hazards_import.py +55 -0
  103. climate_toolkit-0.1.0/tests/test_ensemble_statistics_scenario_validation.py +375 -0
  104. climate_toolkit-0.1.0/tests/test_era_lte_workflow.py +594 -0
  105. climate_toolkit-0.1.0/tests/test_fetch_climate_data_usability.py +89 -0
  106. climate_toolkit-0.1.0/tests/test_fetch_model_resolution.py +49 -0
  107. climate_toolkit-0.1.0/tests/test_fetch_pipeline.py +1183 -0
  108. climate_toolkit-0.1.0/tests/test_gee_check.py +107 -0
  109. climate_toolkit-0.1.0/tests/test_gee_no_auto_auth.py +43 -0
  110. climate_toolkit-0.1.0/tests/test_gee_xee_batch.py +348 -0
  111. climate_toolkit-0.1.0/tests/test_ggcmi_crop_calendar.py +256 -0
  112. climate_toolkit-0.1.0/tests/test_ghcn_daily_station.py +2884 -0
  113. climate_toolkit-0.1.0/tests/test_hazard_thresholds.py +1873 -0
  114. climate_toolkit-0.1.0/tests/test_historical_workers_surface.py +292 -0
  115. climate_toolkit-0.1.0/tests/test_human_heat_stress.py +128 -0
  116. climate_toolkit-0.1.0/tests/test_install_shape.py +71 -0
  117. climate_toolkit-0.1.0/tests/test_lazy_package_roots.py +185 -0
  118. climate_toolkit-0.1.0/tests/test_matplotlib_not_stubbed.py +26 -0
  119. climate_toolkit-0.1.0/tests/test_multi_site_contract.py +90 -0
  120. climate_toolkit-0.1.0/tests/test_nasa_power_cache.py +141 -0
  121. climate_toolkit-0.1.0/tests/test_nex_gddp_batch.py +325 -0
  122. climate_toolkit-0.1.0/tests/test_nex_gddp_behavior.py +128 -0
  123. climate_toolkit-0.1.0/tests/test_nex_gddp_xee_poc.py +573 -0
  124. climate_toolkit-0.1.0/tests/test_package_import_hygiene.py +114 -0
  125. climate_toolkit-0.1.0/tests/test_package_resources.py +61 -0
  126. climate_toolkit-0.1.0/tests/test_packaging_metadata.py +262 -0
  127. climate_toolkit-0.1.0/tests/test_pipeline.py +148 -0
  128. climate_toolkit-0.1.0/tests/test_preprocess_imports.py +58 -0
  129. climate_toolkit-0.1.0/tests/test_season_analysis_ensemble_fixed.py +513 -0
  130. climate_toolkit-0.1.0/tests/test_season_identity.py +30 -0
  131. climate_toolkit-0.1.0/tests/test_seasons_nex_gddp.py +490 -0
  132. climate_toolkit-0.1.0/tests/test_soil_grid_cache.py +194 -0
  133. climate_toolkit-0.1.0/tests/test_spei.py +292 -0
  134. climate_toolkit-0.1.0/tests/test_spei_cli.py +122 -0
  135. climate_toolkit-0.1.0/tests/test_station_verbose_kwarg.py +40 -0
  136. climate_toolkit-0.1.0/tests/test_statistics_source_policy.py +1996 -0
  137. climate_toolkit-0.1.0/tests/test_tamsat_logging.py +206 -0
  138. climate_toolkit-0.1.0/tests/test_thi.py +175 -0
  139. climate_toolkit-0.1.0/tests/test_vpd.py +74 -0
  140. climate_toolkit-0.1.0/tests/test_xclim_reference_cli.py +117 -0
  141. climate_toolkit-0.1.0/tests/test_xee_common.py +89 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Climate Toolkit contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.