I'm trying to make in-situ visualization available for a simulation,
and I'm considering different softwares for that (VisIt, YT,...).
I've never used YT, so my question is: is it possible to add
some code in a simulation (written in C++) to have some kind of
distributed rendering engine using YT, just like VisIt does with
ENS Cachan, antenne de Bretagne
Département informatique et télécommunication
I may be asking something that is obvious to others, but it's not to
me. It is it possible to have more than one data field displayed in a
single volume projection image? Say, each with a different color map?
If so, how? Thanks!
510.621.3687 (google voice)
Is there a way of passing field parameters to extract_connected_sets?
works fine but
contours = dd.extract_connected_sets("NegEscapeVelocity", 1, 30.0, maxv, log_space=False)
complains it can't find the set field variables.
I have a 1536^3 ENZO datacube that I want to smooth to essentially become a
512^3 datacube. I want to be able to still use the datacube to do further
analysis with yt, so I need the format of the data not to change. I only
need to smooth the data of 3 fields, but I need to keep the Derived
Quantities and parallel capabilities of yt. Is there any yt implementation
that can do this or any other suggestions?
I don't know how widely this has been discussed (sorry if it has and
I've just missed it), but how easy would it be to install YT such that
it interacts with my existing Python packages? Is the easiest thing
simply to re-install everything to the YT directory and re-update the
PYTHONPATH environment variable for any packages not in the default
Python path, or is there a better way to allow YT and my existing Python
packages to co-exist without activating/deactivating YT?
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.
I'm having trouble adding text through a callback onto a phase plot.
I tried this code:
pc.add_phase_sphere(r200[j],'kpc',["Density","Temperature","CellMassMsun"],weight = None)
And I get this error:
Traceback (most recent call last):
File "test_phase_plots.py", line 41, in <module>
"/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/visualization/plot_collection.py", line 157, in save
"/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/visualization/plot_types.py", line 108, in save_image
"/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/visualization/plot_types.py", line 903, in _redraw_image
"/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/visualization/plot_types.py", line 800, in _run_callbacks
"/share/home/01112/tg803911/yt_17May2011/yt-x86_64/src/yt-hg/yt/visualization/plot_modifications.py", line 910, in __call__
y = plot.image._A.shape * self.pos
IndexError: tuple index out of range
The error arises in the save command, but the problem only happens when
I add the modify["text"] command. Any ideas?
thanks a lot, setting y_log=False does the trick!
> Message: 3
> Date: Fri, 30 Sep 2011 16:32:58 -0600
> From: David Collins <dcollins(a)physics.ucsd.edu>
> To: Discussion of the yt analysis package
> Subject: Re: [yt-users] log-linear phase plot
> Content-Type: text/plain; charset=ISO-8859-1
> I've run into this as well. I believe you need to give
> add_phase_object the log value by hand, with
> On Fri, Sep 30, 2011 at 3:52 PM, Geoffrey So <gsiisg(a)gmail.com> wrote:
>> Just wondering, if FieldOne is already logged, do you still want the limits
>> to encompass 1 to 1e10, have you tried something like (1e9,1e10) ?
>> On Fri, Sep 30, 2011 at 2:37 PM, Wolfram Schmidt
>> <schmidt(a)astro.physik.uni-goettingen.de> wrote:
>>> Hi everyone,
>>> I defined two fields, say, FieldOne and FieldTwo, to make 2D phase plot.
>>> FieldOne is logarithmic by default, FieldTwo is linear (i.e., I set
>>> take_log=False in add_field).
>>> I want to produce a phase plot with logarithmic bins for FieldOne and
>>> linear bins for FieldTwo, where the range of FieldTwo is [-10,10]
>>> I thought that
>>> pc.add_phase_object(dd, ["FieldOne", "FieldTwo", "CellMass"], weight=None,
>>> x_bins=100,y_bins=100, \
>>> ? ? ? ? ? ? ? ? ? ?x_bounds=[1e0,1e10], y_bounds=[-10,10])
>>> might do the job, but ?yt returns the error message:
>>> Warning: invalid value encountered in log10
>>> yt : [ERROR ? ?] 2011-09-30 16:55:05,610 Your min/max values for x, y have
>>> given me a nan.
>>> yt : [ERROR ? ?] 2011-09-30 16:55:05,610 Usually this means you are asking
>>> for log, with a zero bound.
>>> Traceback (most recent call last):
>>> ?File "stability.py", line 352, in <module>
>>> ? ?x_bounds=[1e0,1e10], y_bounds=[-10,10])
>>> line 1149, in add_phase_object
>>> ? ?lazy_reader)
>>> line 408, in __init__
>>> ? ?raise ValueError
>>> It appears that add_phase_object treats FieldTwo logarithmically, although
>>> it is linear.
>>> So how can I do a log-linear phase plot?
>>> yt-users mailing list
>> yt-users mailing list