eradiate.kernel.bitmap_to_dataset

eradiate.kernel.bitmap_to_dataset#

eradiate.kernel.bitmap_to_dataset(bmp, dtype='float64')[source]#

Format Mitsuba bitmap data as an xarray dataset.

Parameters:
  • bmp (mitsuba.core.Bitmap or ndarray) – Mitsuba bitmap to be converted to a dataset. A Numpy array can also be passed directly for compatibility (this feature is deprecated).

  • dtype (dtype, optional) – Data type, forwarded to numpy.array().

Returns:

dataset (Dataset) – Bitmap data as an xarray dataset.

Notes

This function exists for backward compatibility purposes. It calls bitmap_to_dataarray() and forwards its arguments to it, then wraps the generated data array in a dataset with an img data variable.