Version 0.4 Updates

Version 0.4.3

Dependency updates

Ensure compatibility between earthkit components by restricting the following dependencies:

  • earthkit-utils<0.2

Version 0.4.1

Array formats

Made almost all of the methods array format agnostic with support for Numpy, Torch and CuPy arrays/tensors as an input. The array backend is automatically detected from the input data type.

from earthkit.meteo import thermo

# Example with Numpy array
import numpy as np

t = np.array([264.12, 261.45])
p = np.array([850, 850]) * 100.0
theta = thermo.potential_temperature(t, p)

# Example with Torch tensor
import torch

t = torch.tensor([264.12, 261.45])
p = torch.tensor([850.0, 850.0]) * 100.0
theta = thermo.potential_temperature(t, p)

New features

New dependencies

  • earthkit-utils >= 0.0.1