forked from mkudamatsu/mkudamatsu.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gis_lecture0.html
592 lines (532 loc) · 13.9 KB
/
gis_lecture0.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- For Google search results -->
<title>ArcGIS for Economics: Lecture 2</title>
<meta name="description" content="ArcGIS's Spatial Join for economics researchers">
<meta name="author" content="Masayuki Kudamatsu">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<!-- Activate Reveal.js -->
<link rel="stylesheet" href="css/reveal.css">
<!-- Define the theme -->
<link rel="stylesheet" href="css/theme/white4me.css" id="theme">
<!-- Code syntax highlighting -->
<link rel="stylesheet" href="lib/css/tomorrow.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<!--Add support for earlier versions of Internet Explorer -->
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<!-- To activate the CSS framework of Reveal.js -->
<div class="reveal">
<!-- To reconfigure an HTML5 <section> element as a slide using CSS. -->
<div class="slides">
<!-- Slide contents start here -->
<!-- My own slide templates -->
<section id="title">
<h3 style="color:slategrey">
ArcGIS 10 for Economics Research
</h3>
<h3>
Lecture 0
</h3>
<h2>
TITLE
</h2>
<br>
<p>Masayuki Kudamatsu</p>
<p>x May, 2016</p>
<br>
<p>
<small>Press SPACE to proceed. </small>
<br>
<small>To go back to the previous slide, press SHIFT+SPACE. </small>
</p>
</section>
<!-- Standard text slide -->
<section id="" data-transition="slide-in slide-out" style="text-align: left;">
<h3>
</h3>
<p>
</p>
<p>
</p>
<ul>
<li>
</li>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
</section>
<!-- Standard image slide -->
<section id="image" data-transition="slide-in slide-out" style="text-align: left;">
<h4>
</h4>
<img src="gis_lecture0/.png" style="border: none; background: none; box-shadow:none; width: 300px;">
<p><small>(Image taken from )</small></p>
</section>
<!-- Standard weblink slide -->
<section id="websites" data-transition="slide-in slide-out" style="text-align: left;">
<p>
Refer to websites
</p>
<ul>
<li>
<a href="http://" target="_blank">Website name</a>
</li>
</ul>
</section>
<!-- Standard ordered list slide -->
<section id="ordered_list" data-transition="slide-in slide-out" style="text-align: left;">
<h3>
</h3>
<p>
1.
</p>
<ul>
<li>
</li>
</ul>
<p>
2.
</p>
<p>
3.
</p>
<p>
4.
</p>
<p>
5.
</p>
</section>
<!-- ROAD MAP -->
<section id="road_map" style="text-align: left;">
<h3>
Today's road map
</h3>
<p>
1.
</p>
<p>
2.
</p>
<p>
3.
</p>
<p>
4.
</p>
<p>
5.
</p>
<p>
6.
</p>
</section>
<!-- SECTION for paper -->
<section>
<section id="section1">
<h1>
1.
</h1>
</section>
<section id="rq1" data-transition="slide-in slide-out" style="text-align: left;">
<h3>Research Question</h3>
<p>
</p>
<p>
Important?
</p>
<ul>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
<p>
Original?
</p>
<ul>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
<p>
Feasible?
</p>
</section>
<section id="data1" data-transition="slide-in slide-out" style="text-align: left;">
<h3>Data</h3>
<p>
</p>
<ul>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
<p>
</p>
<ul>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
</section>
<section id="image" data-transition="slide-out slide-in">
<h4>
</h4>
<img src="gis_lecture0/.png" style="border: none; background: none; box-shadow:none; width: 600px;">
<p>
<small>(taken from <a href="http://dx.doi.org/" target="_blank">Authors (year)</a>)</small>
</p>
</section>
<section id="equation1" data-transition="slide-out slide-in" style="text-align: left">
<h3>
Empirical specification
</h3>
<p>
<!-- Case by Case -->
\begin{align*}
y_{} =
+ \boldsymbol{x}'_{}\boldsymbol{\gamma} + \varepsilon_{}
\end{align*}
</p>
<table border="0" width="100%">
<tr>
<td style="text-align: right">$y_{}$</td>
<td></td>
</tr>
<tr>
<td style="text-align: right">$\boldsymbol{x}_{}$</td>
<td>Controls</td>
</tr>
<tr>
<td style="text-align: right">$ $</td>
<td></td>
</tr>
</table>
</section>
<section id="result1" data-transition="slide-in slide-out">
<h4>
Main results
</h4>
<img src="gis_lecture0/.png" style="border: none; background: none; box-shadow:none; width: 800px;">
<p>
<small>(Table x of Authors year)</small>
</p>
</section>
</section>
<!-- Preparation -->
<section id="preparation1" data-transition="slide-in slide-out" style="text-align: left;">
<h3>
Prepare for the rest of this lecture
</h3>
<ol>
<li>
Launch ArcMap 10 (it takes time)
</li>
<li>
<a href="" target="_blank">Download the zipped dataset for lecture 0</a>
</li>
<li>
Save it to Downloads (C:\Users\username\Downloads)
</li>
<li>
Right-click it and choose "7-Zip > Extract Here"
</li>
<li>
In ArcMap, open Catalogue Window, right-click "Folder Connections", select "Connect to Folder", and choose "Downloads > Lecture0"
</li>
<li>
Create a new folder called outputs (where we will create new files)
</li>
</ol>
</section>
<!-- SECTION for ArcMap -->
<section>
<section id="section5">
<h1>
5. Replicate Authors (year)
</h1>
</section>
<section id="what_we_learn" data-transition="slide-in slide-out" style="text-align: left;">
<h3>
we will learn how to:
</h3>
<p>1. (Exercise x)</p>
<p>2. (Exercise x)</p>
<p>3. (Exercise x)</p>
</section>
<section id="ex1a" data-transition="slide-in slide-out" style="text-align: left;">
<h4>
Exercise #1
</h4>
<h3>
</h3>
<p>
Geo-processing tools to be used for this exercise:
</p>
<ol>
<li>
</li>
<li>
</li>
<li>
</li>
</ol>
<p>
We use these tools in Model Builder.
</p>
<ol>
<li>
<a href="http://mkudamatsu.github.io/gis_lecture1.html#/modelbuilder1" target="_blank">Create a Model</a>
</li>
<li>
<a href="http://mkudamatsu.github.io/gis_lecture1.html#/modelbuilder3" target="_blank">Save it</a> as "lecture0.tbx/exercise1" in "Lecture 0"
</li>
</ol>
</section>
<section id="toolname" data-transition="slide-in slide-out" style="text-align: left;">
<h4>
Exercise #0: Step 0
</h4>
<h3>
GEOPROCESSING TOOL NAME
</h3>
<p>
<strong>Output Feature Class</strong>: ...\Lecture0\outputs\.shp
</p>
<ul>
<li>
</li>
</ul>
<p>
<strong> </strong>:
</p>
<ul>
<li>
</li>
</ul>
<p>
Uncheck "<strong></strong>"
</p>
<ul>
<li>
</li>
</ul>
<p>
NOTE: This tool overwrites the input data.
</p>
<ul>
<li>
If the input file needs to be preserved, use Copy Features first (as in <a href="http://mkudamatsu.github.io/gis_lecture1.html#/ex6a" target="_blank">Lecture 1 Exercise 6</a>).
</li>
</ul>
</section>
<section id="ex1b" data-transition="slide-in slide-out" style="text-align: left;">
<h4>
Exercise #1 (cont.)
</h4>
<p>
Explain why we need to do what's coming next
</p>
<ul>
<li>
</li>
</ul>
</section>
<section id="ex1c" data-transition="slide-in slide-out" style="text-align: left;">
<h4>
Exercise #1 (cont.)
</h4>
<p>
Now <em>save and</em> run the Model.
</p>
<p>
Browse the output.
</p>
<p>
Browse the attribute table of the output (cf. <a href="http://mkudamatsu.github.io/gis_lecture1.html#/attribute_table" target="_blank">Lecture 1</a>)
</p>
<ul>
<li>
</li>
</ul>
<p>
Is everything as expected?
</p>
</section>
<section id="model_model" data-transition="slide-in slide-out" style="text-align: left;">
<h3>
"Model" model for Lecture 0
</h3>
<p>
Look at "solutions4exercises/lec0model.tbx/" in the downloaded data folder for Lecture 0
</p>
</section>
</section>
<!-- SECTION for Python -->
<section>
<section id="section6">
<h1>
6.
</h1>
</section>
<section id="ex0" data-transition="slide-in slide-out" style="text-align: left;">
<h4>
Exercise #0
</h4>
<h3>
</h3>
<p>
1.
</p>
<ul>
<li>
</li>
</ul>
<p>
2.
</p>
<p>
3.
</p>
</section>
<section id="script_example" data-transition="slide-out slide-in" style="text-align: left;">
<h4>
You should have something like this:
</h4>
<pre>
<code data-trim>
PASTE CODE HERE
</code>
</pre>
</section>
<section id="error_handling" data-transition="slide-out slide-in" style="text-align: left;">
<h4>
Error handling
</h4>
<p>
Sometimes, the output file is not what you intended.
</p>
<p style="margin-left: 60px;">
e.g., New fields in the attribute table are all zero
</p>
<p>
Revising the script may not solve the issue / You cannot find anything wrong with the script
</p>
<p>
If so, reboot Windows. This often solves the issue.
</p>
<p>
Still unsolved, ask Google.
</p>
<ul>
<li>
Someone else may have had the same problem and posted the question on the web
</li>
<li>
And ArcGIS experts may have answered the question
</li>
</ul>
<p>
Last resort: ask at <a href="http://stackexchange.com/" target="_blank">Stack Exchange</a> or <a href="http://forums.arcgis.com" target="_blank">ArcGIS Forum</a>.
</p>
</section>
<section id="model_script" data-transition="slide-out slide-in" style="text-align: left;">
<h3>
Model Python Script for Lecture 0
</h3>
<p>
Look at "solutions4exercises/lec0script.py" in the downloaded data folder for Lecture 0
</p>
</section>
</section>
<section id="lessons" style="text-align: left;">
<h3>
What we've learned on ArcGIS
</h3>
<ol>
<li>
</li>
<li>
\
</li>
</ol>
<p>
Do you remember which geo-processing tools you used for each of these tasks?
</p>
</section>
</div>
<!-- To end the reconfiguration of an HTML5 <section> element as a slide using CSS. -->
</div>
<!-- To end the activation of the CSS framework of Reveal.js -->
<!-- Java script commands should be placed at the bottom of an HTML file, to reduce the perceived loading time -->
<!-- Load head.js, providing a number of utility classses. http://headjs.com/ -->
<script src="lib/js/head.min.js"></script>
<!-- Load reveal.js -->
<script src="js/reveal.js"></script>
<!-- Import MathJax, to use TeX for mathematic expressions -->
<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!-- Allow inline math expressions by using $ -->
<!-- http://tex.stackexchange.com/questions/27633/mathjax-inline-mode-not-rendering -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
processEscapes: true
}
});
</script>
<script>
// Set the options for Reveal.js
// Full list of configuration options available at:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: false, // Disable the navigation arrows on bottom right
progress: true,
history: true,
center: true,
rollingLinks: false, // Disable the default rolling links
transition: 'slide', // Choose from: none/fade/slide/convex/concave/zoom
// Optional reveal.js plugins
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true },
{ src: 'plugin/notes/notes.js', async: true }
]
});
</script>
</body>
</html>