[yt-users] Volume render

Sushilkumar sushil.sush19us at gmail.com
Mon Nov 21 08:04:03 PST 2016


Dear yt:

I am using volume render to visualizing the gradient in field lines.
Is there a way that I can add more sensitivity, in terms of colors to my
final image? Currently the gradient seems very limited and cannot
differentiate between near and far fields. Drive link is below

Thanks in advance


https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc


On Sun, Nov 20, 2016 at 11:44 AM, <yt-users-request at lists.spacepope.org>
wrote:

> Send yt-users mailing list submissions to
>         yt-users at lists.spacepope.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> or, via email, send a message with subject or body 'help' to
>         yt-users-request at lists.spacepope.org
>
> You can reach the person managing the list at
>         yt-users-owner at lists.spacepope.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of yt-users digest..."
>
>
> Today's Topics:
>
>    1. Re: Problem using Multiplot_yt (John Wise)
>    2. Re: Problem using Multiplot_yt (John Wise)
>    3. sliceplots for setting maximum temperature at the center
>       (turhan nasri)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 20 Nov 2016 08:34:09 -0500
> From: John Wise <jwise at physics.gatech.edu>
> To: <yt-users at lists.spacepope.org>
> Subject: Re: [yt-users] Problem using Multiplot_yt
> Message-ID: <15643110-1f4b-460c-c80e-2e85b0fdb18d at physics.gatech.edu>
> Content-Type: text/plain; charset="windows-1252"; format=flowed
>
> Hi Rahul,
>
> I can confirm that this is a bug with multiplot_yt.  I'll get back to
> the list once I find a fix.  In the meantime, can you create an issue on
> bitbucket?
>
> Thanks,
> John
>
> On 11/20/2016 12:51 AM, rahul kashyap wrote:
> > Some attempts which didn't work. The callback is pasted on
> > http://paste.yt-project.org/show/6931/
> >
> > I tried putting fields in the call
> >
> > eps_fig = eps.multiplot_yt(2, 2, s,["density","temperature",
> > "velocity_magnitude","pressure"], bare_axes=True)
> >
> > I also tried putting a break point in the yt/visualization/eps_writer.py
> >
> > figure = multiplot(ncol, nrow, yt_plots=plots, fields=fields, **kwargs)
> >
> >
> >
> >
> > On Sun, Nov 20, 2016 at 12:35 AM, rahul kashyap
> > <rahulkashyap411 at gmail.com <mailto:rahulkashyap411 at gmail.com>> wrote:
> >
> >     Hi,
> >
> >     After doing
> >
> >     import yt.visualization.eps_writer as eps
> >     from yt.visualization.eps_writer import multiplot_yt
> >     s = yt.SlicePlot(ds, "z", ["density","temperature",
> >     "velocity_magnitude","pressure"], center="max")
> >
> >     This works for me
> >
> >     eps_fig = eps.single_plot(s)
> >     eps_fig.save_fig('zoom', format='eps')
> >     eps_fig.save_fig('zoom-pdf', format='pdf')
> >
> >     *But, the code below doesn't work for me; error is "YTFieldNotFound:
> >     Could not find field '('io', 0)' in super3d_hdf5_plt_cnt_0000."*
> >
> >     s.set_width(2.e9, 'cm')
> >     eps_fig = eps.multiplot_yt(2, 2, s, bare_axes=True)     #not working
> now
> >     #eps_fig.scale_line(0.2, '5 kpc')
> >     eps_fig.save_fig('multi', format='eps')
> >
> >     Any help would be appreciated, Thanks
> >     -Rahul Kashyap
> >
> >
> >
> >
> > _______________________________________________
> > yt-users mailing list
> > yt-users at lists.spacepope.org
> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> >
>
> --
> John Wise
> Associate Professor of Physics
> Center for Relativistic Astrophysics, Georgia Tech
> http://cosmo.gatech.edu
>
>
> ------------------------------
>
> Message: 2
> Date: Sun, 20 Nov 2016 08:55:12 -0500
> From: John Wise <jwise at physics.gatech.edu>
> To: <yt-users at lists.spacepope.org>
> Subject: Re: [yt-users] Problem using Multiplot_yt
> Message-ID: <b7bf57b5-3aaa-d243-f77c-8ba56b519d68 at physics.gatech.edu>
> Content-Type: text/plain; charset="windows-1252"; format=flowed
>
> Hi again,
>
> The fix was easier than I thought.  Can you test it out?  If you
> installed yt with "INST_YT_SOURCE=1" in the install script, then you can
> issue the following commands in the yt source directory
>
> hg pull -u -r 9373defa8ed5 https://bitbucket.org/jwise77/yt
> python setup.py develop
>
> and see if your script now works.  It works for me with a similar script
> as you posted.
>
> If you're using the conda installation, then you can follow the
> instructions in this previous email.
>
> http://lists.spacepope.org/pipermail/yt-users-spacepope.
> org/2016-October/008277.html
>
> Let us know what you find.
> Thanks,
> John
>
>
> On 11/20/2016 08:34 AM, John Wise wrote:
> > Hi Rahul,
> >
> > I can confirm that this is a bug with multiplot_yt.  I'll get back to
> > the list once I find a fix.  In the meantime, can you create an issue on
> > bitbucket?
> >
> > Thanks,
> > John
> >
> > On 11/20/2016 12:51 AM, rahul kashyap wrote:
> >> Some attempts which didn't work. The callback is pasted on
> >> http://paste.yt-project.org/show/6931/
> >>
> >> I tried putting fields in the call
> >>
> >> eps_fig = eps.multiplot_yt(2, 2, s,["density","temperature",
> >> "velocity_magnitude","pressure"], bare_axes=True)
> >>
> >> I also tried putting a break point in the yt/visualization/eps_writer.py
> >>
> >> figure = multiplot(ncol, nrow, yt_plots=plots, fields=fields, **kwargs)
> >>
> >>
> >>
> >>
> >> On Sun, Nov 20, 2016 at 12:35 AM, rahul kashyap
> >> <rahulkashyap411 at gmail.com <mailto:rahulkashyap411 at gmail.com>> wrote:
> >>
> >>     Hi,
> >>
> >>     After doing
> >>
> >>     import yt.visualization.eps_writer as eps
> >>     from yt.visualization.eps_writer import multiplot_yt
> >>     s = yt.SlicePlot(ds, "z", ["density","temperature",
> >>     "velocity_magnitude","pressure"], center="max")
> >>
> >>     This works for me
> >>
> >>     eps_fig = eps.single_plot(s)
> >>     eps_fig.save_fig('zoom', format='eps')
> >>     eps_fig.save_fig('zoom-pdf', format='pdf')
> >>
> >>     *But, the code below doesn't work for me; error is "YTFieldNotFound:
> >>     Could not find field '('io', 0)' in super3d_hdf5_plt_cnt_0000."*
> >>
> >>     s.set_width(2.e9, 'cm')
> >>     eps_fig = eps.multiplot_yt(2, 2, s, bare_axes=True)     #not
> >> working now
> >>     #eps_fig.scale_line(0.2, '5 kpc')
> >>     eps_fig.save_fig('multi', format='eps')
> >>
> >>     Any help would be appreciated, Thanks
> >>     -Rahul Kashyap
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> yt-users mailing list
> >> yt-users at lists.spacepope.org
> >> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> >>
> >
>
> --
> John Wise
> Associate Professor of Physics
> Center for Relativistic Astrophysics, Georgia Tech
> http://cosmo.gatech.edu
>
>
> ------------------------------
>
> Message: 3
> Date: Sat, 19 Nov 2016 20:33:01 -0500
> From: turhan nasri <turhannasri at gmail.com>
> To: yt-users at lists.spacepope.org
> Subject: [yt-users] sliceplots for setting maximum temperature at the
>         center
> Message-ID:
>         <CANPWr5iqWXTAk9i5drdSRTVD4D6s9i5+o0oZCUhq-UZNwZ2QUA at mail.
> gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi people,
>
> I wanted to to get slices for temperature and temperature gradient
> magnitude setting the maximum temperature at the center. I used yt's
> feature:
>
> v,c = pf.h.find_max('temperature') #set center at max_temp
>
> and got the slices, however, my slice outputs clearly show the maximum
> temperature was not set at center. I am sharing the python code for the
> slices and also my output files.
> this code worked when I created density slices and max_dens was set at
> center, I don't see it isn't working out for temperature. Thanks for your
> help
>
> Turhan
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.
> org/attachments/20161119/9e9c84a2/attachment.htm>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: super3d_hdf5_chk_0047_3slice_temperature.png
> Type: image/png
> Size: 89139 bytes
> Desc: not available
> URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.
> org/attachments/20161119/9e9c84a2/attachment.png>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: super3d_hdf5_chk_0047_3slice_temperature_gradient_magnitude (7).png
> Type: image/png
> Size: 107028 bytes
> Desc: not available
> URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.
> org/attachments/20161119/9e9c84a2/attachment-0001.png>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: slice.py
> Type: text/x-python
> Size: 3813 bytes
> Desc: not available
> URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.
> org/attachments/20161119/9e9c84a2/attachment.py>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
> ------------------------------
>
> End of yt-users Digest, Vol 105, Issue 28
> *****************************************
>



-- 
*SK2*

*"**Claiming that something can move faster than light is a good
conversation-stopper in physics. People edge away from you in cocktail
parties; friends never return phone calls. You just don’t mess with Albert
Einstein.**"*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20161121/78264808/attachment-0001.htm>


More information about the yt-users mailing list