cavapy 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl

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.

Potentially problematic release.


This version of cavapy might be problematic. Click here for more details.

@@ -1,77 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: cavapy
3
- Version: 0.1.0
4
- Summary: CAVA Python package. Retrive and analyze climate data.
5
- Home-page: https://github.com/Risk-Team/cavapy
6
- License: MIT
7
- Author: Riccardo Soldan
8
- Author-email: riccardosoldan@hotmail.it
9
- Requires-Python: >=3.11,<4.0
10
- Classifier: License :: OSI Approved :: MIT License
11
- Classifier: Operating System :: OS Independent
12
- Classifier: Programming Language :: Python :: 3
13
- Classifier: Programming Language :: Python :: 3.11
14
- Classifier: Programming Language :: Python :: 3.12
15
- Classifier: Programming Language :: Python :: 3.13
16
- Requires-Dist: bottleneck (>=1.4.2,<2.0.0)
17
- Requires-Dist: dask (>=2024.11.2,<2025.0.0)
18
- Requires-Dist: geopandas (>=0.14.4,<0.15.0)
19
- Requires-Dist: llvmlite (==0.43.0)
20
- Requires-Dist: matplotlib (>=3.9.2,<4.0.0)
21
- Requires-Dist: netcdf4 (>=1.7.2,<2.0.0)
22
- Requires-Dist: xclim (>=0.53.2,<0.54.0)
23
- Project-URL: Repository, https://github.com/Risk-Team/cavapy
24
- Description-Content-Type: text/markdown
25
-
26
- #### **Status
27
-
28
- **Beta testing**
29
-
30
- # Introduction
31
- This project is about creating a Python function to automatically get the required climate data needed to run pyAEZ. This can be an optional feature of the pyAEZ climate module.
32
-
33
- ## Data source
34
- The climate data is available at the THREDDS data server of the University of Cantabria as part of the CAVA (Climate and Agriculture Risk Visualization and Assessment) product developed by FAO, the University of Cantabria, the University of Cape Town and Predictia.
35
- CAVA has available CORDEX-CORE climate models, the high resolution (25 Km) dynamically-downscaled climate models used in the IPCC report AR5. Additionally, CAVA offers access to state-of-the-art reanalyses datasets, such as W5E5 and ERA5.
36
-
37
- The currently available data is:
38
-
39
- - CORDEX-CORE simulations (3 GCMs donwscaled with 2 RCMs for two RCPs)
40
- - W5E5 and ERA5 reanalyses datasets
41
-
42
- Available variables are:
43
-
44
- - Daily maximum temperature (tasmax)
45
- - Daily minimum temperature (tasmin)
46
- - Daily precipitation (pr)
47
- - Daily relative humidity (hurs)
48
- - Daily wind speed (sfcWind)
49
- - Daily solar radiation (rsds)
50
-
51
-
52
-
53
- ## Usage
54
- The function can be downloaded from the script folder and imported, for example, as follow:
55
-
56
- ```
57
- import os
58
- os.chdir('/path/to/function')
59
- import cavapy
60
- # check documentation
61
- help(cavapy.get_climate_data)
62
-
63
- ```
64
- Depending on the interest, downloading climate data can be done in a few different ways. Note that GCM stands for General Circulation Model while RCP stands for Regional Climate Model. As the climate data comes from the CORDEX-CORE initiative, users can choose between 3 different GCMs downscaled with two RCMs. In total, there are six simulations for any given domain (except for CAS-22 where only three are available).
65
-
66
- Since bias-correction requires both the historical run of the CORDEX model and the observational dataset (in this case ERA5), even when the historical argument is set to False, the historical run will be used for learning the bias-correction factor.
67
-
68
- ```
69
- ### Bias-corrected climate projections
70
- Zambia_climate_data = cavapy.get_climate_data(country="Zambia", cordex_domain="AFR-22", rcp="rcp26", gcm="MPI", rcm="REMO", years_up_to=2030, obs=False, bias_correction=True, historical=False)
71
- ### Non bias-corrected climate projections
72
- Zambia_climate_data = cavapy.get_climate_data(country="Zambia", cordex_domain="AFR-22", rcp="rcp26", gcm="MPI", rcm="REMO", years_up_to=2030, obs=False, bias_correction=False, historical=False)
73
- ### Bias-corrected climate projections plus the historical run. This is useful when assessing changes in crop yield from the historical period. In this case, we provide the bias-corrected # historical run of the climate models plus the projections.
74
- Zambia_climate_data = cavapy.get_climate_data(country="Zambia", cordex_domain="AFR-22", rcp="rcp26", gcm="MPI", rcm="REMO", years_up_to=2030, obs=False, bias_correction=True, historical=True)
75
- ### Observations only (ERA5)
76
- Zambia_climate_data = cavapy.get_climate_data(country="Zambia", cordex_domain="AFR-22", rcp="rcp26", gcm="MPI", rcm="REMO", years_up_to=2030, obs=True, bias_correction=True, historical=True, years_obs=range(1980,2019))
77
- ```
@@ -1,5 +0,0 @@
1
- cavapy.py,sha256=epmNP1X7JZxsvunWHFve_IpR4hX9o8UMkd_iTxgKj8A,21690
2
- cavapy-0.1.0.dist-info/LICENSE,sha256=RQwEQjhceDnbQwzPXq77-QbteBn1Rh94TaOxgQN-CXw,1130
3
- cavapy-0.1.0.dist-info/METADATA,sha256=Xi6vHoxzvflSblsYHMlWlQizNNcuXX1XR6K0SP1fLEs,4132
4
- cavapy-0.1.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
5
- cavapy-0.1.0.dist-info/RECORD,,