File tree Expand file tree Collapse file tree 1 file changed +12
-29
lines changed
tutorials/notebooks/synthetic-images Expand file tree Collapse file tree 1 file changed +12
-29
lines changed Original file line number Diff line number Diff line change 79
79
{
80
80
"cell_type" : " code" ,
81
81
"execution_count" : null ,
82
- "metadata" : {
83
- "collapsed" : true
84
- },
82
+ "metadata" : {},
85
83
"outputs" : [],
86
84
"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 " ,
88
88
" hdulist = fits.open(file_i)\n " ,
89
89
" hdulist.info()\n " ,
90
90
" \n " ,
102
102
{
103
103
"cell_type" : " code" ,
104
104
"execution_count" : null ,
105
- "metadata" : {
106
- "collapsed" : true
107
- },
105
+ "metadata" : {},
108
106
"outputs" : [],
109
107
"source" : [
110
108
" print(hdu.data.max())\n " ,
122
120
{
123
121
"cell_type" : " code" ,
124
122
"execution_count" : null ,
125
- "metadata" : {
126
- "collapsed" : true
127
- },
123
+ "metadata" : {},
128
124
"outputs" : [],
129
125
"source" : [
130
126
" fig = plt.figure(figsize=(6,12))\n " ,
170
166
{
171
167
"cell_type" : " code" ,
172
168
"execution_count" : null ,
173
- "metadata" : {
174
- "collapsed" : true
175
- },
169
+ "metadata" : {},
176
170
"outputs" : [],
177
171
"source" : [
178
172
" cdelt1 = ((hdu.header['CDELT1']*u.cm/dist_obj.to('cm'))*u.rad).to('deg')\n " ,
241
235
"cell_type" : " code" ,
242
236
"execution_count" : null ,
243
237
"metadata" : {
244
- "collapsed" : true ,
245
238
"scrolled" : true
246
239
},
247
240
"outputs" : [],
252
245
{
253
246
"cell_type" : " code" ,
254
247
"execution_count" : null ,
255
- "metadata" : {
256
- "collapsed" : true
257
- },
248
+ "metadata" : {},
258
249
"outputs" : [],
259
250
"source" : [
260
251
" wcs = WCS(hdu.header)\n " ,
307
298
{
308
299
"cell_type" : " code" ,
309
300
"execution_count" : null ,
310
- "metadata" : {
311
- "collapsed" : true
312
- },
301
+ "metadata" : {},
313
302
"outputs" : [],
314
303
"source" : [
315
304
" # By default, the Gaussian kernel will go to 4 sigma\n " ,
337
326
{
338
327
"cell_type" : " code" ,
339
328
"execution_count" : null ,
340
- "metadata" : {
341
- "collapsed" : true
342
- },
329
+ "metadata" : {},
343
330
"outputs" : [],
344
331
"source" : [
345
332
" # set FWHM and psf grid\n " ,
411
398
{
412
399
"cell_type" : " code" ,
413
400
"execution_count" : null ,
414
- "metadata" : {
415
- "collapsed" : true
416
- },
401
+ "metadata" : {},
417
402
"outputs" : [],
418
403
"source" : [
419
404
" wcs = WCS(hdu.header)\n " ,
435
420
{
436
421
"cell_type" : " code" ,
437
422
"execution_count" : null ,
438
- "metadata" : {
439
- "collapsed" : true
440
- },
423
+ "metadata" : {},
441
424
"outputs" : [],
442
425
"source" : [
443
426
" file_q = download_file('http://www.astro.wisc.edu/~ychen/MHD_Jet/fits_dtau_005c/synchrotron_q_lobe_0700_150MHz.fits', )\n " ,
You can’t perform that action at this time.
0 commit comments