eradiate.xarray#

eradiate.xarray.unstack_mdistant_grid(obj)[source]#

Reindex data produced by a MultiDistantMeasure.grid() measure on (VAA, VZA) dimensions.

This effectively reshapes the data, which is initially indexed on film width and height dimensions (the latter having a single element).

Parameters:

obj (DataArray or Dataset) – An xarray object produced by processing a MultiDistantMeasure.grid() measure, indexed on film dimensions.

Returns:

DataArray or Dataset – An object of the same type, reindexed on VZA and VAA coordinates.

eradiate.xarray.interp#

dataarray_to_rgb(da, channels[, normalize, ...])

Compose an RGB image from radiance data.

film_to_angular(da, theta, phi[, x_label, ...])

Interpolate a hemispherical film data array on an angular grid.

eradiate.xarray._accessors#

EradiateDataArrayAccessor(xarray_obj)

Convenience wrapper for operations on DataArray instances.