Skip to content

Commit 7975f4b

Browse files
committed
Updated table and layer settings
1 parent 745a56d commit 7975f4b

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

tutorials/stellar_streams.ipynb

+24-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"(under construction)\n",
7+
"\\*\\* *(under construction. If you're using Binder, please note that this tutorial is only fully functional in Firefox at the moment.)* \\*\\*\n",
88
"\n",
99
"Adapted from [a notebook](https://nbviewer.jupyter.org/github/marksubbarao/pyWWT_AAS225/blob/master/SgrStream.ipynb) by Mark SubbaRao that uses files from [here](http://www.astro.virginia.edu/~srm4n/Sgr/data.html) and visualizes the tidal disruption of the Sagittarius Dwarf Galaxy described in [Law & Majewski 2010](https://iopscience.iop.org/article/10.1088/0004-637X/714/1/229)."
1010
]
@@ -40,6 +40,16 @@
4040
"#wwt"
4141
]
4242
},
43+
{
44+
"cell_type": "markdown",
45+
"metadata": {},
46+
"source": [
47+
"*WWT works under HTTP, while Binder uses HTTPS. As such, in order to access all features of pywwt, Binder users will need to:*\n",
48+
"- *Click the lock icon to the left of the address bar,*\n",
49+
"- *Select the arrow next to “Connection,”*\n",
50+
"- *Then, press the “Disable protection for now” button. (Protection is disabled for this page and only during this session, not for your whole browser. We are working on upgrading WWT so this step is no longer necessary.)*"
51+
]
52+
},
4353
{
4454
"cell_type": "code",
4555
"execution_count": null,
@@ -91,7 +101,7 @@
91101
"star_ly = wwt.layers.add_data_layer(table=stars, frame='Sky',\n",
92102
" lon_att='ra', lat_att='dec',\n",
93103
" alt_att='dist', alt_type='distance',\n",
94-
" cmap_att='depth', size_scale=20)\n",
104+
" cmap_att='colormap', size_scale=40)\n",
95105
"\n",
96106
"star_ly.far_side_visible = True"
97107
]
@@ -111,6 +121,7 @@
111121
"orbit['dec'].unit = u.deg\n",
112122
"orbit['time'].unit = u.Gyr\n",
113123
"orbit['dist'] *= 1000\n",
124+
"orbit['dist'] = u.pc\n",
114125
"#orbit.rename_column('dist', 'distance')"
115126
]
116127
},
@@ -143,13 +154,24 @@
143154
"outputs": [],
144155
"source": [
145156
"# display Sgr Dwarf in the viewer\n",
157+
"# (we only plot a slice of orbit to ensure your system can handle it...\n",
158+
"# ...if so, replace 'orbit[:300]' with 'orbit')\n",
146159
"orb_ly = wwt.layers.add_data_layer(table=orbit[:300], frame='Sky',\n",
147160
" lon_att='ra', lat_att='dec',\n",
148161
" alt_att='dist', alt_type='distance',\n",
149162
" size_scale=20)\n",
150163
"\n",
151164
"orb_ly.far_side_visible = True"
152165
]
166+
},
167+
{
168+
"cell_type": "code",
169+
"execution_count": null,
170+
"metadata": {},
171+
"outputs": [],
172+
"source": [
173+
"wwt.set_view('solar system')"
174+
]
153175
}
154176
],
155177
"metadata": {

0 commit comments

Comments
 (0)