Skip to main content

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 and IMKTK_DATASET.

Usage

import imktk
import xarray as xr

t = xr.tutorial.open_dataset("rasm").load().Tair
anomaly_free_t = t.imktk.anomalies()

User provided scripts

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 to testing

Install

Choose one of the following methods to install the package:

  1. Install using pip
  2. Install using conda
  3. 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>.

  1. Activate the environment
conda activate <env>
  1. 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

  1. Install build dependencies
python3 -m pip install build
  1. Clone repository
git clone https://github.com/imk-toolkit/imk-toolkit.git
  1. Generate the Python packages
python3 -m build  # or `make build`
  1. Install packages
pip3 install dist/imktk-<current.version>-py3-none-any.whl  # or `make install`

Please be aware that this package uses HDF5 and netCDF c-libraries in the backend. If you are installing using git clone the HDF5_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imktk-0.1.8.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

imktk-0.1.8-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file imktk-0.1.8.tar.gz.

File metadata

  • Download URL: imktk-0.1.8.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.11.0-1028-azure

File hashes

Hashes for imktk-0.1.8.tar.gz
Algorithm Hash digest
SHA256 4d776a3c72233b306473d4ab42ed03c1f3a7f5e1756cf5e63020d7de54ce27aa
MD5 0e95441902c0a908f946cefd4fff5ef2
BLAKE2b-256 539c19ceb60cea33fc2e51c5bbd8e4de584c52bccf5e29803d0a945934aa5a7d

See more details on using hashes here.

File details

Details for the file imktk-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: imktk-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.11.0-1028-azure

File hashes

Hashes for imktk-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 80370e36c060196600c736db3a89a9f5611fad285f8938272f78af950df6899c
MD5 50fa35fb027fda0f66dda77d9e0cfb60
BLAKE2b-256 f3f23a8a8ddade975b88bfbf796ef4f8550f747a40fff5b30e53077b912b9d95

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page