Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions notebooks/04_yt_Introduction.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"metadata": {
"name": "",
"signature": "sha256:7c68cdd34ce71c042fa3c4badc4587693f1cc1b6aa0b3c99a4a63a1db6fe57f9"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Welcome to the yt quickstart!\n",
"\n",
"In this brief tutorial, we'll go over how to load up data, analyze things, inspect your data, and make some visualizations.\n",
"\n",
"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",
"\n",
"## Acquiring the datasets for this tutorial\n",
"\n",
"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",
"\n",
"## What's Next?\n",
"\n",
"The Notebooks are meant to be explored in this order:\n",
"\n",
"1. Introduction\n",
"2. Data Inspection (IsolatedGalaxy dataset)\n",
"3. Simple Visualization (enzo_tiny_cosmology & Enzo_64 datasets)\n",
"4. Data Objects and Time Series (IsolatedGalaxy dataset)\n",
"5. Derived Fields and Profiles (IsolatedGalaxy dataset)\n",
"6. Volume Rendering (IsolatedGalaxy dataset)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"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."
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"download_datasets = False\n",
"if download_datasets:\n",
" !curl -sSO http://yt-project.org/data/enzo_tiny_cosmology.tar\n",
" print \"Got enzo_tiny_cosmology\"\n",
" !tar xf enzo_tiny_cosmology.tar\n",
" \n",
" !curl -sSO http://yt-project.org/data/Enzo_64.tar\n",
" print \"Got Enzo_64\"\n",
" !tar xf Enzo_64.tar\n",
" \n",
" !curl -sSO http://yt-project.org/data/IsolatedGalaxy.tar\n",
" print \"Got IsolatedGalaxy\"\n",
" !tar xf IsolatedGalaxy.tar\n",
" \n",
" print \"All done!\""
],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
}
]
}
Loading