Python package for working with the CAMELS-DE dataset
Project description
CAMELS-DE 🌊
A Python package for working with the CAMELS-DE (Catchment Attributes and Meteorology for Large-sample Studies - Germany) dataset.
About 🐪
CAMELS-DE provides access to hydrometeorological time series data and catchment attributes for 1582 catchments in Germany. This package offers a simple interface for loading, analyzing, and visualizing data from the CAMELS-DE dataset.
Installation
pip install camelsde
Usage
from camelsde import CAMELS_DE
# Initialize with default path (datasets/CAMELS_DE_v1_0_0)
camelsde = CAMELS_DE()
# Or specify a custom path
# camelsde = CAMELS_DE(path="/path/to/camelsde/data")
# Load static attributes
attributes = camelsde.load_static_attributes()
# Load specific attributes
hydro_attrs = camelsde.load_static_attributes(static_attribute="hydrology")
# Load specific columns across all static attribute files
attributes2 = camelsde.load_static_attributes(columns=["gauge_name", "gauge_elev", "area", "NSE_lstm", "NSE_hbv"])
# Load specific columns and apply filtering
attributes3 = camelsde.load_static_attributes(columns=["gauge_name", "gauge_elev", "area", "NSE_lstm", "NSE_hbv"], filters={"NSE_lstm": (">=", 0.9), "area": [ (">=", 50), ("<=", 100)]})
# Load specific gauge ID
gauge_data = camelsde.load_static_attributes(gauge_id="DE110000")
# Load and plot timeseries data
import matplotlib.pyplot as plt
ts_data = camelsde.load_timeseries(gauge_id="DE110000")
# Plot timeseries with Plotly
fig = camelsde.plot_timeseries(gauge_id="DE110000", columns=["precipitation", "discharge_spec_obs", "discharge_spec_sim_lstm"])
fig.show()
# Load geospatial data
catchments = camelsde.load_geopackage(layer="catchments")
stations = camelsde.load_geopackage(layer="gauging_stations")
Dataset
This package works with the CAMELS-DE v1.0.0 dataset, which is publicly available at:
The dataset needs to be downloaded and extracted before using this package. By default, the package looks for the data in the datasets/CAMELS_DE_v1_0_0 directory relative to the package installation.
Citation
If you use this package or the CAMELS-DE dataset in your research, please cite both the data description paper and the dataset itself:
- Dataset: CAMELS-DE v1.0.0
- Data description paper: CAMELS-DE: hydrometeorological time series and attributes for 1582 catchments in Germany
License
This package is distributed under the CC0 1.0 Universal License. See the LICENSE file for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file camelsde-0.1.0.tar.gz.
File metadata
- Download URL: camelsde-0.1.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4e5083cae6ece870cee816152ee337c6a3fcf57a4cff44b55a6fd3b94087542
|
|
| MD5 |
63eb7059ad7428087796c2085fd44159
|
|
| BLAKE2b-256 |
d54dd3a4a10f5b4cdc3d29ce7ac3fe1fb3e6a4d2f5950c720b5bfa5de75cbf2f
|
Provenance
The following attestation bundles were made for camelsde-0.1.0.tar.gz:
Publisher:
build-test-publish.yml on CAMELS-DE/camelsde
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
camelsde-0.1.0.tar.gz -
Subject digest:
b4e5083cae6ece870cee816152ee337c6a3fcf57a4cff44b55a6fd3b94087542 - Sigstore transparency entry: 198732728
- Sigstore integration time:
-
Permalink:
CAMELS-DE/camelsde@e57a49d46714bcff967a58171e1490b74dcaba32 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/CAMELS-DE
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-test-publish.yml@e57a49d46714bcff967a58171e1490b74dcaba32 -
Trigger Event:
release
-
Statement type:
File details
Details for the file camelsde-0.1.0-py3-none-any.whl.
File metadata
- Download URL: camelsde-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a06b66dfd86e672ba495822c65814064ab4ddb79d907dcaa8af56f766277bf1
|
|
| MD5 |
c7bbd7a1e77ee7edc9bddcc3079d3875
|
|
| BLAKE2b-256 |
378bed720d18d2ff7a1be80c139725be1f6e37703f0ae3d587fd87fb62a84f3f
|
Provenance
The following attestation bundles were made for camelsde-0.1.0-py3-none-any.whl:
Publisher:
build-test-publish.yml on CAMELS-DE/camelsde
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
camelsde-0.1.0-py3-none-any.whl -
Subject digest:
2a06b66dfd86e672ba495822c65814064ab4ddb79d907dcaa8af56f766277bf1 - Sigstore transparency entry: 198732737
- Sigstore integration time:
-
Permalink:
CAMELS-DE/camelsde@e57a49d46714bcff967a58171e1490b74dcaba32 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/CAMELS-DE
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-test-publish.yml@e57a49d46714bcff967a58171e1490b74dcaba32 -
Trigger Event:
release
-
Statement type: