athenakit.kit

Utility functions for data processing, cooling physics, and visualization helpers.

Data conversion

athenakit.kit.bin_to_athdf(binary_fname, athdf_fname)[source]
athenakit.kit.bins_to_athdfs(binpath, athdfpath, overwrite=False, info=True)[source]

Cooling functions

athenakit.kit.CoolFnShure(T)[source]
athenakit.kit.CoolFnShure_numpy(T)[source]

Visualization helpers

athenakit.kit.figure(nrows=1, ncols=1, figsize=(6.4, 4.8), dpi=120, sharex=True, squeeze=False, constrained_layout=False, top=0.94, bottom=0.1, left=0.125, right=0.9, wspace=0.02, hspace=0.0)[source]
athenakit.kit.subplots(nrows=2, ncols=2, figsize=(7.2, 5.0), dpi=120, sharex=False, squeeze=False, constrained_layout=False, top=0.94, bottom=0.1, left=0.125, right=0.9, wspace=0.02, hspace=0.0, raw=False, **kwargs)[source]
athenakit.kit.colors(n, cmap='nipy_spectral', x1=0.0, x2=0.88, beta=0.99)[source]
athenakit.kit.truncate_colormap(cmap, minval=0.0, maxval=1.0, n=100)[source]

Math utilities

athenakit.kit.ave(a, n)[source]
athenakit.kit.smooth(x, s=3, mode='nearest', **kwargs)[source]
athenakit.kit.quantile(x, q, weights=None, axis=None)[source]
athenakit.kit.RK4(func, x, y, h)[source]