This package contains common functionality for different ISIMIP tools.
Project description
ISIMIP utils
ISIMIP offers a framework for consistently projecting the impacts of climate change across affected sectors and spatial scales. An international network of climate-impact modellers contribute to a comprehensive and consistent picture of the world under different climate-change scenarios.
This package contains various utility methods for use in custom scripts as well as in different ISIMIP tools:
The different methods are described are documented at https://utils.isimip.org.
Setup
Using the package requires a running Python 3 on your system. The installation for different systems is covered here.
Unless you already use an environment manager (e.g. conda or uv), it is highly recommended to use a
virtual environment, which can be created using:
python3 -m venv env
source env/bin/activate # needs to be invoked in every new terminal session
The package itself can be installed via pip:
pip install isimip-utils
For a development setup, the repo should be cloned and installed in editable mode:
git clone git@github.com:ISI-MIP/isimip-utils
pip install -e isimip-utils
Usage
Once installed, the modules can be used like any other Python library, e.g. in order to create a ISIMIP compliant NetCDF file, you can use:
from isimip_utils.xarray import init_dataset, write_dataset
time = np.arrange(0, 365, dtype=np.float64)
var = np.ones((365, 360, 720), dtype=np.float32)
attrs={
'global': {
'contact': 'mail@example.com'
},
'var': {
'standard_name': 'var',
'long_name': 'Variable',
'units': '1',
}
}
# create an xarray.Dataset
ds = init_dataset(time=time, var=var, attrs=attrs)
# write the dataset as NetCDF file
write_dataset(ds, 'output.nc')
Please also note our examples page and the API reference.
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 isimip_utils-2.0.0.tar.gz.
File metadata
- Download URL: isimip_utils-2.0.0.tar.gz
- Upload date:
- Size: 53.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8595244fd76f7bbd5b2228b3b1f36a6b75006e4c4438fcd088e0c529c4c41074
|
|
| MD5 |
3b4ca5a90e6d021b609909e4e2c58752
|
|
| BLAKE2b-256 |
d393c4051f32a4cf688c8e7a3c221cef299e3fda9c61c40df18df738168b4eb0
|
Provenance
The following attestation bundles were made for isimip_utils-2.0.0.tar.gz:
Publisher:
ci.yaml on ISI-MIP/isimip-utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
isimip_utils-2.0.0.tar.gz -
Subject digest:
8595244fd76f7bbd5b2228b3b1f36a6b75006e4c4438fcd088e0c529c4c41074 - Sigstore transparency entry: 1074808414
- Sigstore integration time:
-
Permalink:
ISI-MIP/isimip-utils@1c2aedbd070e71a22d8658e95ac09d52bc1ceccb -
Branch / Tag:
refs/tags/2.0.0 - Owner: https://github.com/ISI-MIP
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yaml@1c2aedbd070e71a22d8658e95ac09d52bc1ceccb -
Trigger Event:
push
-
Statement type:
File details
Details for the file isimip_utils-2.0.0-py3-none-any.whl.
File metadata
- Download URL: isimip_utils-2.0.0-py3-none-any.whl
- Upload date:
- Size: 31.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c11fbd24d99959bfc3d63bfc5339fef9456ade5679b3a9708a90f36514221775
|
|
| MD5 |
571a77a86d27f9c2c056b6ef5499f39f
|
|
| BLAKE2b-256 |
169b7e597bf5e2e4397698e232559bbd512a5b8e1fe70d2d9a5b535dac80a893
|
Provenance
The following attestation bundles were made for isimip_utils-2.0.0-py3-none-any.whl:
Publisher:
ci.yaml on ISI-MIP/isimip-utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
isimip_utils-2.0.0-py3-none-any.whl -
Subject digest:
c11fbd24d99959bfc3d63bfc5339fef9456ade5679b3a9708a90f36514221775 - Sigstore transparency entry: 1074808455
- Sigstore integration time:
-
Permalink:
ISI-MIP/isimip-utils@1c2aedbd070e71a22d8658e95ac09d52bc1ceccb -
Branch / Tag:
refs/tags/2.0.0 - Owner: https://github.com/ISI-MIP
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yaml@1c2aedbd070e71a22d8658e95ac09d52bc1ceccb -
Trigger Event:
push
-
Statement type: