[yt-svn] commit/yt: xarthisius: Merged in ngoldbaum/yt (pull request #2169)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed May 11 11:24:21 PDT 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/db993aae1887/
Changeset: db993aae1887
Branch: yt
User: xarthisius
Date: 2016-05-11 18:24:16+00:00
Summary: Merged in ngoldbaum/yt (pull request #2169)
Update sketchfab export docs. Closes #1038
Affected #: 1 file
diff -r f9d1b41b06bdb68e6642917795f68766c90a304e -r db993aae188791672893608249078d43a42b50cb doc/source/visualizing/sketchfab.rst
--- a/doc/source/visualizing/sketchfab.rst
+++ b/doc/source/visualizing/sketchfab.rst
@@ -55,7 +55,7 @@
.. code-block:: python
import yt
- ds = yt.load("/data/workshop2012/IsolatedGalaxy/galaxy0030/galaxy0030")
+ ds = yt.load("IsolatedGalaxy/galaxy0030/galaxy0030")
sphere = ds.sphere("max", (1.0, "Mpc"))
surface = ds.surface(sphere, "density", 1e-27)
@@ -113,24 +113,23 @@
.. code-block:: python
- import yt
- ds = yt.load("redshift0058")
- dd = ds.sphere("max", (200, "kpc"))
- rho = 5e-27
+ import yt
+ from yt.units import kpc
+ ds = yt.load("IsolatedGalaxy/galaxy0030/galaxy0030")
+ dd = ds.sphere(ds.domain_center, (500, "kpc"))
+ rho = 1e-28
- bounds = [(dd.center[i] - 100.0/ds['kpc'],
- dd.center[i] + 100.0/ds['kpc']) for i in range(3)]
+ bounds = [[dd.center[i] - 250*kpc, dd.center[i] + 250*kpc] for i in range(3)]
- surf = ds.surface(dd, "density", rho)
+ surf = ds.surface(dd, "density", rho)
- upload_id = surf.export_sketchfab(
- title = "RD0058 - 5e-27",
- description = "Extraction of Density (colored by Temperature) at 5e-27 " \
- + "g/cc from a galaxy formation simulation by Ryan Joung."
- color_field = "temperature",
- color_map = "hot",
- color_log = True,
- bounds = bounds
+ upload_id = surf.export_sketchfab(
+ title="galaxy0030 - 1e-28",
+ description="Extraction of Density (colored by temperature) at 1e-28 g/cc",
+ color_field="temperature",
+ color_map="hot",
+ color_log=True,
+ bounds=bounds
)
and yt will extract a surface, convert to a format that Sketchfab.com
@@ -141,15 +140,13 @@
.. raw:: html
- <iframe frameborder="0" height="480" width="854" allowFullScreen
- webkitallowfullscreen="true" mozallowfullscreen="true"
- src="http://skfb.ly/l4jh2edcba?autostart=0&transparent=0&autospin=0&controls=1&watermark=1"></iframe>
+ <iframe width="640" height="480" src="https://sketchfab.com/models/ff59dacd55824110ad5bcc292371a514/embed" frameborder="0" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>
As a note, Sketchfab has a maximum model size of 50MB for the free account.
-50MB is pretty hefty, though, so it shouldn't be a problem for most needs.
-We're working on a way to optionally upload links to the Sketchfab models on
-the `yt Hub <https://hub.yt-project.org/>`_, but for now, if you want to share
-a cool model we'd love to see it!
+50MB is pretty hefty, though, so it shouldn't be a problem for most
+needs. Additionally, if you have an eligible e-mail address associated with a
+school or university, you can request a free professional account, which allows
+models up to 200MB. See https://sketchfab.com/education for details.
OBJ and MTL Files
-----------------
@@ -167,7 +164,7 @@
import yt
- ds = yt.load("/data/workshop2012/IsolatedGalaxy/galaxy0030/galaxy0030")
+ ds = yt.load("IsolatedGalaxy/galaxy0030/galaxy0030")
rho = [2e-27, 1e-27]
trans = [1.0, 0.5]
filename = './surfaces'
@@ -239,7 +236,7 @@
import yt
- ds = yt.load("/data/workshop2012/IsolatedGalaxy/galaxy0030/galaxy0030")
+ ds = yt.load("IsolatedGalaxy/galaxy0030/galaxy0030")
rho = [2e-27, 1e-27]
trans = [1.0, 0.5]
filename = './surfaces'
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-svn-spacepope.org/attachments/20160511/15595391/attachment.html>
More information about the yt-svn
mailing list