windkit 0.8.0__tar.gz → 1.0.2__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.
- {windkit-0.8.0 → windkit-1.0.2}/CHANGELOG.md +279 -6
- {windkit-0.8.0 → windkit-1.0.2}/PKG-INFO +43 -20
- {windkit-0.8.0 → windkit-1.0.2}/README.md +9 -1
- {windkit-0.8.0 → windkit-1.0.2}/pyproject.toml +3 -8
- windkit-1.0.2/setup.cfg +65 -0
- windkit-1.0.2/windkit/__init__.py +294 -0
- {windkit-0.8.0 → windkit-1.0.2}/windkit/_errors.py +7 -1
- {windkit-0.8.0 → windkit-1.0.2}/windkit/_version.py +9 -4
- {windkit-0.8.0 → windkit-1.0.2}/windkit/_weibull_nb.py +0 -1
- {windkit-0.8.0 → windkit-1.0.2}/windkit/cfd.py +11 -6
- windkit-1.0.2/windkit/config.py +215 -0
- {windkit-0.8.0/windkit → windkit-1.0.2/windkit/data}/all_vars.json +43 -13
- windkit-1.0.2/windkit/data/color_table_roughness.json +92 -0
- windkit-1.0.2/windkit/data/landcover_tables/GWA4_micro.json +156 -0
- windkit-1.0.2/windkit/data/landcover_tables/NEWA_micro_v2.json +1 -0
- windkit-1.0.2/windkit/data/loss_tables/dtu_loss_table.csv +16 -0
- windkit-1.0.2/windkit/data/map_file_header_to_epsg_read.json +937 -0
- windkit-1.0.2/windkit/data/uncertainty_tables/dtu_uncertainty_table.csv +35 -0
- windkit-1.0.2/windkit/import_manager.py +44 -0
- windkit-1.0.2/windkit/integrations/__init__.py +0 -0
- {windkit-0.8.0/windkit → windkit-1.0.2/windkit/integrations}/_earth_engine.py +4 -13
- {windkit-0.8.0/windkit → windkit-1.0.2/windkit/integrations}/_gwa_map_api.py +41 -24
- {windkit-0.8.0/windkit → windkit-1.0.2/windkit/integrations}/_planetary_computer.py +12 -18
- {windkit-0.8.0 → windkit-1.0.2}/windkit/ltc/__init__.py +6 -0
- {windkit-0.8.0 → windkit-1.0.2}/windkit/ltc/_validation.py +25 -27
- {windkit-0.8.0 → windkit-1.0.2}/windkit/ltc/mcp.py +12 -10
- {windkit-0.8.0 → windkit-1.0.2}/windkit/ltc/scores.py +21 -22
- {windkit-0.8.0 → windkit-1.0.2}/windkit/plot/__init__.py +2 -0
- {windkit-0.8.0 → windkit-1.0.2}/windkit/plot/_colormaps.py +20 -2
- {windkit-0.8.0 → windkit-1.0.2}/windkit/plot/_helpers.py +32 -54
- {windkit-0.8.0 → windkit-1.0.2}/windkit/plot/color.py +9 -12
- windkit-1.0.2/windkit/plot/elevation_map.py +55 -0
- {windkit-0.8.0 → windkit-1.0.2}/windkit/plot/histogram.py +34 -23
- windkit-1.0.2/windkit/plot/landcover_map.py +70 -0
- {windkit-0.8.0 → windkit-1.0.2}/windkit/plot/operational_curves.py +13 -22
- {windkit-0.8.0 → windkit-1.0.2}/windkit/plot/raster_plot.py +6 -10
- {windkit-0.8.0 → windkit-1.0.2}/windkit/plot/roughness_rose.py +14 -20
- {windkit-0.8.0 → windkit-1.0.2}/windkit/plot/vertical_profile.py +3 -10
- {windkit-0.8.0 → windkit-1.0.2}/windkit/plot/wind_rose.py +7 -16
- {windkit-0.8.0 → windkit-1.0.2}/windkit/plot/wind_turbine.py +2 -1
- {windkit-0.8.0 → windkit-1.0.2}/windkit/spatial/__init__.py +88 -33
- {windkit-0.8.0 → windkit-1.0.2}/windkit/spatial/_bbox.py +12 -15
- {windkit-0.8.0 → windkit-1.0.2}/windkit/spatial/_crs.py +41 -21
- {windkit-0.8.0 → windkit-1.0.2}/windkit/spatial/_cuboid.py +2 -2
- {windkit-0.8.0 → windkit-1.0.2}/windkit/spatial/_interpolation.py +35 -185
- {windkit-0.8.0 → windkit-1.0.2}/windkit/spatial/_latitude.py +6 -3
- {windkit-0.8.0 → windkit-1.0.2}/windkit/spatial/_metpy_natural_neighbors.py +22 -12
- {windkit-0.8.0 → windkit-1.0.2}/windkit/spatial/_point.py +26 -17
- {windkit-0.8.0 → windkit-1.0.2}/windkit/spatial/_raster.py +24 -25
- {windkit-0.8.0 → windkit-1.0.2}/windkit/spatial/_struct.py +14 -6
- {windkit-0.8.0 → windkit-1.0.2}/windkit/spatial/_utm.py +3 -0
- {windkit-0.8.0 → windkit-1.0.2}/windkit/spatial/_vector.py +2 -3
- {windkit-0.8.0 → windkit-1.0.2}/windkit/spatial/_vertical.py +1 -0
- {windkit-0.8.0 → windkit-1.0.2}/windkit/spatial/decorators.py +8 -4
- {windkit-0.8.0 → windkit-1.0.2}/windkit/spatial/spatial.py +365 -119
- windkit-1.0.2/windkit/topography/__init__.py +0 -0
- {windkit-0.8.0/windkit → windkit-1.0.2/windkit/topography}/_vectormap_gml.py +23 -17
- windkit-1.0.2/windkit/topography/_vectormap_helpers.py +554 -0
- {windkit-0.8.0/windkit → windkit-1.0.2/windkit/topography}/get_map.py +51 -46
- {windkit-0.8.0/windkit → windkit-1.0.2/windkit/topography}/landcover.py +50 -46
- windkit-1.0.2/windkit/topography/map_conversion/__init__.py +3 -0
- {windkit-0.8.0/windkit → windkit-1.0.2/windkit/topography}/map_conversion/_polygons_constraints.py +1 -11
- {windkit-0.8.0/windkit → windkit-1.0.2/windkit/topography}/map_conversion/helper_functions.py +1 -7
- windkit-0.8.0/windkit/map_conversion/lines2poly.py → windkit-1.0.2/windkit/topography/map_conversion/lines_to_poly.py +23 -24
- windkit-0.8.0/windkit/map_conversion/poly2lines.py → windkit-1.0.2/windkit/topography/map_conversion/poly_to_lines.py +25 -20
- windkit-1.0.2/windkit/topography/map_conversions.py +899 -0
- {windkit-0.8.0/windkit → windkit-1.0.2/windkit/topography}/raster_map.py +193 -94
- windkit-1.0.2/windkit/topography/topography.py +481 -0
- {windkit-0.8.0/windkit → windkit-1.0.2/windkit/topography}/vector_map.py +368 -175
- windkit-1.0.2/windkit/tutorial_data.py +185 -0
- windkit-1.0.2/windkit/utils.py +34 -0
- {windkit-0.8.0 → windkit-1.0.2}/windkit/weibull.py +12 -0
- windkit-1.0.2/windkit/weng_workspace.py +256 -0
- {windkit-0.8.0 → windkit-1.0.2}/windkit/wind.py +41 -23
- windkit-1.0.2/windkit/wind_climate/__init__.py +0 -0
- {windkit-0.8.0/windkit → windkit-1.0.2/windkit/wind_climate}/binned_wind_climate.py +315 -254
- {windkit-0.8.0/windkit → windkit-1.0.2/windkit/wind_climate}/generalized_wind_climate.py +394 -89
- windkit-1.0.2/windkit/wind_climate/geostrophic_wind_climate.py +75 -0
- windkit-1.0.2/windkit/wind_climate/predicted_wind_climate.py +97 -0
- {windkit-0.8.0/windkit → windkit-1.0.2/windkit/wind_climate}/time_series_wind_climate.py +191 -50
- {windkit-0.8.0/windkit → windkit-1.0.2/windkit/wind_climate}/weibull_wind_climate.py +289 -187
- windkit-1.0.2/windkit/wind_climate/wind_climate.py +619 -0
- {windkit-0.8.0 → windkit-1.0.2}/windkit/wind_data.py +3 -1
- windkit-1.0.2/windkit/wind_farm/__init__.py +0 -0
- windkit-1.0.2/windkit/wind_farm/loss.py +185 -0
- windkit-1.0.2/windkit/wind_farm/uncertainty.py +333 -0
- {windkit-0.8.0/windkit → windkit-1.0.2/windkit/wind_farm}/wind_turbine_generator.py +41 -255
- {windkit-0.8.0/windkit → windkit-1.0.2/windkit/wind_farm}/wind_turbines.py +33 -28
- {windkit-0.8.0 → windkit-1.0.2}/windkit/workspace.py +120 -41
- windkit-1.0.2/windkit/xarray_structures/_validate.py +225 -0
- {windkit-0.8.0/windkit → windkit-1.0.2/windkit/xarray_structures}/data_structures.py +8 -6
- windkit-1.0.2/windkit/xarray_structures/direction.py +52 -0
- windkit-1.0.2/windkit/xarray_structures/empty.py +79 -0
- windkit-1.0.2/windkit/xarray_structures/metadata.py +519 -0
- windkit-1.0.2/windkit/xarray_structures/sector.py +93 -0
- windkit-1.0.2/windkit/xarray_structures/wsbin.py +95 -0
- windkit-1.0.2/windkit.egg-info/SOURCES.txt +107 -0
- windkit-0.8.0/.conda_env/dev_unix.yml +0 -44
- windkit-0.8.0/.conda_env/dev_win.yml +0 -42
- windkit-0.8.0/.conda_env/prod_unix.yml +0 -14
- windkit-0.8.0/.gitignore +0 -41
- windkit-0.8.0/.gitlab/merge_request_templates/default.md +0 -27
- windkit-0.8.0/.gitlab/merge_request_templates/release.md +0 -43
- windkit-0.8.0/.gitlab-ci.yml +0 -132
- windkit-0.8.0/.pre-commit-config.yaml +0 -36
- windkit-0.8.0/.pylintrc +0 -34
- windkit-0.8.0/MANIFEST.in +0 -8
- windkit-0.8.0/README-Internal.md +0 -66
- windkit-0.8.0/docs/.dockerignore +0 -6
- windkit-0.8.0/docs/.gitignore +0 -1
- windkit-0.8.0/docs/Dockerfile +0 -4
- windkit-0.8.0/docs/Makefile +0 -184
- windkit-0.8.0/docs/docker-compose.yml +0 -19
- windkit-0.8.0/docs/legacy/dev/dev-git.rst +0 -35
- windkit-0.8.0/docs/legacy/dev/dev-intro.rst +0 -45
- windkit-0.8.0/docs/legacy/dev/dev-pytest.rst +0 -40
- windkit-0.8.0/docs/legacy/dev/dev-sphinx.rst +0 -28
- windkit-0.8.0/docs/nginx.conf +0 -17
- windkit-0.8.0/docs/source/WAsP.bib +0 -187
- windkit-0.8.0/docs/source/_templates/autosummary/class.rst +0 -33
- windkit-0.8.0/docs/source/_templates/autosummary/module.rst +0 -39
- windkit-0.8.0/docs/source/conf.py +0 -315
- windkit-0.8.0/docs/source/development_roadmap.rst +0 -7
- windkit-0.8.0/docs/source/getting_started.rst +0 -13
- windkit-0.8.0/docs/source/index.rst +0 -59
- windkit-0.8.0/docs/source/installation.rst +0 -89
- windkit-0.8.0/docs/source/io/io.rst +0 -164
- windkit-0.8.0/docs/source/map_conversion.rst +0 -10
- windkit-0.8.0/docs/source/map_conversion_examples_nb.nblink +0 -3
- windkit-0.8.0/docs/source/plotting.rst +0 -14
- windkit-0.8.0/docs/source/plotting_examples.rst +0 -10
- windkit-0.8.0/docs/source/plotting_examples_nb.nblink +0 -3
- windkit-0.8.0/docs/source/plotting_user_guide.rst +0 -129
- windkit-0.8.0/docs/source/release_notes.rst +0 -8
- windkit-0.8.0/docs/source/topographic_data.rst +0 -76
- windkit-0.8.0/docs/source/wind_climate_objects.rst +0 -210
- windkit-0.8.0/docs/source/wind_turbines.rst +0 -138
- windkit-0.8.0/docs/source/windkit.rst +0 -57
- windkit-0.8.0/examples/ERA5_Sujawal_2010_2018_80m.nc +0 -0
- windkit-0.8.0/examples/long_term_correction.ipynb +0 -547
- windkit-0.8.0/pixi.lock +0 -31168
- windkit-0.8.0/pixi.toml +0 -63
- windkit-0.8.0/recipe/recipe.yaml +0 -54
- windkit-0.8.0/setup.cfg +0 -49
- windkit-0.8.0/windkit/__init__.py +0 -40
- windkit-0.8.0/windkit/_validate.py +0 -87
- windkit-0.8.0/windkit/_vectormap_helpers.py +0 -184
- windkit-0.8.0/windkit/config.py +0 -5
- windkit-0.8.0/windkit/elevation_map.py +0 -40
- windkit-0.8.0/windkit/empty.py +0 -761
- windkit-0.8.0/windkit/geospatial_imports.py +0 -52
- windkit-0.8.0/windkit/geostrophic_wind_climate.py +0 -59
- windkit-0.8.0/windkit/map_conversion/__init__.py +0 -3
- windkit-0.8.0/windkit/metadata.py +0 -495
- windkit-0.8.0/windkit/plot/landcover_map.py +0 -74
- windkit-0.8.0/windkit/roughness_map.py +0 -41
- windkit-0.8.0/windkit/sector.py +0 -211
- windkit-0.8.0/windkit/wind_climate.py +0 -290
- windkit-0.8.0/windkit.egg-info/SOURCES.txt +0 -134
- {windkit-0.8.0 → windkit-1.0.2}/LICENSE +0 -0
- {windkit-0.8.0 → windkit-1.0.2}/windkit/_rvea_xml.py +0 -0
- {windkit-0.8.0/windkit/landcovertables → windkit-1.0.2/windkit/data/landcover_tables}/CGLS-LC100.json +0 -0
- {windkit-0.8.0/windkit/landcovertables → windkit-1.0.2/windkit/data/landcover_tables}/CORINE.json +0 -0
- {windkit-0.8.0/windkit/landcovertables → windkit-1.0.2/windkit/data/landcover_tables}/ESA_CCI.json +0 -0
- {windkit-0.8.0/windkit/landcovertables → windkit-1.0.2/windkit/data/landcover_tables}/Globcover.json +0 -0
- {windkit-0.8.0/windkit/landcovertables → windkit-1.0.2/windkit/data/landcover_tables}/MODIS.json +0 -0
- {windkit-0.8.0/windkit/landcovertables → windkit-1.0.2/windkit/data/landcover_tables}/WorldCover.json +0 -0
- {windkit-0.8.0/windkit → windkit-1.0.2/windkit/data}/map_file_header_to_epsg.json +0 -0
- {windkit-0.8.0 → windkit-1.0.2}/windkit/ltc/regression.py +0 -0
- {windkit-0.8.0 → windkit-1.0.2}/windkit/spatial/README.md +0 -0
- {windkit-0.8.0 → windkit-1.0.2}/windkit/spatial/_dimensions.py +0 -0
|
@@ -2,7 +2,280 @@
|
|
|
2
2
|
|
|
3
3
|
All major changes are listed here.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 1.0.2 (2025-07-21)
|
|
6
|
+
|
|
7
|
+
WindKit 1.0.2 is a patch release to ensure consistent config and app data paths on windows. Both the config and app data paths are now set by default to ``C:\\Users\\<user>\\AppData\\Roaming\\DTU Wind Energy\\windkit``.
|
|
8
|
+
|
|
9
|
+
## 1.0.1 (2025-07-15)
|
|
10
|
+
|
|
11
|
+
WindKit 1.0.1 is a patch release that changes the config migration that shipped with 1.0.0. The changed ensures that the legacy `.ini` configuration files are migrated to the new `.toml` format without automatically removing the old file. This ensures that users are not constantly prompted to update their configuration file if they use different versions of WindKit in different environments.
|
|
12
|
+
|
|
13
|
+
## 1.0.0 (2025-06-26)
|
|
14
|
+
|
|
15
|
+
This is a major release that introduces a significantly cleaner and more intuitive API. We have removed many functions from the public namespace, renamed others for consistency, and introduced powerful new features. While this version includes many breaking changes, the result is a more streamlined and user-friendly library. We strongly recommend all users to carefully read these release notes and update their code.
|
|
16
|
+
|
|
17
|
+
### Highlights
|
|
18
|
+
|
|
19
|
+
#### Simplified and Consistent API
|
|
20
|
+
The `windkit` namespace has been significantly cleaned up to make the API more predictable and easier to learn. Many internal or redundant functions have been removed from the public API, and others have been renamed for better clarity and consistency.
|
|
21
|
+
* Functions for reading and writing different objects in windkit are now grouped by type, such as `read_tswc`, `read_bwc`, `read_wwc`, and `read_gwc` for reading wind climate datasets, and `bwc_to_file`, `wwc_to_file`, and `gwc_to_file` for writing them.
|
|
22
|
+
* Functions for creating empty datasets are now prefixed with `create_*` (e.g., `create_bwc` instead of `empty_bwc`).
|
|
23
|
+
* Functions for creating wind climate objects from other data types now follow a `[climate]_from_[source]` pattern (e.g., `bwc_from_tswc` instead of `bwc_from_timeseries`).
|
|
24
|
+
* Validation functions are now consistently named `validate_*` (e.g., `validate_bwc` instead of `bwc_validate`).
|
|
25
|
+
|
|
26
|
+
#### Revamped Map Reading and Writing
|
|
27
|
+
The API for handling spatial maps has been completely overhauled. The generic `read_raster_map`, `read_vector_map`, `raster_map_to_file`, and `vector_map_to_file` functions have been replaced by specific, format-aware functions for each map type:
|
|
28
|
+
* `read_elevation_map` and `elevation_map_to_file`
|
|
29
|
+
* `read_roughness_map` and `roughness_map_to_file`
|
|
30
|
+
* `read_landcover_map` and `landcover_map_to_file`
|
|
31
|
+
|
|
32
|
+
These new functions automatically infer the file format from the suffix (e.g., `.map`, `.tif`, `.gpkg`) and provide a more robust and intuitive interface for working with elevation, roughness, and landcover data.
|
|
33
|
+
|
|
34
|
+
#### Polygon Representation for Landcover and Roughness Maps
|
|
35
|
+
A major improvement is the new default support for polygon-based landcover and roughness maps. The functions `read_landcover_map` and `read_roughness_map` now return `geopandas.GeoDataFrame` objects with polygons when reading vector data, which is a more standard and powerful representation for GIS data. This enables more robust handling and validation of maps. For backward compatibility, you can still work with the legacy line-based format by setting `polygons=False`.
|
|
36
|
+
|
|
37
|
+
#### Unified API for Wind Climate Statistics
|
|
38
|
+
Calculating statistics from wind climate objects is now much simpler. A new set of generic functions can operate on any wind climate type (BWC, WWC, etc.):
|
|
39
|
+
* `wk.mean_wind_speed`
|
|
40
|
+
* `wk.mean_power_density`
|
|
41
|
+
* `wk.ws_cdf` (Cumulative Distribution Function)
|
|
42
|
+
* `wk.ws_freq_gt_mean`
|
|
43
|
+
* `wk.mean_ws_moment`
|
|
44
|
+
|
|
45
|
+
This unified API replaces the climate-specific functions (e.g., `bwc_mean_windspeed`), simplifying your code and making it more versatile.
|
|
46
|
+
|
|
47
|
+
#### New Loss and Uncertainty Modeling
|
|
48
|
+
WindKit now includes tools to support loss and uncertainty analysis, designed to integrate seamlessly with PyWAsP. You can now create, validate, and summarize standardized loss and uncertainty tables using:
|
|
49
|
+
* `get_loss_table`, `total_loss`, `loss_summary`
|
|
50
|
+
* `get_uncertainty_table`, `total_uncertainty`, `uncertainty_summary`
|
|
51
|
+
|
|
52
|
+
This provides a structured framework for AEP calculations.
|
|
53
|
+
|
|
54
|
+
### Breaking Changes and Migration Guide
|
|
55
|
+
Due to the extensive API changes, you will need to update your existing code. Here is a guide to the most common changes:
|
|
56
|
+
|
|
57
|
+
#### General Renaming and Removals
|
|
58
|
+
* **Namespace Cleanup**: Many functions like `bwc_validate_wrapper`, `update_history`, and various `spatial` utilities have been removed from the public `windkit` namespace.
|
|
59
|
+
* **Function Renaming**:
|
|
60
|
+
* `windkit.read_timeseries_from_pandas` is now `windkit.tswc_from_dataframe`.
|
|
61
|
+
* `windkit.bwc_from_timeseries` is now `windkit.bwc_from_tswc`.
|
|
62
|
+
* `windkit.read_timeseries_from_csv` is now `windkit.read_tswc`.
|
|
63
|
+
* All `windkit.empty_*` functions are now `windkit.create_*` (e.g., `empty_bwc` -> `create_bwc`).
|
|
64
|
+
* `lines2poly` is now `lines_to_poly`, and `poly2lines` is now `poly_to_lines`.
|
|
65
|
+
* `add_crs` is now `set_crs`.
|
|
66
|
+
* **Argument Renaming**: Several function arguments have been renamed for consistency. For example, `nsec` is now `n_sectors` and `nwsbins` is now `n_wsbins`. Check the function signatures if you encounter errors.
|
|
67
|
+
* **Removed Classes**: The `windkit.WindTurbines` class has been removed. Use the functions in the `windkit.wind_turbines` module to work with `xarray.Dataset` representations of turbines.
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
#### Wind Climate I/O
|
|
71
|
+
Wind climate reading and writing has been standardized to one reader and one writer for each type:
|
|
72
|
+
* Use `read_tswc` to read time series wind climate datasets.
|
|
73
|
+
* Use `read_bwc` and `bwc_to_file` for Binned Wind Climate datasets.
|
|
74
|
+
* Use `read_wwc` and `wwc_to_file` for Weibull Wind Climate datasets.
|
|
75
|
+
* Use `read_gwc` and `gwc_to_file` for Generalized Wind Climate datasets.
|
|
76
|
+
|
|
77
|
+
#### Configuration File and Environment Variables
|
|
78
|
+
The configuration file format has been switched from INI to TOML. Existing `.ini` configuration files will be migrated automatically.
|
|
79
|
+
|
|
80
|
+
Additionally, user details can now be configured using case-insensitive environment variables, which is ideal for containerized or CI/CD environments:
|
|
81
|
+
* `WINDKIT_NAME`
|
|
82
|
+
* `WINDKIT_EMAIL`
|
|
83
|
+
* `WINDKIT_INSTITUTION`
|
|
84
|
+
|
|
85
|
+
If no configuration is found (either via file or environment variables), you will be prompted for the information upon initialization.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### Full list of changes
|
|
90
|
+
|
|
91
|
+
#### Bug Fixes
|
|
92
|
+
* `clip_with_margin` now returns a `ValueError` when the bbox crosses the dateline.
|
|
93
|
+
* Fixed an issue where `read_raster_map` was checking for too high roughness values twice.
|
|
94
|
+
* Duplicate heights passed to `create_dataset` with `struct=stacked_point` are now correctly removed.
|
|
95
|
+
* `gdf_to_ds` now correctly handles unique points to ensure round-tripping with `ds_to_gdf` works as expected.
|
|
96
|
+
* Fixed a bug where `get_vector_map` for CORINE data could fail with a missing column error.
|
|
97
|
+
* `to_stacked_point` now correctly retains the input order of coordinates.
|
|
98
|
+
* `nearest_points` now raises an error on duplicate points to be compatible with newer xarray versions.
|
|
99
|
+
* Fixed a bug in `wk.spatial.add_crs` where custom projection information could be overwritten by a detected EPSG code.
|
|
100
|
+
* Fixed `wk.spatial.interp_unstructured_like` to correctly broadcast single-point sources.
|
|
101
|
+
* Fixed a bug in `nearest_points` when `keep_duplicates=False` and `return_distance=True`.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
#### API Breaks
|
|
105
|
+
* `windkit.read_timeseries_from_pandas` renamed as `windkit.tswc_from_dataframe`
|
|
106
|
+
* `windkit.bwc_from_timeseries` renamed as `windkit.bwc_from_tswc`
|
|
107
|
+
* `windkit.read_timeseries_from_csv` renamed as `windkit.read_tswc`
|
|
108
|
+
* all `windkit.empty_*` functions renamed to `windkit.create_*`
|
|
109
|
+
* renamed `lines2poly` to `lines_to_poly` and `poly2lines` to `poly_to_lines`
|
|
110
|
+
* removed `wk.lib_string` from public namespace
|
|
111
|
+
* `windkit.spatial.interp_unstructured_like` and `windkit.spatial.interp_structured_like` will not interpolate over 1D variables by default
|
|
112
|
+
* Removed `read_raster_map`,`raster_map_to_file`, and `read_vector_map` and `vector_map_to_file` (made private)
|
|
113
|
+
* Added `read_elevation_map` and `elevation_map_to_file` (works for vector and raster)
|
|
114
|
+
* Added `read_roughness_map` and `roughness_map_to_file` (works for vector and raster)
|
|
115
|
+
* Added `read_landcover_map`, and `landcover_map_to_file` (works for vector and raster)
|
|
116
|
+
* Old .gpkg files with change lines in landcover_map_to_file
|
|
117
|
+
and roughness_map_to_file can be written by using polygons=False
|
|
118
|
+
* File formats for the readers and writers described above are now inferred from the filename's suffix, e.g., `.map` for map files.
|
|
119
|
+
* The functions `read_landcover_map` and `read_roughness_map` by default return polygons instead of changes lines. You can set the argument `polygons=False` to open the file as old fashioned change lines. You can try this if your file is not being opened correctly, but you are responsible for checking it's correctness, because there is less error checking for these types of files.
|
|
120
|
+
* Added `roughness_to_landcover` to convert roughness maps to landcover maps (vector or raster)
|
|
121
|
+
* Added `landcover_to_roughness` to convert landcover maps to roughness maps (vector or raster)
|
|
122
|
+
* Renamed `add_crs` to `set_crs` and and deprecated `add_crs` (which calls `set_crs`)
|
|
123
|
+
* `get_vector_map` now returns landcover data as polygons by default.
|
|
124
|
+
* Removed `wk.bwc_ws_moment` from public namespace, use `wk.mean_ws_moment` instead
|
|
125
|
+
* Removed `wk.bwc_mean_windspeed` from public namespace, use `wk.mean_wind_speed` instead
|
|
126
|
+
* Removed `wk.bwc_mean_windspeed3` from public namespace, use `wk.mean_wind_speed3` instead
|
|
127
|
+
* Removed `wk.bwc_power_density` from public namespace, use `wk.mean_power_density` instead
|
|
128
|
+
* Removed `wk.bwc_ws_cdf` from public namespace, use `wk.ws_cdf` instead
|
|
129
|
+
* Removed `wk.bwc_ws_freq_gt_mean` from public namespace, use `wk.ws_freq_gt_mean` instead
|
|
130
|
+
* Removed `wk.bwc_to_tabfile` from public namespace, use `wk.bwc_to_file` instead
|
|
131
|
+
* Removed `wk.bwc_validate_wrapper` from public namespace
|
|
132
|
+
* Removed `wk.create_time_attributes` from public namespace
|
|
133
|
+
* Removed `wk.count_to_ws_freq_by_sector` from public namespace
|
|
134
|
+
* Removed `wk.read_rsffile` from public namespace use `wk.read_wwc` instead
|
|
135
|
+
* Removed `wk.read_wrgfile` from public namespace, use `wk.read_wwc` instead
|
|
136
|
+
* Removed `wk.read_grdfile` from public namespace, use `wk.read_wwc` instead
|
|
137
|
+
* Removed `wk.read_pwcfile` from public namespace, use `wk.read_wwc` instead
|
|
138
|
+
* Removed `wk.to_rsffile` from public namespace, use `wk.wwc_to_file` instead
|
|
139
|
+
* Removed `wk.to_wrgfile` from public namespace, use `wk.wwc_to_file` instead
|
|
140
|
+
* Removed `wk.wwc_validate_wrapper` from public namespace
|
|
141
|
+
* Removed `wk.wwc_validate_structure`
|
|
142
|
+
* Removed `wk.wwc_validate_structure_wrapper`
|
|
143
|
+
* Removed `wk.wwc_mean_windspeed` from public namespace, use `wk.mean_wind_speed` instead
|
|
144
|
+
* Removed `wk.wwc_power_density` from public namespace, use `wk.mean_power_density` instead
|
|
145
|
+
* Removed `wk.to_libfile` from public namespace, use `wk.gwc_to_file` instead
|
|
146
|
+
* Removed `wk.gwc_validate_wrapper` from public namespace
|
|
147
|
+
* Removed `wk.wtg_validate_wrapper` from public namespace
|
|
148
|
+
* Removed `wk.windturbines_validate_wrapper` from public namespace
|
|
149
|
+
* Modified `wk.read_tswc` to be a generic tswc reader (not just for CSV)
|
|
150
|
+
* Renamed `wk.is_windturbines` to `wk.is_wind_turbines`
|
|
151
|
+
* Renamed `wk.windturbines_validate` to `wk.validate_windturbines`
|
|
152
|
+
* Renamed `wk.wtg_validate` to `wk.validate_wtg`
|
|
153
|
+
* Renamed `wk.gwc_validate` to `wk.validate_gwc`
|
|
154
|
+
* Renamed `wk.wwc_validate` to `validate_wwc`
|
|
155
|
+
* Renamed `wk.bwc_validate` to `wk.validate_bwc`
|
|
156
|
+
* Removed `wk.get_map`
|
|
157
|
+
* Removed `wk.spatial.interpolate_to_grid`
|
|
158
|
+
* Removed `wk.WindTurbines`
|
|
159
|
+
* Removed `wk.Workspace.get_vector_map`
|
|
160
|
+
* Added `wk.Workspace.get_elevation_map`
|
|
161
|
+
* Added `wk.Workspace.get_roughness_map`
|
|
162
|
+
* Removed `wk.bwc_from_counts` (from public namespace)
|
|
163
|
+
* Removed `wk.create_wv_count` (from public namespace)
|
|
164
|
+
* Removed `wk.update_history` (from public namespace)
|
|
165
|
+
* Removed `wk.update_coords_attrs` (from public namespace)
|
|
166
|
+
* Removed `wk.update_var_attrs` (from public namespace)
|
|
167
|
+
* Removed `wk.ALL_VARS_META` (from public namespace)
|
|
168
|
+
* Removed `wk.spatial.spatial_stack` (from public namespace)
|
|
169
|
+
* Removed `wk.spatial.spatial_unstack` (from public namespace)
|
|
170
|
+
* Removed `wk.spatial.stack_then_unstack` (from public namespace)
|
|
171
|
+
* Removed `wk.spatial.get_latitude` (from public namespace)
|
|
172
|
+
* Removed `wk.spatial.is_vertical` (from public namespace)
|
|
173
|
+
* Removed `wk.import_optional_dependency` (from public namespace)
|
|
174
|
+
* Removed `wk.reproject_gwc` (from public namespace)
|
|
175
|
+
* Removed `wk.get_ee_map` (from public namespace)
|
|
176
|
+
* Removed `wk.create_coords`
|
|
177
|
+
* Renamed `wk.create_ws_bin_coords` to `wk.create_wsbin_coords` and changed the arguments to `bins`, `width` and `start`. `bins` is an integer number of bins or a list of bin edges. `width` is the width of the bins, and `start` is the starting point of the first bin. `width` and `start` are only used if `bins` is an integer.
|
|
178
|
+
* Removed `wk.create_ws_bin_coords_from_values`
|
|
179
|
+
* Changed `wk.create_sector_coords` arguments to `bins` and `start`. `bins` is an integer number of bins or a list of bin edges. `start` is the starting point of the first bin. By default, `start` is -360/n_bins/2.
|
|
180
|
+
* Removed `wk.create_sector_coords_from_edges`
|
|
181
|
+
* Removed `wk.create_direction_coords` (from public namespace)
|
|
182
|
+
* `wk.create_vector_map` now has bbox as a first positional argument and argument `dist` is removed
|
|
183
|
+
* Renamed `wk.get_land_cover_table` to `wk.get_landcover_table`
|
|
184
|
+
|
|
185
|
+
#### New features
|
|
186
|
+
* `wk.read_wtg` can read wind turbine generators files in netCDF format.
|
|
187
|
+
* `wk.mean_ws_moment` to calculate the mean of a wind speed moment of any wind climate
|
|
188
|
+
* `wk.ws_cdf` to calculate the cumulative distribution function of a wind speed of any wind climate
|
|
189
|
+
* `wk.ws_freq_gt_mean` to calculate the fraction of probability mass above the mean of a wind speed of any wind climate
|
|
190
|
+
* `wk.mean_wind_speed` to calculate the mean wind speed of any wind climate
|
|
191
|
+
* `wk.mean_wind_speed3` to calculate the mean wind speed cubed of any wind climate
|
|
192
|
+
* `wk.mean_power_density` to calculate the mean power density of any wind climate
|
|
193
|
+
* All of the above calculates the the variable of all wind climates (not all functions are supports all climates yet).
|
|
194
|
+
* Added `read_wwc` to read a weibull wind climate dataset from a file
|
|
195
|
+
* Added `read_mfwwc` to read a multi-filey weibull wind climate dataset
|
|
196
|
+
* Added `wwc_to_file` to write a weibull wind climate dataset to a file
|
|
197
|
+
* Added `read_gwc` to read a generalized wind climate dataset from a file
|
|
198
|
+
* Added `gwc_to_file` to write a generalized wind climate dataset to a file
|
|
199
|
+
* Added `bwc_to_file` to write a binned wind climate dataset to a file
|
|
200
|
+
* New function `add_projected_wrf_coordinates` that is useful to process `WRF` output data to be used with `windkit`.
|
|
201
|
+
* Existing function `windkit.read_wtg` can optionally read the wind turbine manufacturer name from a `.wtg` file if exists.
|
|
202
|
+
* New function `windkit.metadata.update_coords_attrs` to update attributes of a dataset coordinates.
|
|
203
|
+
* New function `create_baro` to create a baro file with dummy values
|
|
204
|
+
* New function `create_stab` to create a stab file with dummy values
|
|
205
|
+
* New function `windkit.snap_to_layer` that transform a vector map with polyons with gaps, open areas and inconsistent vertices into a valid vector map to run `pywasp`.
|
|
206
|
+
* New example notebook tutorial for `windkit.get_era5` to get ERA5 data from Microsoft Planetary Computer
|
|
207
|
+
* `windkit.raster_map_to_file` allows extra arguments that are forwarded to `rasterio.open`. Useful to create e.g. compressed geoTIFF files with the "compress" option.
|
|
208
|
+
* New class `windkit.WengWorkspace` to read WAsP Engineering proyect files in XML format and converting its content to `xarray.Dataset` and `xarray.DataArray` instances such as extreme wind climate datasets, location datasets and raster map data arrays.
|
|
209
|
+
* Enable roughness maps to be written to `.map` files
|
|
210
|
+
* Added kw-argument `return_lctable` to functions reading landcover maps, set to false by default, which means only the landcover map is returned
|
|
211
|
+
* Added kw-argument `convert_to_landcover` to functions reading roughness maps to optionally convert the map to landcover, returning both the map and the table (two outputs)
|
|
212
|
+
* It is now allowed to use `wk.landcover_map_to_file` to write a landcover map to a `.map` file as long as the displacements are all zero.
|
|
213
|
+
* `lines_to_polygons` is a more robust version of `lines_to_poly` and now tries to make the polygons valid if they are not. It is also much faster.
|
|
214
|
+
* `polygons_to_lines` is a more robust version of `poly_to_lines` and is much faster.
|
|
215
|
+
* Added function `windkit.plot.landcover_map`, which can plot a landcover map with some nicer color schemes.
|
|
216
|
+
* Added function `windkit.plot.elevation_map`, which can plot an elevation map with some nicer color schemes.
|
|
217
|
+
* Added function `windkit.add_landcover_table` to add roughness and other information from a wk.LandCoverTable to a geopandas dataframe with only an `id` column
|
|
218
|
+
* in `get_raster_map`, an option to download from GWA4 landcover `GWA4_landcover` and `GWA4_elevation` has been added
|
|
219
|
+
* Added function `windkit.get_tutorial_data` to download tutorial data from the windkit zenodo repository. The data is downloaded to a local cache directory, which is created if it does not exist.
|
|
220
|
+
* Configuration can now be defined using case-insensitive environment variables `windkit_name`, `windkit_email` and `windkit_institution`. If these are not set, and the configuration file is not found, you will be prompted on initialization.
|
|
221
|
+
|
|
222
|
+
#### Added functionality to work with losses
|
|
223
|
+
- Defined the data structure of loss tables: a pandas DataFrame with required columns: "loss_name" and "loss_percentage". It can also have optional columns "loss_category", "loss_upper_bound", "loss_lower_bound", "loss_default", and "description"
|
|
224
|
+
- Added function `get_loss_table` to obtain a loss tables (DataFrame) from known name. Currently, only "dtu_default" exists.
|
|
225
|
+
- Added function `validate_loss_table` to validate a loss table is formatted correctly
|
|
226
|
+
- Added function `total_loss` to calculate the total loss in percentage from a loss table
|
|
227
|
+
- Added function `loss_summary` to print a formatted summary of the loss table
|
|
228
|
+
- Added function `total_loss_factor` to calculate the loss factor (the factor that can be directly multiplied to subtract the loss from an AEP number)
|
|
229
|
+
|
|
230
|
+
#### Added functionality to work with uncertainties
|
|
231
|
+
- Defined the data structure of uncertainty tables: a pandas DataFrame with required columns: "uncertainty_kind", "uncertainty_name" and "uncertainty_percentage". It can also have optional columns "uncertainty_category", "uncertainty_upper_bound", "uncertainty_lower_bound", "uncertainty_default", and "description"
|
|
232
|
+
- Added function `get_uncertainty_table` to obtain an uncertainty table (DataFrame) from known name. Currently, only "dtu_default" exists.
|
|
233
|
+
- Added function `validate_uncertainty_table` to validate an uncertainty table is formatted correctly
|
|
234
|
+
- Added function `total_uncertainty` to calculate the total uncertainty in percentage from an uncertainty table. Following the GUM guideline on adding uncertainties.
|
|
235
|
+
- Added function `uncertainty_summary` to print a formatted summary of the uncertainty table
|
|
236
|
+
- Added function `total_uncertainty_factor` to calculate the uncertainty factor (the factor that can be directly multiplied to add the uncertainty to an AEP estiamtion)
|
|
237
|
+
|
|
238
|
+
#### Bug fixes
|
|
239
|
+
* `clip_with_margin` now returns a `ValueError` when the bbox crosses the dateline
|
|
240
|
+
* `read_raster_map` was checking for too high roughness twice, one is enough
|
|
241
|
+
* If duplicate heights are passed to `create_dataset` with `struct=stacked_point` it will remove the duplicates
|
|
242
|
+
as required in the `stacked_point` structure.
|
|
243
|
+
* in `gdf_to_ds` we must create the target dataset using unique (`west_east`,`south_north`) points for `stacked_point` and unique `west_east` and `south_north` for cuboids to be able to round trip `ds_to_gdf` and `gdf_to_ds`.
|
|
244
|
+
* get_vector_map(bb, "CORINE", source="dtu") could sometimes fail with "Exception: Missing required column: id", this has been fixed
|
|
245
|
+
* read_vector_map also reads .gpkg files where a geometry column is missing on the landcovertable layer
|
|
246
|
+
* to_stacked_point now retains input order of west_east/south_north coordinates
|
|
247
|
+
* Nearest_points will now raise an error if there are duplicate points resulting from the nearest neighbour lookup if the data is in stacked_point or cuboid format. This is required because xarray >2024.02 does not allow duplicates in MultiIndexes anymore. A new keyword argument keep_duplicates controls the behaviour, the default being True, i.e. when possible behaviour is the same as before.
|
|
248
|
+
* In the function `wk.spatial.add_crs` assigning a projection with more detailed info given in a proj4 string or custom CRS was overwritten when an EPSG was found for the projection. This is now fixed and the full custom CRS is added.
|
|
249
|
+
* Fixed `wk.spatial.interp_unstructured_like` to broadcast single-point sources correctly to target.
|
|
250
|
+
* Fix bug in `nearest_points` when `keep_duplicates=False` and `return_distance=True`: it threw an error that the arrays were not the same size.
|
|
251
|
+
|
|
252
|
+
#### Breaking changes
|
|
253
|
+
* `empty_wasp_site_factors` renamed to `empty_wasp_site_effects`
|
|
254
|
+
* in `empty_z0meso` argument `site_factors` was renamed renamed to `site_effects`
|
|
255
|
+
* in `empty_pwc` argument `site_factors` was renamed renamed to `site_effects`
|
|
256
|
+
- Argument `nwsbins`, `nws`, `n_bins` has been renamed to `n_wsbins` or `wsbins` (in case of array-like argument) in the following functions:
|
|
257
|
+
- `bwc_from_tswc`
|
|
258
|
+
- `create_ws_bin_coords`
|
|
259
|
+
- `create_ws_bin_coords_from_values`
|
|
260
|
+
- Argument `nsec`, `nsecs`, `nwd`, `nbins` has been renamed to `n_sectors` in the following functions:
|
|
261
|
+
- `create_sector_coords`
|
|
262
|
+
- `create_direction_coords`
|
|
263
|
+
- `create_sector_coords_from_edges`
|
|
264
|
+
- `wd_to_sector`
|
|
265
|
+
- `bwc_from_tswc`
|
|
266
|
+
- Argument `num_args` has been renamed to `n_args` in the following functions:
|
|
267
|
+
- `ltc_validate`
|
|
268
|
+
- Argument `ws_bin_width`has been renamed to `wsbin_width` in the following functions:
|
|
269
|
+
- `create_ws_bin_coords`
|
|
270
|
+
- `bwc_from_tswc`
|
|
271
|
+
* Metadata variable name `aep_deficit` has been renamed to `potential_aep_deficit`
|
|
272
|
+
|
|
273
|
+
* Functions `read_raster_map` and `raster_map_to_file` were removed in favour of the new functions `read_elevation_raster`, `write_elevation_raster`, `read_landcover_raster`, and `write_landcover_raster`.
|
|
274
|
+
* Functions `read_vector_map` and `vector_map_to_file` were removed in favour of the new functions `read_elevation_vector`, `write_elevation_vector`, `read_landcover_vector`, and `write_landcover_vector`.
|
|
275
|
+
* Changed most instances where "header" is used to "description"
|
|
276
|
+
* `get_vector_map` returns polygons instead of lines.
|
|
277
|
+
* Switched configuration file from ini to toml, old file will be automatically migrated
|
|
278
|
+
|
|
6
279
|
|
|
7
280
|
## 0.8.0 (2024-06-10)
|
|
8
281
|
|
|
@@ -107,8 +380,8 @@ Additionally a few high level routines were added for interpolation specific fie
|
|
|
107
380
|
#### Improvements to the map_conversion routines
|
|
108
381
|
|
|
109
382
|
* Added `windkit.map_conversion.find_duplicate_lines` to identify duplicated lines in a GeoDataFrame, even if the line is reversed.
|
|
110
|
-
* `windkit.
|
|
111
|
-
* `windkit.
|
|
383
|
+
* `windkit.poly_to_lines` now correctly sets the CRS to match the input data. Before it was `None`.
|
|
384
|
+
* `windkit.poly_to_lines` and `windkit.lines2poly` now have an absolute tolerance argument, `atol`, which can be used to identify nearby points, which should be joined.
|
|
112
385
|
|
|
113
386
|
#### Access to data from Microsoft's Planetary Computer platform
|
|
114
387
|
|
|
@@ -168,7 +441,7 @@ Additionally a few high level routines were added for interpolation specific fie
|
|
|
168
441
|
* `windkit.spatial.interpolate_to_grid` deprecated in favor of `windkit.spatial.interp_structured_like` and `windkit.spatial.interp_unstructured_like`
|
|
169
442
|
|
|
170
443
|
### Breaking changes
|
|
171
|
-
* `windkit.
|
|
444
|
+
* `windkit.poly_to_lines` no longer has a `closed_map` argument. Instead, when `background_lc_id` is set, all empty space is filled with the provided id. This allows for maps that are no longer rectangular, e.g. due to reprojection, to be properly converted to line maps.
|
|
172
445
|
* Removed accessors, which were previously registered for several wind climate data structures. You will need to use the functions instead.
|
|
173
446
|
|
|
174
447
|
## 0.6.3 (2023-07-18)
|
|
@@ -291,7 +564,7 @@ Several new features in this release including support for Wind Turbines, the ab
|
|
|
291
564
|
the following:
|
|
292
565
|
- `LineMap` and `PolyMap` classes: These classes enable conversion and nice plotting
|
|
293
566
|
of their types.
|
|
294
|
-
- `lines2poly` and `
|
|
567
|
+
- `lines2poly` and `poly_to_lines` helper functions that perform the conversion from
|
|
295
568
|
lines to polygons and from polygons to line respectively, using the library
|
|
296
569
|
`geopandas.GeoDataFrame`.
|
|
297
570
|
* New module `windkit.plot.landcover_map` to plot the `geopandas.GeoDataFrame` polygons
|
|
@@ -303,7 +576,7 @@ Several new features in this release including support for Wind Turbines, the ab
|
|
|
303
576
|
#### New spatial functionality
|
|
304
577
|
|
|
305
578
|
* New function `windkit.spatial.interpolate_to_grid` to resample data to a target grid.
|
|
306
|
-
* New function `windkit.spatial.
|
|
579
|
+
* New function `windkit.spatial._get_latitude` that returns data-array of latitude values in wgs84.
|
|
307
580
|
* New function `windkit.spatial.count_spatial_points` counts how many points are in a windkit dataset or dataarray.
|
|
308
581
|
|
|
309
582
|
#### Enhancements to `windkit.get_map.get_ee_map`
|
|
@@ -1,35 +1,50 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: windkit
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.2
|
|
4
4
|
Summary: WindKit provides core functionalities for working with wind resource data
|
|
5
5
|
Home-page: https://docs-wasp.ramtt.xyz/windkit
|
|
6
6
|
Author: DTU Wind Energy
|
|
7
7
|
License: BSD-3-Clause
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: License :: OSI Approved :: BSD License
|
|
10
9
|
Classifier: Operating System :: OS Independent
|
|
11
|
-
Requires-Python:
|
|
10
|
+
Requires-Python: <4,>=3.11
|
|
12
11
|
Description-Content-Type: text/markdown
|
|
13
12
|
License-File: LICENSE
|
|
14
|
-
Requires-Dist:
|
|
15
|
-
Requires-Dist:
|
|
16
|
-
Requires-Dist:
|
|
17
|
-
Requires-Dist:
|
|
18
|
-
Requires-Dist:
|
|
19
|
-
Requires-Dist:
|
|
20
|
-
Requires-Dist:
|
|
21
|
-
Requires-Dist:
|
|
22
|
-
Requires-Dist:
|
|
23
|
-
Requires-Dist:
|
|
24
|
-
Requires-Dist:
|
|
13
|
+
Requires-Dist: lxml<6,>=5.0
|
|
14
|
+
Requires-Dist: netcdf4<2,>=1.6
|
|
15
|
+
Requires-Dist: numpy<3,>=1.26
|
|
16
|
+
Requires-Dist: packaging>=23
|
|
17
|
+
Requires-Dist: pandas<3,>=2.1
|
|
18
|
+
Requires-Dist: pyproj<4,>=3.6
|
|
19
|
+
Requires-Dist: scipy<2,>=1.12
|
|
20
|
+
Requires-Dist: shapely<3,>=2
|
|
21
|
+
Requires-Dist: xarray<2025.7,>=2023.9
|
|
22
|
+
Requires-Dist: rioxarray<0.20,>=0.17
|
|
23
|
+
Requires-Dist: rasterio<2,>=1.3
|
|
24
|
+
Requires-Dist: geopandas<1.2,>=1.0
|
|
25
|
+
Requires-Dist: h5netcdf<2,>=1.3
|
|
26
|
+
Requires-Dist: matplotlib<4,>=3.8
|
|
27
|
+
Requires-Dist: pydantic-settings<3,>=2.3
|
|
28
|
+
Requires-Dist: pydantic<3,>=2.7
|
|
29
|
+
Requires-Dist: platformdirs<5,>=4.3.8
|
|
30
|
+
Requires-Dist: plotly<6,>=5
|
|
31
|
+
Requires-Dist: kaleido<0.3,>=0.2.1
|
|
32
|
+
Requires-Dist: requests<3,>=2.31
|
|
33
|
+
Requires-Dist: toml<0.11,>=0.10
|
|
25
34
|
Provides-Extra: plots
|
|
26
35
|
Requires-Dist: matplotlib>=3.6; extra == "plots"
|
|
27
36
|
Requires-Dist: plotly>=5.12; extra == "plots"
|
|
28
37
|
Requires-Dist: kaleido>=0.2; extra == "plots"
|
|
29
|
-
Provides-Extra:
|
|
30
|
-
Requires-Dist:
|
|
31
|
-
Requires-Dist:
|
|
32
|
-
Requires-Dist:
|
|
38
|
+
Provides-Extra: data-apis
|
|
39
|
+
Requires-Dist: ee; extra == "data-apis"
|
|
40
|
+
Requires-Dist: pystac_client; extra == "data-apis"
|
|
41
|
+
Requires-Dist: planetary_computer; extra == "data-apis"
|
|
42
|
+
Requires-Dist: fsspec; extra == "data-apis"
|
|
43
|
+
Requires-Dist: adlfs; extra == "data-apis"
|
|
44
|
+
Requires-Dist: zarr; extra == "data-apis"
|
|
45
|
+
Provides-Extra: performance
|
|
46
|
+
Requires-Dist: numba; extra == "performance"
|
|
47
|
+
Dynamic: license-file
|
|
33
48
|
|
|
34
49
|
# WindKit
|
|
35
50
|
|
|
@@ -67,4 +82,12 @@ WindKit can perform many common functions that are part of wind resource assessm
|
|
|
67
82
|
|
|
68
83
|
## Documentation
|
|
69
84
|
|
|
70
|
-
You can find the full documentation for WindKit at https://docs
|
|
85
|
+
You can find the full documentation for WindKit at https://docs.wasp.dk/windkit. There is also a [WAsP Python tools](https://www.wasptechnical.dk/forum/forum/19-wasp-python-tools/) forum, where you can ask questions or help other users.
|
|
86
|
+
|
|
87
|
+
## Development
|
|
88
|
+
|
|
89
|
+
WindKit uses Pixi for dependency management and aiding developers. To utilize it make sure you have [pixi installed](https://pixi.sh). Then you can intialize an environment by running `pixi run install`. If you want to work with pixi in a developer terminal, you can use the command `pixi shell`.
|
|
90
|
+
|
|
91
|
+
We have two branches of environments to use for development, `default` uses the maximum versions that we should support, while `default-min` uses the minimum supported package versions. If you wish to use a different branch, you can use change it using the `-e <environment>` argument for any pixi run command.
|
|
92
|
+
|
|
93
|
+
Tests can be run using `pixi run test`, if you want a coverage report you can run the `testci` or the `testhtml` tasks.
|
|
@@ -34,4 +34,12 @@ WindKit can perform many common functions that are part of wind resource assessm
|
|
|
34
34
|
|
|
35
35
|
## Documentation
|
|
36
36
|
|
|
37
|
-
You can find the full documentation for WindKit at https://docs
|
|
37
|
+
You can find the full documentation for WindKit at https://docs.wasp.dk/windkit. There is also a [WAsP Python tools](https://www.wasptechnical.dk/forum/forum/19-wasp-python-tools/) forum, where you can ask questions or help other users.
|
|
38
|
+
|
|
39
|
+
## Development
|
|
40
|
+
|
|
41
|
+
WindKit uses Pixi for dependency management and aiding developers. To utilize it make sure you have [pixi installed](https://pixi.sh). Then you can intialize an environment by running `pixi run install`. If you want to work with pixi in a developer terminal, you can use the command `pixi shell`.
|
|
42
|
+
|
|
43
|
+
We have two branches of environments to use for development, `default` uses the maximum versions that we should support, while `default-min` uses the minimum supported package versions. If you wish to use a different branch, you can use change it using the `-e <environment>` argument for any pixi run command.
|
|
44
|
+
|
|
45
|
+
Tests can be run using `pixi run test`, if you want a coverage report you can run the `testci` or the `testhtml` tasks.
|
|
@@ -5,15 +5,10 @@ build-backend = "setuptools.build_meta"
|
|
|
5
5
|
[tool.setuptools_scm]
|
|
6
6
|
write_to = "windkit/_version.py"
|
|
7
7
|
|
|
8
|
-
[tool.isort]
|
|
9
|
-
profile = "black"
|
|
10
|
-
skip = ["windkit/__init__.py"]
|
|
11
|
-
|
|
12
8
|
[tool.pytest.ini_options]
|
|
13
9
|
minversion = "6.0"
|
|
14
10
|
norecursedirs = "dist build .tox"
|
|
15
11
|
testpaths = ["test",]
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
all=true
|
|
12
|
+
markers = [
|
|
13
|
+
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
|
|
14
|
+
]
|
windkit-1.0.2/setup.cfg
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
[metadata]
|
|
2
|
+
name = windkit
|
|
3
|
+
description = WindKit provides core functionalities for working with wind resource data
|
|
4
|
+
long_description = file: README.md
|
|
5
|
+
long_description_content_type = text/markdown
|
|
6
|
+
author = DTU Wind Energy
|
|
7
|
+
license = BSD-3-Clause
|
|
8
|
+
license_files = LICENSE
|
|
9
|
+
classifiers =
|
|
10
|
+
Programming Language :: Python :: 3
|
|
11
|
+
Operating System :: OS Independent
|
|
12
|
+
url = https://docs-wasp.ramtt.xyz/windkit
|
|
13
|
+
|
|
14
|
+
[options]
|
|
15
|
+
packages = find_namespace:
|
|
16
|
+
python_requires = >=3.11,<4
|
|
17
|
+
include_package_data = True
|
|
18
|
+
install_requires =
|
|
19
|
+
lxml >=5.0,<6
|
|
20
|
+
netcdf4 >=1.6,<2
|
|
21
|
+
numpy >=1.26,<3
|
|
22
|
+
packaging >=23
|
|
23
|
+
pandas >=2.1,<3
|
|
24
|
+
pyproj >=3.6,<4
|
|
25
|
+
scipy >=1.12,<2
|
|
26
|
+
shapely >=2,<3
|
|
27
|
+
xarray >=2023.9,<2025.7
|
|
28
|
+
rioxarray >=0.17,<0.20
|
|
29
|
+
rasterio >=1.3,<2
|
|
30
|
+
geopandas >=1.0,<1.2
|
|
31
|
+
h5netcdf >=1.3,<2
|
|
32
|
+
matplotlib >=3.8,<4
|
|
33
|
+
pydantic-settings >=2.3,<3
|
|
34
|
+
pydantic >=2.7,<3
|
|
35
|
+
platformdirs >=4.3.8,<5
|
|
36
|
+
plotly >=5,<6
|
|
37
|
+
kaleido >=0.2.1,<0.3
|
|
38
|
+
requests >=2.31,<3
|
|
39
|
+
toml >=0.10,<0.11
|
|
40
|
+
|
|
41
|
+
[options.package_data]
|
|
42
|
+
windkit.data =
|
|
43
|
+
*.json
|
|
44
|
+
windkit.data.landcover_tables =
|
|
45
|
+
*.json
|
|
46
|
+
windkit.data.plot =
|
|
47
|
+
*.json
|
|
48
|
+
windkit.data.loss_tables =
|
|
49
|
+
*.csv
|
|
50
|
+
windkit.data.uncertainty_tables =
|
|
51
|
+
*.csv
|
|
52
|
+
|
|
53
|
+
[options.extras_require]
|
|
54
|
+
plots = matplotlib>=3.6; plotly>=5.12; kaleido>=0.2
|
|
55
|
+
data_apis = ee; pystac_client; planetary_computer; fsspec; adlfs; zarr
|
|
56
|
+
performance = numba
|
|
57
|
+
|
|
58
|
+
[options.entry_points]
|
|
59
|
+
console_scripts =
|
|
60
|
+
split_combomap = windkit.topography.vector_map:_split_combo
|
|
61
|
+
|
|
62
|
+
[egg_info]
|
|
63
|
+
tag_build =
|
|
64
|
+
tag_date = 0
|
|
65
|
+
|