1

yt-project is a nice toolkit for volumetric data.
But the dataset it used is a bit of complex, such as Enzo data.
So if I only want to volume render a simple 3d data via yt-project, how to load data?

The simple 3D data only contain the Coordinate(x, y, z) and the density of the point. just as follow:

[[x, y, z, density]
[x, y, z, density]
...]

Any help appreciate!

Honghe.Wu
  • 5,899
  • 6
  • 36
  • 47

1 Answers1

1

If the x, y, and z coordinates are regularly spaced, you can load your data into yt using the load_uniform_grid function:

http://yt-project.org/doc/reference/api/generated/yt.frontends.stream.data_structures.load_uniform_grid.html

Here is an example that makes a volume rendering using a dataset loaded with load_uniform_grid:

http://yt-project.org/doc/examining/generic_array_data.html#Volume-Rendering-Loaded-Data

If the data are not uniform resolution, then you're going to need to give more information about how the data are laid out before I can help more.

ngoldbaum
  • 5,430
  • 3
  • 28
  • 35