Created
July 2, 2017 01:23
-
-
Save ngoldbaum/9506a215c8ae5770e0149dccde8ed012 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import yt | |
import numpy as np | |
filename = "http://darksky.slac.stanford.edu/simulations/ds14_a/ds14_a_1.0000" | |
midx = "http://darksky.slac.stanford.edu/simulations/ds14_a/ds14_a_1.0000.midx10" | |
bbox = np.array([[0.0]*3, | |
[10*1e3]*3]) | |
ds = yt.load(filename, | |
midx_filename=midx, | |
bounding_box=bbox) | |
print(ds.field_list) | |
print(ds.derived_field_list) | |
sp = ds.sphere(ds.domain_center, (5, 'Mpc')) | |
print(sp['dark_matter', 'particle_radial_velocity']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment