作者:Laura Tateosian
(也可以拿A Beginner's Guide to Generalized Additive Mixed Models with R(2014) ISBN: 9780957174153 [url=][/url] Add to Citavi project by ISBN 或者 Beginner's Guide to Generalized Additive Models with R (2012) ISBN: 780957174122来换该书)
封面
目录
Contents
1 Introduction ............................................................................................. 1
1.1 Python and GIS ................................................................................ 2
1.2 Sample Data and Scripts .................................................................. 3
1.3 GIS Data Formats ............................................................................ 4
1.3.1 GRID Raster......................................................................... 4
1.3.2 Shapefi le ............................................................................... 5
1.3.3 dBASE Files ......................................................................... 5
1.3.4 Layer Files ........................................................................... 6
1.3.5 Geodatabase ......................................................................... 6
1.4 An Introductory Example ................................................................ 7
1.5 Organization of This Book ............................................................... 10
1.6 Key Terms ........................................................................................ 11
2 Beginning Python .................................................................................... 13
2.1 Where to Write Code ....................................................................... 13
2.2 How to Run Code in PythonWin and PyScripter ............................. 15
2.3 How to Pass Input to a Script ........................................................... 20
2.4 Python Components ......................................................................... 21
2.4.1 Comments ............................................................................ 23
2.4.2 Keywords ............................................................................. 23
2.4.3 Indentation ........................................................................... 24
2.4.4 Built-in Functions ................................................................ 24
2.4.5 Variables, Assignment Statements, and Dynamic Typing ...... 26
2.4.6 Variables Names and Tracebacks ......................................... 28
2.4.7 Built-in Constants and Exceptions ....................................... 30
2.4.8 Standard (Built-in) Modules ................................................ 31
2.5 Key Terms ........................................................................................ 32
2.6 Exercises .......................................................................................... 33
3 Basic Data Types: Numbers and Strings .............................................. 37
3.1 Numbers ........................................................................................... 37
3.2 What Is a String? .............................................................................. 38
x
3.3 String Operations ............................................................................. 40
3.3.1 Find the Length of Strings ................................................... 40
3.3.2 Indexing into Strings ............................................................ 41
3.3.3 Slice Strings ......................................................................... 42
3.3.4 Concatenate Strings ............................................................. 43
3.3.5 Check for Substring Membership ........................................ 44
3.4 More Things with Strings (a.k.a. String Methods) .......................... 45
3.5 File Paths and Raw Strings .............................................................. 49
3.6 Unicode Strings ................................................................................ 51
3.7 Printing Strings and Numbers .......................................................... 52
3.8 Key Terms ........................................................................................ 54
3.9 Exercises .......................................................................................... 54
4 Basic Data Types: Lists and Tuples ....................................................... 59
4.1 Lists .................................................................................................. 59
4.1.1 Sequence Operations on Lists .............................................. 60
4.1.2 List Methods ........................................................................ 61
4.1.3 The Built-in range Function .............................................. 62
4.1.4 Copying a List ...................................................................... 62
4.2 Tuples ............................................................................................... 64
4.3 Syntax Check and Tracebacks ......................................................... 65
4.4 Key Terms ........................................................................................ 69
4.5 Exercises .......................................................................................... 70
5 ArcGIS and Python ................................................................................. 77
5.1 ArcToolbox ...................................................................................... 77
5.2 ArcGIS Python Resources ............................................................... 79
5.3 Exporting Models ............................................................................. 81
5.4 Working with GIS Data.................................................................... 83
5.5 ArcGIS + Python = arcpy ................................................................ 84
5.6 arcpy Functions ................................................................................ 87
5.7 Environment Settings ....................................................................... 89
5.8 Key Terms ........................................................................................ 92
5.9 Exercises .......................................................................................... 92
6 Calling Tools with Arcpy ........................................................................ 95
6.1 Calling Tools .................................................................................... 95
6.2 Help Resources ................................................................................ 97
6.2.1 Tool Help ............................................................................. 97
6.2.2 Code Snippets ...................................................................... 98
6.3 Tool Parameters ................................................................................ 99
6.3.1 Linear Units ......................................................................... 99
6.3.2 Python Expressions as Inputs............................................... 100
6.3.3 Multivalue Inputs ................................................................. 101
6.3.4 Optional Parameters ............................................................. 102
6.4 Return Values and Result Objects .................................................... 103
Contents
................................................(字符限制,只放了前6章目录)......................
Index ................................................................................................................. 531