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.Bitmaporndarray) – 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 tonumpy.array().
- Returns:
dataset (
Dataset) – Bitmap data as an xarray dataset.
See also
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 animgdata variable.