Toolkit provided by IMK at KIT
Project description
IMK Toolkit
This toolkit provides post-processing scripts developed by members of the Institute of Meteorology and Climate Research (IMK) at the Karlsruhe Institute of Technology (KIT). The goal of this module is to gather together python post-processing scripts for the analysis of netCDF data and distribute them easily.
User provided scripts can be imported using the environmental variables
IMKTK_DATAARRAY
andIMKTK_DATASET
.
Usage
import imktk
ds = imktk.tutorial.open_dataset("toy_weather")
anomaly_free_tmin = ds.tmin.imktk.anomalies()
For user provided scripts please set up the appropriate environmental variables:
Supported variables | Description |
---|---|
IMKTK_DATAARRAY |
Path to xr.DataArray scripts |
IMKTK_DATASET |
Path to xr.Dataset scripts |
IMKTK_LOGLEVEL |
Print debugging information: DEBUG , INFO , WARNING , ERROR |
Environmental variables can be set using export
command
export IMKTK_DATAARRAY=/path/to/scripts
Getting Started
The easiest method to test the module is to use an interactive session with docker. In this environment you will have a Python 3 environment with all necessary dependencies already installed.
docker run -it imktk/imktk:latest bash
For the brave: You can test the latest release candidate by changing
latest
totesting
Install
Choose one of the following methods to install the package:
- Install using
pip
- Install using
conda
- Install using
git clone
This package supports only Python 3 with version
>=3.7
. If you are using an earlier version of Python please consider updating.
pip
Releases are automatically uploaded to PyPI. Please execute following command to install the package.
python3 -m pip install imktk
conda
Currently the package does no support native installation using conda
respectively conda-forge
. This feature is on the roadmap and you can follow
its process using issue #34.
The current workaround for conda
installation is to use the following steps
for any given environment <env>
.
-
Activate the environment
conda activate <env>
-
Install using
pip
python3 -m pip install imktk
git clone
It is also possible to install the package natively by cloning the repository. If you are interested in using this method of installation please follow these steps
-
Install build dependencies
python3 -m pip install build
-
Clone repository
git clone https://github.com/imk-toolkit/imk-toolkit.git
-
Generate the Python packages
python3 -m build # or `make build`
-
Install packages
pip3 install dist/imktk-<current.version>-py3-none-any.whl # or `make install`
Please be aware that this package uses
HDF5
andnetCDF
c-libraries in the backend. If you are installing usinggit clone
theHDF5_DIR
environment variable with the location of the HDF5 header files needs to be set.
Further reading
If you are interested in the inner workings of the package and details of the implementation please refer to the embedded README.md.
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
File details
Details for the file imktk-0.2.0.tar.gz
.
File metadata
- Download URL: imktk-0.2.0.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.15.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f134cc52c90a9cd6043d72f11842bbca95e9309315249c29d90523bd57a827fc |
|
MD5 | 9213b29dbb8d2c9c1c55b23795469f15 |
|
BLAKE2b-256 | e8975dba5c01f01e396dbddeedcdafde61532273140e6bae6ee82508db6ca48e |
File details
Details for the file imktk-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: imktk-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.15.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdd872853975951ad08183fb23579e208f6439ccf8df29d55915fdece2f74252 |
|
MD5 | 150db557b15bab27c47a0b119cfeea20 |
|
BLAKE2b-256 | 665a1b99843e53e9952154fc17dae103a4c9eb473a36a828a56dde0f70a59c57 |