c3s-event-attribution-tools 0.0.3__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.

Potentially problematic release.


This version of c3s-event-attribution-tools might be problematic. Click here for more details.

Files changed (26) hide show
  1. c3s_event_attribution_tools-0.0.3/PKG-INFO +100 -0
  2. c3s_event_attribution_tools-0.0.3/README.md +67 -0
  3. c3s_event_attribution_tools-0.0.3/c3s_event_attribution_tools/LogoLine_horizon_C3S.png +0 -0
  4. c3s_event_attribution_tools-0.0.3/c3s_event_attribution_tools/RobotoCondensed-Regular.ttf +0 -0
  5. c3s_event_attribution_tools-0.0.3/c3s_event_attribution_tools/__init__.py +4 -0
  6. c3s_event_attribution_tools-0.0.3/c3s_event_attribution_tools/analogue_functions_C3S.py +2296 -0
  7. c3s_event_attribution_tools-0.0.3/c3s_event_attribution_tools/constants.py +1 -0
  8. c3s_event_attribution_tools-0.0.3/c3s_event_attribution_tools/data/__init__.py +1252 -0
  9. c3s_event_attribution_tools-0.0.3/c3s_event_attribution_tools/data/beacon_client.py +172 -0
  10. c3s_event_attribution_tools-0.0.3/c3s_event_attribution_tools/data/cds_client.py +717 -0
  11. c3s_event_attribution_tools-0.0.3/c3s_event_attribution_tools/data/conversions.py +235 -0
  12. c3s_event_attribution_tools-0.0.3/c3s_event_attribution_tools/data/cordex_client.py +77 -0
  13. c3s_event_attribution_tools-0.0.3/c3s_event_attribution_tools/data/mars_client.py +568 -0
  14. c3s_event_attribution_tools-0.0.3/c3s_event_attribution_tools/data/variable.py +233 -0
  15. c3s_event_attribution_tools-0.0.3/c3s_event_attribution_tools/deprecated.py +522 -0
  16. c3s_event_attribution_tools-0.0.3/c3s_event_attribution_tools/plot.py +2279 -0
  17. c3s_event_attribution_tools-0.0.3/c3s_event_attribution_tools/process.py +1526 -0
  18. c3s_event_attribution_tools-0.0.3/c3s_event_attribution_tools/utils.py +1521 -0
  19. c3s_event_attribution_tools-0.0.3/c3s_event_attribution_tools.egg-info/PKG-INFO +100 -0
  20. c3s_event_attribution_tools-0.0.3/c3s_event_attribution_tools.egg-info/SOURCES.txt +24 -0
  21. c3s_event_attribution_tools-0.0.3/c3s_event_attribution_tools.egg-info/dependency_links.txt +1 -0
  22. c3s_event_attribution_tools-0.0.3/c3s_event_attribution_tools.egg-info/requires.txt +24 -0
  23. c3s_event_attribution_tools-0.0.3/c3s_event_attribution_tools.egg-info/top_level.txt +6 -0
  24. c3s_event_attribution_tools-0.0.3/input-notebooks/C3S_analogues-main/analogue_functions_C3S.py +546 -0
  25. c3s_event_attribution_tools-0.0.3/pyproject.toml +67 -0
  26. c3s_event_attribution_tools-0.0.3/setup.cfg +4 -0
@@ -0,0 +1,100 @@
1
+ Metadata-Version: 2.4
2
+ Name: c3s-event-attribution-tools
3
+ Version: 0.0.3
4
+ Summary: C3S 451 Event attribution tools library for Python
5
+ Author-email: Paul Weerheim <paul@maris.nl>, Tjerk Krijger <tjerk@maris.nl>, Robin Kooyman <robin@maris.nl>, Jasper van den Barg <jasper@maris.nl>, Daniel Arteaga <daniel@maris.nl>
6
+ License-Expression: Apache-2.0
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Operating System :: OS Independent
9
+ Requires-Python: >=3.7
10
+ Description-Content-Type: text/markdown
11
+ Requires-Dist: requests>=2.0.0
12
+ Requires-Dist: pandas>=2.0.0
13
+ Requires-Dist: pyarrow>=19.0.1
14
+ Requires-Dist: matplotlib>=3.0.0
15
+ Requires-Dist: xarray>=2025.1.0
16
+ Requires-Dist: netcdf4>=1.7.2
17
+ Requires-Dist: cdsapi>=0.7.6
18
+ Requires-Dist: geopandas
19
+ Requires-Dist: plotly
20
+ Requires-Dist: contextily
21
+ Requires-Dist: regionmask
22
+ Requires-Dist: cmocean
23
+ Requires-Dist: beacon-api>=1.1.3
24
+ Requires-Dist: cartopy
25
+ Requires-Dist: networkx
26
+ Requires-Dist: scitools-iris; sys_platform == "linux" or sys_platform == "darwin"
27
+ Requires-Dist: ecmwf-api-client>=1.6.1; sys_platform == "linux" or sys_platform == "darwin"
28
+ Requires-Dist: ipywidgets>=8.1.7
29
+ Requires-Dist: scipy>=1.16.0
30
+ Requires-Dist: rpy2>=3.6.0
31
+ Requires-Dist: requests>=2.32.4
32
+ Requires-Dist: aiohttp>=3.13.0
33
+
34
+
35
+ # C3S Event Attirbution Tools
36
+
37
+ This repository is for the Event Attribution Tools library for the C3S-451 project.
38
+
39
+ ## Documentation:
40
+
41
+ You can find the github pages documentation site [here](https://maris-development.github.io/c3s-451/latest/)
42
+
43
+ ## Installation
44
+
45
+ Install using PyPi:
46
+ `pip install c3s-event-attribution-tools`
47
+
48
+ Or install from GitHub directly:
49
+ `pip install git+https://github.com/maris-development/c3s-451`
50
+
51
+ ## Usage
52
+
53
+ For more examples please view the example notebooks in [the repository.](https://github.com/maris-development/c3s-451)
54
+
55
+ ```python
56
+ from datetime import datetime, timedelta
57
+ import os
58
+ from c3s_event_attribution_tools.data import DataClient
59
+
60
+ climate_data_store_token = '#######-####-####-####-############' #placeholder
61
+ your_save_directory = os.path.join(os.getcwd(), "../data")
62
+ bbox = (-105, 22, -100, 27)
63
+ event_end = datetime(2024, 6, 7)
64
+ event_start = event_end - timedelta(days=14)
65
+ parameter = "Tmean"
66
+ to_unit = "c"
67
+
68
+ gr_daily = DataClient(climate_data_store_token).fetch_data(parameter=parameter, bbox=bbox, time_range=(datetime(1951,1,1), event_end), to_unit=to_unit)
69
+
70
+ gr_daily.head()
71
+
72
+ ```
73
+
74
+ # Deployment to PyPi
75
+
76
+
77
+
78
+ 1. **Install uv** (if you haven't):
79
+ ```bash
80
+ curl -LsSf https://astral.sh/uv/install.sh | sh
81
+
82
+ ```
83
+
84
+
85
+ 2. **Build and Publish**:
86
+ From your project root, run:
87
+ ```bash
88
+ uv build
89
+ uv publish
90
+
91
+ ```
92
+
93
+
94
+ 3. **Authentication**:
95
+ When prompted for a username, enter `__token__`. For the password, paste your PyPI token (including the `pypi-` prefix).
96
+
97
+
98
+
99
+
100
+
@@ -0,0 +1,67 @@
1
+
2
+ # C3S Event Attirbution Tools
3
+
4
+ This repository is for the Event Attribution Tools library for the C3S-451 project.
5
+
6
+ ## Documentation:
7
+
8
+ You can find the github pages documentation site [here](https://maris-development.github.io/c3s-451/latest/)
9
+
10
+ ## Installation
11
+
12
+ Install using PyPi:
13
+ `pip install c3s-event-attribution-tools`
14
+
15
+ Or install from GitHub directly:
16
+ `pip install git+https://github.com/maris-development/c3s-451`
17
+
18
+ ## Usage
19
+
20
+ For more examples please view the example notebooks in [the repository.](https://github.com/maris-development/c3s-451)
21
+
22
+ ```python
23
+ from datetime import datetime, timedelta
24
+ import os
25
+ from c3s_event_attribution_tools.data import DataClient
26
+
27
+ climate_data_store_token = '#######-####-####-####-############' #placeholder
28
+ your_save_directory = os.path.join(os.getcwd(), "../data")
29
+ bbox = (-105, 22, -100, 27)
30
+ event_end = datetime(2024, 6, 7)
31
+ event_start = event_end - timedelta(days=14)
32
+ parameter = "Tmean"
33
+ to_unit = "c"
34
+
35
+ gr_daily = DataClient(climate_data_store_token).fetch_data(parameter=parameter, bbox=bbox, time_range=(datetime(1951,1,1), event_end), to_unit=to_unit)
36
+
37
+ gr_daily.head()
38
+
39
+ ```
40
+
41
+ # Deployment to PyPi
42
+
43
+
44
+
45
+ 1. **Install uv** (if you haven't):
46
+ ```bash
47
+ curl -LsSf https://astral.sh/uv/install.sh | sh
48
+
49
+ ```
50
+
51
+
52
+ 2. **Build and Publish**:
53
+ From your project root, run:
54
+ ```bash
55
+ uv build
56
+ uv publish
57
+
58
+ ```
59
+
60
+
61
+ 3. **Authentication**:
62
+ When prompted for a username, enter `__token__`. For the password, paste your PyPI token (including the `pypi-` prefix).
63
+
64
+
65
+
66
+
67
+
@@ -0,0 +1,4 @@
1
+ from .data import *
2
+ from .plot import *
3
+ from .utils import *
4
+ from .process import *