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