<div dir="ltr"><div><div>Dear yt:<br><br></div>I am trying to do volume rendering for my data and create a time lapse movie. <br><br>Is there a way to extract and put lower and upper bound while volume render? This is to maintain a consistency between frames. <br><br>My code is below<br><br></div>Thanks in advance <br><div><div><br><br>import yt<br>import numpy as np<br>import matplotlib.pylab as pl<br><br>from yt.visualization.api import Streamlines<br>from yt.units import km<br>from mpl_toolkits.mplot3d import Axes3D<br><br>ms = 52728000<br>vector_max=ms-(ms/3)<br>ms1=ms-vector_max<br>dims = (260,260,260)<br><br>x = np.genfromtxt("/home/sushilkumar.sreekuma/Desktop/MODEL5/UPDATE/Expl_Bt696.mtx",skip_header=2,usecols=1, dtype="f8")<br>x = x.reshape((17576000, 3), order="F")<br><br>field1 = x[:,2].reshape(dims, order="F")<br>field2 = x[:,1].reshape(dims, order="F")<br>field3 = x[:,0].reshape(dims, order="F")<br><br>data = dict(field_z = field1,<br>            field_y = field2,<br>            field_x = field3)<br><br>bbox = np.array([[-130, 129], [-130, 129], [-130, 129]])<br><br>pf = yt.load_uniform_grid(data, dims, km, bbox=bbox, nprocs=1)<br><br>im, sc = yt.volume_render(pf,'field_x',fname='B_rendering_t0696.png',sigma_clip=6)<br><br>sc.camera.width = (150, 'km')<br>sc.camera.switch_orientation()<br><br># Save the zoomed in rendering<br>sc.save('B_zoomed_rendering_t0696.png')<br><br><br><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 12, 2016 at 12:54 PM,  <span dir="ltr"><<a href="mailto:yt-users-request@lists.spacepope.org" target="_blank">yt-users-request@lists.spacepope.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send yt-users mailing list submissions to<br>
        <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:yt-users-request@lists.spacepope.org">yt-users-request@lists.<wbr>spacepope.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:yt-users-owner@lists.spacepope.org">yt-users-owner@lists.<wbr>spacepope.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of yt-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. ANN: yt 3.3.3 release (Cameron Hummels)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Mon, 12 Dec 2016 10:34:53 -0800<br>
From: Cameron Hummels <<a href="mailto:chummels@gmail.com">chummels@gmail.com</a>><br>
To: "<a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a>" <<a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a>>,<br>
        Discussion of the yt analysis package <<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a>><br>
Subject: [yt-users] ANN: yt 3.3.3 release<br>
Message-ID:<br>
        <CACyTu7EM43epAiQkO+<wbr>vLeq2oc92f5hvw+KM-5+cUdPThTxe=<a href="mailto:MA@mail.gmail.com"><wbr>MA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
We are proud to announce the release of yt 3.3.3!<br>
<br>
Version 3.3.3 is a regularly scheduled bugfix release including fixes for a<br>
number of issues reported since the release of yt 3.3.2.  We urge all users<br>
to update to the latest version.<br>
<br>
If your python installation is managed via conda, update following:<br>
<br>
$ conda update -c conda-forge yt<br>
<br>
If your python installation is managed via pip, update following:<br>
<br>
$ pip install -U yt<br>
<br>
Finally, if you manage your yt installation by running out of a clone of<br>
the yt mercurial repository, update following:<br>
<br>
$ yt update<br>
<br>
We would like to thank the following people for their contributions to this<br>
release:<br>
<br>
Nathan Goldbaum<br>
Cameron Hummels<br>
Ben Keller<br>
Kacper Kowalik<br>
Jonah Miller<br>
Andrew Myers<br>
Hsi-Yu Schive<br>
Britton Smith<br>
Matthew Turk<br>
John Wise<br>
John ZuHone<br>
<br>
<br>
A summary of changes in this release, along with the number of the pull<br>
request implementing the change follows below:<br>
<br>
Additional docstrings for unstructured mesh data.  See PR 2403<br>
<<a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2403/some-hopefully-illuminating-docstrings-for/diff" rel="noreferrer" target="_blank">https://bitbucket.org/yt_<wbr>analysis/yt/pull-requests/<wbr>2403/some-hopefully-<wbr>illuminating-docstrings-for/<wbr>diff</a>><br>
.<br>
<br>
Speedup in clump finding. See PR 2426<br>
<<a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2426/opt-typedef-array-returned-in/diff" rel="noreferrer" target="_blank">https://bitbucket.org/yt_<wbr>analysis/yt/pull-requests/<wbr>2426/opt-typedef-array-<wbr>returned-in/diff</a>><br>
.<br>
<br>
Speedup in tests. See PR 2427<br>
<<a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2427/use-slighlty-smaller-objects-for-certain/diff" rel="noreferrer" target="_blank">https://bitbucket.org/yt_<wbr>analysis/yt/pull-requests/<wbr>2427/use-slighlty-smaller-<wbr>objects-for-certain/diff</a>><br>
.<br>
<br>
Bugfixes and docs for Tipsy data. PR 2430<br>
<<a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2430/tipsy-correct-auxiliary-file-footer-skip/diff" rel="noreferrer" target="_blank">https://bitbucket.org/yt_<wbr>analysis/yt/pull-requests/<wbr>2430/tipsy-correct-auxiliary-<wbr>file-footer-skip/diff</a>><br>
, PR 2431<br>
<<a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2431/clarify-the-use-of-cosmology_parameters-in/diff" rel="noreferrer" target="_blank">https://bitbucket.org/yt_<wbr>analysis/yt/pull-requests/<wbr>2431/clarify-the-use-of-<wbr>cosmology_parameters-in/diff</a>><br>
.<br>
<br>
Bugfix in Ramses time calculation. PR 2433<br>
<<a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2433/bugfix-explicitly-use-integer-division-in/diff" rel="noreferrer" target="_blank">https://bitbucket.org/yt_<wbr>analysis/yt/pull-requests/<wbr>2433/bugfix-explicitly-use-<wbr>integer-division-in/diff</a>><br>
.<br>
<br>
Bugfix in octree indexing. PR 2434<br>
<<a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2434/bugfix-explicitly-use-integer-division-in/diff" rel="noreferrer" target="_blank">https://bitbucket.org/yt_<wbr>analysis/yt/pull-requests/<wbr>2434/bugfix-explicitly-use-<wbr>integer-division-in/diff</a>><br>
.<br>
<br>
Fixing behavior of ProfilePlots and Profiles PR 2437<br>
<<a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2437/bugfix-fix-rich-display-of-profileplot-in/diff" rel="noreferrer" target="_blank">https://bitbucket.org/yt_<wbr>analysis/yt/pull-requests/<wbr>2437/bugfix-fix-rich-display-<wbr>of-profileplot-in/diff</a>><br>
, PR 2448<br>
<<a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2448/bugfix-more-careful-treatment-of-profile/diff" rel="noreferrer" target="_blank">https://bitbucket.org/yt_<wbr>analysis/yt/pull-requests/<wbr>2448/bugfix-more-careful-<wbr>treatment-of-profile/diff</a>><br>
.<br>
<br>
Bugfix for EPSWritter handing dicts in PlotsWindow instances. PR 2440<br>
<<a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2440/updating-eps_writer-to-handle-a-plotwindow/diff" rel="noreferrer" target="_blank">https://bitbucket.org/yt_<wbr>analysis/yt/pull-requests/<wbr>2440/updating-eps_writer-to-<wbr>handle-a-plotwindow/diff</a>><br>
.<br>
<br>
Ensuring ion fields utilize dataset's metal-specific fields PR 2442<br>
<<a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2442/making-nuclei-density-fields-more-robust/diff" rel="noreferrer" target="_blank">https://bitbucket.org/yt_<wbr>analysis/yt/pull-requests/<wbr>2442/making-nuclei-density-<wbr>fields-more-robust/diff</a>><br>
.<br>
<br>
Assure no orphaned mercurial processes PR 2449<br>
<<a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2449/interact-with-mercurial-repositories-using/diff" rel="noreferrer" target="_blank">https://bitbucket.org/yt_<wbr>analysis/yt/pull-requests/<wbr>2449/interact-with-mercurial-<wbr>repositories-using/diff</a>><br>
.<br>
<br>
Adding checks for bad values in AbsorptionSpectrum PR 2450<br>
<<a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2450/adding-check-for-negative-column-densities/diff" rel="noreferrer" target="_blank">https://bitbucket.org/yt_<wbr>analysis/yt/pull-requests/<wbr>2450/adding-check-for-<wbr>negative-column-densities/diff</a><wbr>><br>
.<br>
<br>
Bugfix in geographic handler PR 2452<br>
<<a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2452/fixing-x-y-axis-confusion-in-the/diff" rel="noreferrer" target="_blank">https://bitbucket.org/yt_<wbr>analysis/yt/pull-requests/<wbr>2452/fixing-x-y-axis-<wbr>confusion-in-the/diff</a>><br>
.<br>
<br>
Bringing gadget data more inline with other SPH datasets PR 2456<br>
<<a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2456/enabling-gadget-frontend-to-alias/diff" rel="noreferrer" target="_blank">https://bitbucket.org/yt_<wbr>analysis/yt/pull-requests/<wbr>2456/enabling-gadget-frontend-<wbr>to-alias/diff</a>><br>
, PR 2436<br>
<<a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2436/bugfix-use-integer-division-in-gadget-io/diff" rel="noreferrer" target="_blank">https://bitbucket.org/yt_<wbr>analysis/yt/pull-requests/<wbr>2436/bugfix-use-integer-<wbr>division-in-gadget-io/diff</a>><br>
.<br>
<br>
Bugfix when OpenMP unavailable PR 2458<br>
<<a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2458" rel="noreferrer" target="_blank">https://bitbucket.org/yt_<wbr>analysis/yt/pull-requests/2458</a><wbr>>.<br>
<br>
Enable light_ray_solution saved to actual LightRay class PR 2460<br>
<<a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2460/save-light-ray-solution-to-dataset/diff" rel="noreferrer" target="_blank">https://bitbucket.org/yt_<wbr>analysis/yt/pull-requests/<wbr>2460/save-light-ray-solution-<wbr>to-dataset/diff</a>><br>
.<br>
<br>
Assure path uses dataset's own unit system. PR 2462<br>
<<a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2462/path-unit-should-use-datasets-unit-system/diff" rel="noreferrer" target="_blank">https://bitbucket.org/yt_<wbr>analysis/yt/pull-requests/<wbr>2462/path-unit-should-use-<wbr>datasets-unit-system/diff</a>><br>
.<br>
<br>
Cameron Hummels,<br>
On behalf of the yt development team<br>
<br>
--<br>
Cameron Hummels<br>
NSF Postdoctoral Fellow<br>
Department of Astronomy<br>
California Institute of Technology<br>
<a href="http://chummels.org" rel="noreferrer" target="_blank">http://chummels.org</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20161212/63583846/attachment.html" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>pipermail/yt-users-spacepope.<wbr>org/attachments/20161212/<wbr>63583846/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
______________________________<wbr>_________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
<br>
<br>
------------------------------<br>
<br>
End of yt-users Digest, Vol 106, Issue 7<br>
******************************<wbr>**********<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><span style="border-collapse:collapse"><div style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><b><i>SK<sup>2</sup></i></b></span></div><div style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><b><i><sup><br></sup></i></b></span></div><div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;border-collapse:collapse"><b><sup>"</sup></b></span><font color="#500050" face="arial, sans-serif"><b>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.</b></font><b style="color:rgb(80,0,80);font-family:arial,sans-serif"><sup>"</sup></b></div><div style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><br></div></span></div>
</div></div></div></div></div>