Does anyone out there have a technique for getting the variance out of
a profile object? A profile object is good at getting <X> vs. B, I'd
then like to get < (X - <X>)^2 > vs B. Matt and I had spittballed the
possibility some time ago, but I was wondering if anyone out there had
successfully done it.
Sent from my computer.
Hello yt users,
I have a (perhaps naive) ssh question related to the yt notebook. I would
like to run a yt notebook server on machine A. However, machine A cannot be
directly accessed via ssh from the wider internet. Instead, I must first
ssh into machine B, and then ssh from B to A. Machine B cannot run the
notebook server itself. Does anyone know how I can configure things -
perhaps by using a more complicated ssh tunnel command - so I that access a
notebook server running on machine A through machine B?
I am trying to make my phase plots smaller so they can fit more nicely into
a paper. Alternatively, I would be fine with upping the font size so when
I shrink them you can read the axes. I found advise on how to do this for
slices, but not for phase_objects.
pc = PlotCollection(pf)
tracerp25 = alld.cut_region(["grid['specific_scalar'] > 0.5", "grid['z']
< 0.192","grid['z'] > -0.192","grid['cyl_RCode'] < 1.2"])
Any help is much appreciated!
I downloaded the example script of light cone projectoin(
to my laptop and changed the Enzo simulation parameter file and redshifts.
But when I ran it the following error occurred:
File "light_cone_projection.py", line 19, in <module>
line 158, in __init__
line 44, in __init__
File "/Users/madcpf/Documents/dev_yt/src/yt-hg/yt/convenience.py", line
131, in simulation
line 81, in __init__
line 343, in __init__
line 273, in _parse_parameter_file
param, vals = (i.strip() for i in line.split("="))
ValueError: need more than 1 value to unpack
Does the parameters "near_redshift" and "far_redshift" in LightCone need to
be the same with "CosmologyFinalRedshift" and "CosmologyInitialRedshift" in
enzo parameter file?
Does anyone know how to solve this?
Thank you all!
I’m trying to compute the two point halo correlation function for RAMSES data using the code found at http://yt-project.org/docs/2.6/analyzing/analysis_modules/two_point_functio… (I’ve already run HOP and written to HopAnalysis.out). I get an error saying ‘add_tree’ is not defined, but yt.utilities.kdtree is imported and build properly. Is this feature working in version 3.0?
P.S Sorry if this gets duplicated as I accidentally tried to send this with an unregistered e-mail
I did a simple test with enzo and I tried to plot a radial profile of
the chemical species fractions with YT.
The problem is that if I use the YT function which intrinsically plot
the fraction for a species, let's say H2I_Fraction (as usual), and
compare this with a direct evaluation of the mass fraction:
I obtain some slightly different results, mostly at large radii.
Anyone might explain this discrepancy!? This happens with all the
Thank you in advance
I have a few more PhasePlots questions.
1) I would like to force my axes to be a particular range. I am looking
at several times in my simulation, and the length of the stripped tail
increases, so different PhasePlots end up with different height above the
disk x-axis ranges, which makes comparison more annoying.
2) I would like for the last tick label to be blank--to not print out on
the figure (in the attachment, I would like for '100' to not be there).
3) On a slightly different note, I want the bin size to be bigger. The
PhasePlots look very streaky, see attached.
I will paste my current set of commands for making my PhasePlot. Thanks
for any help!
ax = plot.plots['CellMassMsun'].axes
ax.set_ylabel(r'z-velocity (10$^8$ cm/s)',fontsize=10)
ax.set_xlabel(r'Height above disk (kpc)',fontsize=10)
print r'z-velocity (10$^8$ cm/s)'
for label in ax.xaxis.get_ticklabels():
for label in ax.yaxis.get_ticklabels():
I am trying to install yt with SciPy on Michigan State University's HPCC
system and am running into errors that I cannot resolve by following the
instructions in the install script. I have tried uncommenting each of the
NUMPY_ARGS statements and had no success. I have attached the log file from
my most recent installation attempt as the error message is long. My guess
is that it has to do with the "recompile with -fPIC" message but I cannot
figure out what that means.
Can anybody explain what this error message means and how to resolve it.
We were having some mailing list issues earlier in the day, but I have
been assured they are now fixed. So if you're seeing this, and got a
bounce earlier, the clog seems to have been resolved. Sorry about
I'm trying to get simple projections, but using the Camera interface,
to allow skewed perspectives. I've tried simply allowing the camera to use
the default ProjectionTransferFunction, in lieu of prettier color transfer
functions ... this seems to yield an all-black image. I've also tried
explicitly setting it's bounds (both with log and non-log limits). This
doesn't seem to help. I see this issue came up about a year ago
My script's included below. I'm tempted to just tweak my inputs to
the color trasnfer function to mimic a simple projection.
*from yt.mods import **
*import yt.visualization.volume_rendering.api as vr*
*from yt.visualization.volume_rendering.transfer_functions import
ProjectionTransferFunction as PTF*
*pf = load("DD0179/DD0179")*
*field = 'Density'*
*use_log = True*
*# Find the bounds in log space of for your field*
*dd = pf.h.all_data()*
*limits = np.array(dd.quantities["Extrema"](field)) * pf.units['cm']*
*# limits = np.log(limits)*
*# Set up the camera parameters: center, looking direction, width,
*c = np.array([.333]*3)*
*L = np.array([1.0, 1.0, 1.0])*
*W = 0.3 / pf["unitary"]*
*N = 1028*
*# Create a camera object*
*cam = vr.Camera(c, L, W, (N,N), transfer_function=PTF(limits),pf=pf)*
*im = cam.snapshot('density.png')*
Munier A. Salem // 845.489.6450