Skip to content

Commit 7f5415c

Browse files
ebluradrn
authored andcommitted
Updated url to relevant astropy data file
1 parent 099a586 commit 7f5415c

File tree

1 file changed

+12
-29
lines changed

1 file changed

+12
-29
lines changed

tutorials/notebooks/synthetic-images/synthetic-images.ipynb

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@
7979
{
8080
"cell_type": "code",
8181
"execution_count": null,
82-
"metadata": {
83-
"collapsed": true
84-
},
82+
"metadata": {},
8583
"outputs": [],
8684
"source": [
87-
"file_i = download_file('http://www.astro.wisc.edu/~ychen/MHD_Jet/fits_dtau_005c/synchrotron_i_lobe_0700_150MHz.fits', )\n",
85+
"file_i = download_file(\n",
86+
" 'https://astropy.stsci.edu/data/tutorials/synthetic-images/synchrotron_i_lobe_0700_150MHz.fits', \n",
87+
" cache=True)\n",
8888
"hdulist = fits.open(file_i)\n",
8989
"hdulist.info()\n",
9090
"\n",
@@ -102,9 +102,7 @@
102102
{
103103
"cell_type": "code",
104104
"execution_count": null,
105-
"metadata": {
106-
"collapsed": true
107-
},
105+
"metadata": {},
108106
"outputs": [],
109107
"source": [
110108
"print(hdu.data.max())\n",
@@ -122,9 +120,7 @@
122120
{
123121
"cell_type": "code",
124122
"execution_count": null,
125-
"metadata": {
126-
"collapsed": true
127-
},
123+
"metadata": {},
128124
"outputs": [],
129125
"source": [
130126
"fig = plt.figure(figsize=(6,12))\n",
@@ -170,9 +166,7 @@
170166
{
171167
"cell_type": "code",
172168
"execution_count": null,
173-
"metadata": {
174-
"collapsed": true
175-
},
169+
"metadata": {},
176170
"outputs": [],
177171
"source": [
178172
"cdelt1 = ((hdu.header['CDELT1']*u.cm/dist_obj.to('cm'))*u.rad).to('deg')\n",
@@ -241,7 +235,6 @@
241235
"cell_type": "code",
242236
"execution_count": null,
243237
"metadata": {
244-
"collapsed": true,
245238
"scrolled": true
246239
},
247240
"outputs": [],
@@ -252,9 +245,7 @@
252245
{
253246
"cell_type": "code",
254247
"execution_count": null,
255-
"metadata": {
256-
"collapsed": true
257-
},
248+
"metadata": {},
258249
"outputs": [],
259250
"source": [
260251
"wcs = WCS(hdu.header)\n",
@@ -307,9 +298,7 @@
307298
{
308299
"cell_type": "code",
309300
"execution_count": null,
310-
"metadata": {
311-
"collapsed": true
312-
},
301+
"metadata": {},
313302
"outputs": [],
314303
"source": [
315304
"# By default, the Gaussian kernel will go to 4 sigma\n",
@@ -337,9 +326,7 @@
337326
{
338327
"cell_type": "code",
339328
"execution_count": null,
340-
"metadata": {
341-
"collapsed": true
342-
},
329+
"metadata": {},
343330
"outputs": [],
344331
"source": [
345332
"# set FWHM and psf grid\n",
@@ -411,9 +398,7 @@
411398
{
412399
"cell_type": "code",
413400
"execution_count": null,
414-
"metadata": {
415-
"collapsed": true
416-
},
401+
"metadata": {},
417402
"outputs": [],
418403
"source": [
419404
"wcs = WCS(hdu.header)\n",
@@ -435,9 +420,7 @@
435420
{
436421
"cell_type": "code",
437422
"execution_count": null,
438-
"metadata": {
439-
"collapsed": true
440-
},
423+
"metadata": {},
441424
"outputs": [],
442425
"source": [
443426
"file_q = download_file('http://www.astro.wisc.edu/~ychen/MHD_Jet/fits_dtau_005c/synchrotron_q_lobe_0700_150MHz.fits', )\n",

0 commit comments

Comments
 (0)