utils
This module contains convenience functions for any purposes.
|
Provide a simple time profiling utility |
|
Concatenate xarray datasets along each time coordinate |
|
Convert an array of integer into datetime objects. |
|
Decorator which can be used to mark functions as deprecated. |
|
Extract diagonal blocks from square Matrix. |
From a xarray dataset or dataarray, get coordinates with at least 1 time dimension |
|
From a xarray dataset or dataarray, get dimensions corresponding to time coordinates |
|
|
Get pseudo groups from xarray dataset object (only direct under root) |
|
Combine image files to a video using |
|
Convert an array of integers into datetime objects. |
|
Append a directory to environment path variable. |
|
Prepend a directory to environment path variable. |
|
Remove a directory from environment path variable. |
|
Make functions include the whole stack in raised exceptions |
|
Safely evaluate string that may contain basic arithmetic |
|
Set the resolution of a python datetime object. |
|
Splits a string into float number and potential unit |
|
Like xarrays stack, but with partial support for repeated dimensions |
|
Convert an object to a python datetime object. |
|
Convert an object to a python datetime object. |
|
convert floats back to ints in xarray dataset where appropriate |
|
Remove duplicates from list whilst keeping the original order |
utils.cache
Utilities related to caching and memoisation
|
In-memory cache like functools.lru_cache but for any object |