Skip to content

Commit 5ce9b1e

Browse files
committed
Merge pull request #4 from MatthewTurk/master
Adding the yt quickstart notebooks
2 parents 059eb61 + 1979de8 commit 5ce9b1e

File tree

6 files changed

+1463
-0
lines changed

6 files changed

+1463
-0
lines changed

notebooks/04_yt_Introduction.ipynb

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"metadata": {
3+
"name": "",
4+
"signature": "sha256:7c68cdd34ce71c042fa3c4badc4587693f1cc1b6aa0b3c99a4a63a1db6fe57f9"
5+
},
6+
"nbformat": 3,
7+
"nbformat_minor": 0,
8+
"worksheets": [
9+
{
10+
"cells": [
11+
{
12+
"cell_type": "markdown",
13+
"metadata": {},
14+
"source": [
15+
"# Welcome to the yt quickstart!\n",
16+
"\n",
17+
"In this brief tutorial, we'll go over how to load up data, analyze things, inspect your data, and make some visualizations.\n",
18+
"\n",
19+
"Our documentation page can provide information on a variety of the commands that are used here, both in narrative documentation as well as recipes for specific functionality in our cookbook. The documentation exists at http://yt-project.org/doc/. If you encounter problems, look for help here: http://yt-project.org/doc/help/index.html.\n",
20+
"\n",
21+
"## Acquiring the datasets for this tutorial\n",
22+
"\n",
23+
"If you are executing these tutorials interactively, you need some sample datasets on which to run the code. You can download these datasets at http://yt-project.org/data/. The datasets necessary for each lesson are noted next to the corresponding tutorial.\n",
24+
"\n",
25+
"## What's Next?\n",
26+
"\n",
27+
"The Notebooks are meant to be explored in this order:\n",
28+
"\n",
29+
"1. Introduction\n",
30+
"2. Data Inspection (IsolatedGalaxy dataset)\n",
31+
"3. Simple Visualization (enzo_tiny_cosmology & Enzo_64 datasets)\n",
32+
"4. Data Objects and Time Series (IsolatedGalaxy dataset)\n",
33+
"5. Derived Fields and Profiles (IsolatedGalaxy dataset)\n",
34+
"6. Volume Rendering (IsolatedGalaxy dataset)"
35+
]
36+
},
37+
{
38+
"cell_type": "markdown",
39+
"metadata": {},
40+
"source": [
41+
"The following code will download the data needed for this tutorial automatically using `curl`. It may take some time so please wait when the kernel is busy. You will need to set `download_datasets` to True before using it."
42+
]
43+
},
44+
{
45+
"cell_type": "code",
46+
"collapsed": false,
47+
"input": [
48+
"download_datasets = False\n",
49+
"if download_datasets:\n",
50+
" !curl -sSO http://yt-project.org/data/enzo_tiny_cosmology.tar\n",
51+
" print \"Got enzo_tiny_cosmology\"\n",
52+
" !tar xf enzo_tiny_cosmology.tar\n",
53+
" \n",
54+
" !curl -sSO http://yt-project.org/data/Enzo_64.tar\n",
55+
" print \"Got Enzo_64\"\n",
56+
" !tar xf Enzo_64.tar\n",
57+
" \n",
58+
" !curl -sSO http://yt-project.org/data/IsolatedGalaxy.tar\n",
59+
" print \"Got IsolatedGalaxy\"\n",
60+
" !tar xf IsolatedGalaxy.tar\n",
61+
" \n",
62+
" print \"All done!\""
63+
],
64+
"language": "python",
65+
"metadata": {},
66+
"outputs": []
67+
}
68+
],
69+
"metadata": {}
70+
}
71+
]
72+
}

0 commit comments

Comments
 (0)