xoa.core.tiles

xoa.core.tiles#

Low level utilities to merge tiles of a regular grid

The numerical inputs and outputs of all these routines are of scalar or numpy.ndarray type.

Functions

finalize_mean(out, count)

Convert the sums of paste() with the mode 2 to means, in place

fit_regular_axis(axes[, step, origin, size, ...])

Get the regular axis that holds increasing 1D axes

get_grid_indices(coord, origin, step)

Indices of 1D coordinates on a regular axis

get_lon_window_start(axes[, default, margin])

Start of the 360 degrees window that holds longitude axes with the smallest extent

paste(out, tile, iy0, ix0, mode, count)

Paste a tile into the output array, ignoring its nans

wrap_lon(lon, start)

Shift longitudes by multiples of 360 degrees to be in [start, start + 360[