New user of yt here. I've been using yt to make some projection plots and I was wondering if there is a way to express the units of the colorbar relative to the mean baryonic density rather than in cgs, i.e. in the form 0.048*rho_crit(at z=0) * (1+z)^3 at redshift z, where rho_crit is a critical density I can calculate and the redshift z can vary depending on which file I'm making projections of. So the colorbar may range from 0.1 (times the baryonic density) to, say, 100 (times the baryonic density). What would be the best way to do this? I'm working with yt version 3.5.1 and Python 3.7.3. Any help is greatly appreciated.
I am trying to get an array out of an off axis projection with a chosen
This is what I have:
plot = yt.OffAxisProjectionPlot(ds, [1, 1, 1], 'density')
image = plot.frb[“gas”, “density”]
According to Nathan's email to Stephanie last year,
"image will be a 1600x1600 2D ndarray containing an image of the density
However, it is not working for me. image is still 800x800.
I do see this message:
yt : [INFO ] 2019-07-01 15:51:04,868 Making a fixed resolution buffer
of (('gas', 'density')) 1600 by 1600
so it seems that yt is making a FRB with the desired resolution, but how do
I get the array?