The trick is to generate a slice data object and then use that data object
to create the SlicePlot:
ds = yt.load('IsolatedGalaxy/galaxy0030/galaxy0030')
slc = ds.slice('x', 0.5)
slc.max_level = 2
plot = slc.to_pw('density')
This will generate a plot of 'density' sampled at a maximum AMR level of 2:
Note that all yt data objects support both a min_level and max_level
attribute to control the levels at which data selection happens.
Hope that helps,
On Wed, Mar 21, 2018 at 10:01 AM, Kuo-Chuan Pan <astroodie(a)gmail.com> wrote:
Is there a simple way to create a data set with lower AMR levels?
ds = yt.load(fname, max_level=3)
I knew that there is an example to down sample for volume rendering with
but I don't know how to create a downsample data set which can be analysis
and plot with SlicePlot, for example.
yt-users mailing list -- yt-users(a)python.org
To unsubscribe send an email to yt-users-leave(a)python.org