Welcome to xarrayutils’s documentation!¶
This package contains a variety of utility functions I have used in the past few years for data analysis.
Installation¶
Installation from Conda Forge¶
The easiest way to install xgcm along with its dependencies is via conda forge:
conda install -c conda-forge xarrayutils
Installation from Pip¶
An alternative is to use pip:
pip install xarrayutils
Installation from GitHub¶
You can get the newest version by installing directly from GitHub:
pip install git+https://github.com/jbusecke/xarrayutils.git
Contents¶
Utilities for large scale climate data analysis¶
xarrayutils.utils provides some helpful tools to simplify common tasks in climate data analysis workflows.
Plotting utilities¶
xarrayutils.plotting provides several small utility functions to make common tasks I find in my workflow in matplotlib easier.
Convenience functions for file handling¶
xarrayutils.file_handling contains a mix of functions that I found useful across a variety to save/load files. In particular there are functions in there to efficiently save large dask arrays out as temporary files to avoid large task graphs from causing memory problems. Hopefully these will become obsolete as dask continues to improve.
The utilities in xarrayutils.vertical_coordinates are superseeded by the new xgcm transform module.
Converting between vertical coordinate systems¶
The utilities in xarrayutils.vertical_coordinates are superseeded by the new xgcm transform module.
- Utilities for large scale climate data analysis
- Plotting utilities
API
aggregate()
Coarsenblocks
aggregate_w_nanmean()
composite()
concat_dim_da()
convert_flux_array()
corrmap()
dll_dist()
extractBox()
extractBox_dict()
extractBoxes()
fancymean()
filter_1D()
lag_and_combine()
linear_trend()
mask_mixedlayer()
remove_bottom_values()
shift_lon()
sign_agreement()
timefilter()
xr_detrend()
xr_linregress()
axis_arrow()
box_plot()
box_plot_dict()
center_lim()
depth_logscale()
dict2box()
draw_dens_contours_teos10()
letter_subplots()
linear_piecewise_scale()
map_util_plot()
plot_line_shaded_std()
same_y_range()
shaded_line_plot()
tsdiagram()
xr_violinplot()
checkpath()
file_exist_check()
maybe_create_folder()
temp_write_split()
total_nested_size()
write()
- What’s New