Hi, Everybody!
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.
Thanks,
d.
--
Sent from my computer.
Hi,
I did some simple volume rendering with the following script:
volume2 = AMRKDTree(pf, fields=["Dark_Matter_Density"],
no_ghost=False, tree_type="domain",
le=c-0.5*WW, re=c+0.5*WW)
cam = pf.h.camera(c, L, W, N, tf, volume=volume2, no_ghost=False,
north_vector=L, steady_north=True)
cam.snapshot(fn="%s_iso-DMdensity-%3.3d.png" % (filenameTHIS, j))
I got rather strange results in that the pictures look symmetric, which I am pretty
sure can not be true.
I attach the obtained plot.
Note that I am using KD tree and using 32 cores.
Your help at your earliest convenience is appreciated.
Best,
Renyue
Hi all,
We're proud to release yt version 2.5.1. This is a scheduled point
release that includes all bug fixes identified and fixed since the
release of 2.5 on March 1.
Major changes include:
* The addition of a frontend for the Pluto code (Andrew Myers)
* The addition of an OBJ exporter to enable transparent and
multi-surface exports of surfaces to Blender and Sketchfab (Jill
Naiman)
There have also been a number of minor bugs fixed in this release.
Some highlights:
* load_uniform_grid can now decompose dims >= 1024. (#537)
* Axis unit setting works correctly for unit names (#534)
* ThermalEnergy is now calculated correctly for Enzo MHD simulations (#535)
* Radius fields had an asymmetry in periodicity calculation (#531)
* Boolean regions can now be pickled (#517)
If you are using the stable branch of yt from an installation script,
you can upgrade using "yt update". If you are using the development
branch, you may already have these fixes. An installation-ready
tarball with generated C code (i.e., no Cython) has been uploaded to
the Python Package Index (PyPI).
Thanks very much,
Matt, on behalf of the yt development team
Hi!
Is there a way to get yt to not convert data to CGS? I'm doing some
debugging, and its easier to see the code units.
I had a work around for this a while ago, but there has been a bunch of
code development since then.
Thanks!
d.
Dear all,
I am a starter in YT. Now I am not in a position to access our cluster
computer. I would like to know is it possible to install the yt in my
laptop pc.
Specifications - 3rd Gen 1.7 GHz Intel Core i5 Processor, 4 GB RAM, 500GB
Hard dick, 2GB
Graphic Memory, AMD Mobility Radeon 7670M HD Graphic Processor,
And OS is Ubuntu 12.04
If yes what are the prerequisite?
Please help me.
Yours,
Reju Sam John
--
Reju Sam John
Hi yt user,
I try to generate the projection plot with plot_modification from yt HUB.
In example_image_script.py, I try to use color map "algae", it is not
exist, becuase the algae is the yt built in color.
Is ther any way, I can import the yt color map "algae"?
I try to use "from yt.visualization.color_maps import raven_colormaps",
nut the ravens_colormaps is not exist.
I am using yt 2.4.
Thank you in advance,
Junhwan
--
--------------------------------------------------------------
Jun-Hwan Choi, Ph.D.
Department of Physics and Astronomy, University of Kentucky
Tel: (859) 897-6737 Fax: (859) 323-2846
Email: jhchoi(a)pa.uky.edu URL: http://www.pa.uky.edu/~jhchoi
--------------------------------------------------------------
Hi yt user,
I make a very simple projection plot using following script:
==========
from yt.mods import *
# Load the dataset.
pf = load("../RunDM1/DD0134/DD0134")
center = na.array([0.5,0.5,0.5,])
# Making slice
slc = ProjectionPlot(pf, 2,'Density', center,(100, 'pc') , 'Density')
slc.annotate_text((-45,42.5), "a)", data_coords=False)
slc.save("Run1")
==========
It generate plot with x, y, z labels and ticks as well text "a)"
I would like to increase the font size of label, ticks, and text.
I also change the color of the text.
I think it is very basic operation, but I can not find the way.
Can anyone help me?
Thanks in advance,
Junhwan
--
--------------------------------------------------------------
Jun-Hwan Choi, Ph.D.
Department of Physics and Astronomy, University of Kentucky
Tel: (859) 897-6737 Fax: (859) 323-2846
Email: jhchoi(a)pa.uky.edu URL: http://www.pa.uky.edu/~jhchoi
--------------------------------------------------------------
Hey,
I have two question about visualisation options:
(1) Is there a way of changing the colour of the contour, when it's used as a plot modification? I've tried:
p.modify['contour']('NumberDensity', ncont=1, clim=[90,110], plot_args=dict(color='white', linewidths=3))
But no matter what I set 'color' all I get is purple!
(2) When yt is used to create a grid of images via:
p = pc.add_projection("Density", 2, center=na.array([x[i],y[i],16.]), figure=fig, axes=axes[0][i], use_colorbar=False)
is there a way to add a space or a thicker border between the images? Currently, the images are quite dark and the border is black, so they run into each other a bit.
Thanks!
Elizabeth
Hi all,
I'm not sure this is the proper use case, but I've noticed that if,
using the iPython notebook you do
pf = load("DD0000/DD0000")
and then recreate DD0000 with a different hierarchy, when you rerun
the load cell, the pf does not change its hierarchy. I don't know if
this is an intentional behavior, or if I'm doing something wrong.
Restarting the ipython notebook kernel fixes the problem. If the
hierarchy stays the same but the data changes, this seems to work just
fine. I'm trying to debug intial conditions, hence the repeated
loading of a rapidly changing pf.
Is this something we could fix? Or is it by design? If we're moving
increasingly toward iPython notebooks, I would imagine reloading a pf
as a fairly common use case.
j