際際滷

際際滷Share a Scribd company logo
NDATA SCHOOL OF CLIMATE AND EARTH SCIENCES
EARTH SCIENCES DEPARTMENT
Geo-Information Science
Section
Object Oriented Programming: OBOP 210  Python
Prepared By
Emmanuel Chinkaka
echinkaka@must.ac.mw
Introduction to Python
 Python is a high-level programming language
 Open source and community driven
 Batteries Included
 a standard distribution includes many modules
 Dynamic typed
 Source can be compiled or run just-in-time
 Similar to perl, tcl, ruby
Why Python?
 Unlike AML and Avenue, there is a
considerable base of developers already using
the language
 Tried and true language that has been in
development since 1991
 Can interface with the Component Object
Model (COM) used by Windows
 Can interface with Open Source GIS toolsets
Why not Visual Basic?
 Visual Basic is still the method of configuring
and customizing ArcMap
 If you have a button on the toolbar, its VB
 Python scripts can be placed in ArcToolbox
 Python can be run from the command line
without ArcMap or ArcCatalog being open
 Using just the GIS Engine, lower overhead
 Rapid prototyping, ease of authoring, etc.
Python Interfaces
 IDLE  a cross-platform Python development
environment
 PythonWin  a Windows only interface to
Python
 Python Shell  running 'python' from the
Command Line opens this interactive shell
 For the exercises, we'll use IDLE, but you can
try them all and pick a favorite
IDLE  Development Environment
 IDLE helps you
program in Python
by:
 color-coding your
program code
 debugging
 auto-indent
 interactive shell
Example Python
 Hello World
print hello world
 Prints hello world to
standard out
 Open IDLE and try it
out yourself
 Follow along using
IDLE
Additional Python Resources
 Python Homepage
http://www.python.org/
 Dive Into Python
http://www.diveintopython.org/
 Learning Python, 3rd Edition
http://www.oreilly.com/catalog/9780596513
986/
 Getting Started Writing Geoprocessing Scripts
Available on ESRI's support page

More Related Content

What's hot (19)

Programming Project Part 6
Programming Project Part 6Programming Project Part 6
Programming Project Part 6
Bobby Billings
SynapseIndia dotnet development framework
SynapseIndia  dotnet development frameworkSynapseIndia  dotnet development framework
SynapseIndia dotnet development framework
Synapseindiappsdevelopment
Guided overview of software frameworks qt framework
Guided overview of software frameworks   qt frameworkGuided overview of software frameworks   qt framework
Guided overview of software frameworks qt framework
Benjamin Cottrell
.Net Introduction
.Net Introduction.Net Introduction
.Net Introduction
Muzzammil Wani
Cloud Conf 2015 - Develop and Deploy IOT Applications
Cloud Conf 2015 - Develop and Deploy IOT ApplicationsCloud Conf 2015 - Develop and Deploy IOT Applications
Cloud Conf 2015 - Develop and Deploy IOT Applications
Corley S.r.l.
EEF : Sexy Properties, Wizards and Views - EclipseCon 11
EEF : Sexy Properties, Wizards and Views - EclipseCon 11EEF : Sexy Properties, Wizards and Views - EclipseCon 11
EEF : Sexy Properties, Wizards and Views - EclipseCon 11
Chauvin Mariot
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
Soba Arjun
Basic C# and .net
Basic C# and .netBasic C# and .net
Basic C# and .net
Jannatul Ferdus
CV Juhani Polvi
CV Juhani PolviCV Juhani Polvi
CV Juhani Polvi
Juhani Polvi
201801 CSE240 Lecture 04
201801 CSE240 Lecture 04201801 CSE240 Lecture 04
201801 CSE240 Lecture 04
Javier Gonzalez-Sanchez
Python debuggers slides
Python debuggers slidesPython debuggers slides
Python debuggers slides
mattboehm
Microsoft .Net Framework
Microsoft .Net FrameworkMicrosoft .Net Framework
Microsoft .Net Framework
Rohit Rao
ASP.NET Core 101
ASP.NET Core 101ASP.NET Core 101
ASP.NET Core 101
Tuy畉n V滴 畛c
.Net overview
.Net overview.Net overview
.Net overview
teach4uin
Evalution about programming language part 1
Evalution about programming language part 1Evalution about programming language part 1
Evalution about programming language part 1
Synapseindiappsdevelopment
Overview of microsoft dot net platforms
Overview of microsoft dot net platformsOverview of microsoft dot net platforms
Overview of microsoft dot net platforms
Abhijit B.
Introduction to Android with Kotlin: 仂仆仂 亳仆从仂于 (Telerik Academy)
Introduction to Android with Kotlin:  仂仆仂 亳仆从仂于 (Telerik Academy)Introduction to Android with Kotlin:  仂仆仂 亳仆从仂于 (Telerik Academy)
Introduction to Android with Kotlin: 仂仆仂 亳仆从仂于 (Telerik Academy)
PlovDev Conference
DevFest Santo Domingo - Kotlin DSL
DevFest Santo Domingo - Kotlin DSLDevFest Santo Domingo - Kotlin DSL
DevFest Santo Domingo - Kotlin DSL
Nicolas Fr辰nkel
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
Magorzata Borzcka
Programming Project Part 6
Programming Project Part 6Programming Project Part 6
Programming Project Part 6
Bobby Billings
Guided overview of software frameworks qt framework
Guided overview of software frameworks   qt frameworkGuided overview of software frameworks   qt framework
Guided overview of software frameworks qt framework
Benjamin Cottrell
Cloud Conf 2015 - Develop and Deploy IOT Applications
Cloud Conf 2015 - Develop and Deploy IOT ApplicationsCloud Conf 2015 - Develop and Deploy IOT Applications
Cloud Conf 2015 - Develop and Deploy IOT Applications
Corley S.r.l.
EEF : Sexy Properties, Wizards and Views - EclipseCon 11
EEF : Sexy Properties, Wizards and Views - EclipseCon 11EEF : Sexy Properties, Wizards and Views - EclipseCon 11
EEF : Sexy Properties, Wizards and Views - EclipseCon 11
Chauvin Mariot
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
Soba Arjun
CV Juhani Polvi
CV Juhani PolviCV Juhani Polvi
CV Juhani Polvi
Juhani Polvi
Python debuggers slides
Python debuggers slidesPython debuggers slides
Python debuggers slides
mattboehm
Microsoft .Net Framework
Microsoft .Net FrameworkMicrosoft .Net Framework
Microsoft .Net Framework
Rohit Rao
.Net overview
.Net overview.Net overview
.Net overview
teach4uin
Evalution about programming language part 1
Evalution about programming language part 1Evalution about programming language part 1
Evalution about programming language part 1
Synapseindiappsdevelopment
Overview of microsoft dot net platforms
Overview of microsoft dot net platformsOverview of microsoft dot net platforms
Overview of microsoft dot net platforms
Abhijit B.
Introduction to Android with Kotlin: 仂仆仂 亳仆从仂于 (Telerik Academy)
Introduction to Android with Kotlin:  仂仆仂 亳仆从仂于 (Telerik Academy)Introduction to Android with Kotlin:  仂仆仂 亳仆从仂于 (Telerik Academy)
Introduction to Android with Kotlin: 仂仆仂 亳仆从仂于 (Telerik Academy)
PlovDev Conference
DevFest Santo Domingo - Kotlin DSL
DevFest Santo Domingo - Kotlin DSLDevFest Santo Domingo - Kotlin DSL
DevFest Santo Domingo - Kotlin DSL
Nicolas Fr辰nkel
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
Magorzata Borzcka

Similar to Obop 210 lecture 2 python documentation (20)

Python Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & TechPython Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & Tech
Ramanamurthy Banda
Scale machine learning deployment
Scale machine learning deploymentScale machine learning deployment
Scale machine learning deployment
Gang Tao
IPT 2.pptx
IPT 2.pptxIPT 2.pptx
IPT 2.pptx
CHRISPay4
Top Five Reasons for Choosing Python Programming
Top Five Reasons for Choosing Python Programming  Top Five Reasons for Choosing Python Programming
Top Five Reasons for Choosing Python Programming
Lesa Cote
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1
Kanchilug
Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)
Rr
Introduction to Python Programming Basics
Introduction  to  Python  Programming BasicsIntroduction  to  Python  Programming Basics
Introduction to Python Programming Basics
Dhana malar
Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
Shree M.L.Kakadiya MCA mahila college, Amreli
Ali alshehri c++_comparison between c++&python
Ali alshehri c++_comparison between c++&pythonAli alshehri c++_comparison between c++&python
Ali alshehri c++_comparison between c++&python
AliAAAlshehri
Python as Web Development
Python as Web Development Python as Web Development
Python as Web Development
SamWas1
Dr. Tanvi FOCP Unit-2 Session-1 PPT (Revised).pdf
Dr. Tanvi FOCP Unit-2 Session-1 PPT (Revised).pdfDr. Tanvi FOCP Unit-2 Session-1 PPT (Revised).pdf
Dr. Tanvi FOCP Unit-2 Session-1 PPT (Revised).pdf
RahulSingh190790
Python
PythonPython
Python
Mohammad Junaid Khan
Python programming ppt.pptx
Python programming ppt.pptxPython programming ppt.pptx
Python programming ppt.pptx
nagendrasai12
Comparison between python and c++
Comparison between python and c++Comparison between python and c++
Comparison between python and c++
ssusera7faf41
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
eShikshak
Introduction to Python GUI development with Delphi for Python - Part 1: Del...
Introduction to Python GUI development with Delphi for Python - Part 1:   Del...Introduction to Python GUI development with Delphi for Python - Part 1:   Del...
Introduction to Python GUI development with Delphi for Python - Part 1: Del...
Embarcadero Technologies
PYTHON UNIT 1
PYTHON UNIT 1PYTHON UNIT 1
PYTHON UNIT 1
nagendrasai12
What is python
What is pythonWhat is python
What is python
faizrashid1995
Apache Beam: Lote port叩til y procesamiento de transmisi坦n
Apache Beam: Lote port叩til y procesamiento de transmisi坦nApache Beam: Lote port叩til y procesamiento de transmisi坦n
Apache Beam: Lote port叩til y procesamiento de transmisi坦n
Globant
Programming in python in detail concept .pptx
Programming in python in detail concept .pptxProgramming in python in detail concept .pptx
Programming in python in detail concept .pptx
Kavitha713564
Python Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & TechPython Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & Tech
Ramanamurthy Banda
Scale machine learning deployment
Scale machine learning deploymentScale machine learning deployment
Scale machine learning deployment
Gang Tao
IPT 2.pptx
IPT 2.pptxIPT 2.pptx
IPT 2.pptx
CHRISPay4
Top Five Reasons for Choosing Python Programming
Top Five Reasons for Choosing Python Programming  Top Five Reasons for Choosing Python Programming
Top Five Reasons for Choosing Python Programming
Lesa Cote
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1
Kanchilug
Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)
Rr
Introduction to Python Programming Basics
Introduction  to  Python  Programming BasicsIntroduction  to  Python  Programming Basics
Introduction to Python Programming Basics
Dhana malar
Ali alshehri c++_comparison between c++&python
Ali alshehri c++_comparison between c++&pythonAli alshehri c++_comparison between c++&python
Ali alshehri c++_comparison between c++&python
AliAAAlshehri
Python as Web Development
Python as Web Development Python as Web Development
Python as Web Development
SamWas1
Dr. Tanvi FOCP Unit-2 Session-1 PPT (Revised).pdf
Dr. Tanvi FOCP Unit-2 Session-1 PPT (Revised).pdfDr. Tanvi FOCP Unit-2 Session-1 PPT (Revised).pdf
Dr. Tanvi FOCP Unit-2 Session-1 PPT (Revised).pdf
RahulSingh190790
Python programming ppt.pptx
Python programming ppt.pptxPython programming ppt.pptx
Python programming ppt.pptx
nagendrasai12
Comparison between python and c++
Comparison between python and c++Comparison between python and c++
Comparison between python and c++
ssusera7faf41
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
eShikshak
Introduction to Python GUI development with Delphi for Python - Part 1: Del...
Introduction to Python GUI development with Delphi for Python - Part 1:   Del...Introduction to Python GUI development with Delphi for Python - Part 1:   Del...
Introduction to Python GUI development with Delphi for Python - Part 1: Del...
Embarcadero Technologies
Apache Beam: Lote port叩til y procesamiento de transmisi坦n
Apache Beam: Lote port叩til y procesamiento de transmisi坦nApache Beam: Lote port叩til y procesamiento de transmisi坦n
Apache Beam: Lote port叩til y procesamiento de transmisi坦n
Globant
Programming in python in detail concept .pptx
Programming in python in detail concept .pptxProgramming in python in detail concept .pptx
Programming in python in detail concept .pptx
Kavitha713564

Recently uploaded (20)

MUTATION AND GENETIC DRIFT &NATURAL SELECTION
MUTATION AND GENETIC DRIFT &NATURAL SELECTIONMUTATION AND GENETIC DRIFT &NATURAL SELECTION
MUTATION AND GENETIC DRIFT &NATURAL SELECTION
nilahefx
20250402 ACMJ Diagrams Set 6 Revision 3.pdf
20250402 ACMJ Diagrams Set 6 Revision 3.pdf20250402 ACMJ Diagrams Set 6 Revision 3.pdf
20250402 ACMJ Diagrams Set 6 Revision 3.pdf
Sharon Liu
Structure and Significance of Weberian Ossicles .pptx
Structure and Significance of Weberian Ossicles .pptxStructure and Significance of Weberian Ossicles .pptx
Structure and Significance of Weberian Ossicles .pptx
Dr Showkat Ahmad Wani
Isotopes-Chemistry-Presentation-in-a-Fun-Colorful-Style.pptx
Isotopes-Chemistry-Presentation-in-a-Fun-Colorful-Style.pptxIsotopes-Chemistry-Presentation-in-a-Fun-Colorful-Style.pptx
Isotopes-Chemistry-Presentation-in-a-Fun-Colorful-Style.pptx
NarcisoJimenezlll
natural producghfhhgfhffft 4sem ppt.pptx
natural producghfhhgfhffft 4sem ppt.pptxnatural producghfhhgfhffft 4sem ppt.pptx
natural producghfhhgfhffft 4sem ppt.pptx
rohitverma43215
IMMUNOMODULATORS: IMMUNOSTIMULATION AND IMMUNOSUPPRESSION .pptx
IMMUNOMODULATORS: IMMUNOSTIMULATION AND IMMUNOSUPPRESSION .pptxIMMUNOMODULATORS: IMMUNOSTIMULATION AND IMMUNOSUPPRESSION .pptx
IMMUNOMODULATORS: IMMUNOSTIMULATION AND IMMUNOSUPPRESSION .pptx
karishmaduhijod1
Unit II_Classical methods of Analysis_PPT.pdf
Unit II_Classical methods of Analysis_PPT.pdfUnit II_Classical methods of Analysis_PPT.pdf
Unit II_Classical methods of Analysis_PPT.pdf
daya667887
GNU Linux - Introduction and Administration.
GNU Linux - Introduction and Administration.GNU Linux - Introduction and Administration.
GNU Linux - Introduction and Administration.
Xavier de Pedro
INVESTIGATING TARDIGRADES RESISTANCE AS A MODEL FOR LIFE IN EXTREME SPACE ENV...
INVESTIGATING TARDIGRADES RESISTANCE AS A MODEL FOR LIFE IN EXTREME SPACE ENV...INVESTIGATING TARDIGRADES RESISTANCE AS A MODEL FOR LIFE IN EXTREME SPACE ENV...
INVESTIGATING TARDIGRADES RESISTANCE AS A MODEL FOR LIFE IN EXTREME SPACE ENV...
S辿rgio Sacani
Unit IV_Chromatography_Theory_KRavi.pptx
Unit IV_Chromatography_Theory_KRavi.pptxUnit IV_Chromatography_Theory_KRavi.pptx
Unit IV_Chromatography_Theory_KRavi.pptx
daya667887
Mutation and its types (Point, Silent, Mis sense and Non sense mutations)
Mutation and its types (Point, Silent, Mis sense and Non sense mutations)Mutation and its types (Point, Silent, Mis sense and Non sense mutations)
Mutation and its types (Point, Silent, Mis sense and Non sense mutations)
Anoja Kurian
FULL LECTURE ON BODY FLUIDS BY DR DANIEL.ppt
FULL LECTURE ON BODY FLUIDS BY DR DANIEL.pptFULL LECTURE ON BODY FLUIDS BY DR DANIEL.ppt
FULL LECTURE ON BODY FLUIDS BY DR DANIEL.ppt
baffourprince2016
Responsible Use of Research Metrics Module Launch
Responsible Use of Research Metrics Module LaunchResponsible Use of Research Metrics Module Launch
Responsible Use of Research Metrics Module Launch
dri_ireland
EDIC Old Exames Q 3.pdfs fefeegh5uyttbtrr
EDIC Old Exames Q 3.pdfs fefeegh5uyttbtrrEDIC Old Exames Q 3.pdfs fefeegh5uyttbtrr
EDIC Old Exames Q 3.pdfs fefeegh5uyttbtrr
EmanEssa14
Fading Light, Fierce Winds: JWST Snapshot of a Sub-Eddington Quasar at Cosmic...
Fading Light, Fierce Winds: JWST Snapshot of a Sub-Eddington Quasar at Cosmic...Fading Light, Fierce Winds: JWST Snapshot of a Sub-Eddington Quasar at Cosmic...
Fading Light, Fierce Winds: JWST Snapshot of a Sub-Eddington Quasar at Cosmic...
S辿rgio Sacani
Play whole.in children and adults..en.pdf
Play whole.in children and adults..en.pdfPlay whole.in children and adults..en.pdf
Play whole.in children and adults..en.pdf
mhmahmodian
Aerospace_Quiz_Complete.pptx tehbuagiegige
Aerospace_Quiz_Complete.pptx  tehbuagiegigeAerospace_Quiz_Complete.pptx  tehbuagiegige
Aerospace_Quiz_Complete.pptx tehbuagiegige
amuthesh6
Climate change consequences and preventives measure.pptx
Climate change consequences and preventives measure.pptxClimate change consequences and preventives measure.pptx
Climate change consequences and preventives measure.pptx
AwmaPachuau
Actinobacterium Producing Antimicrobials Against Drug-Resistant Bacteria
Actinobacterium Producing Antimicrobials Against Drug-Resistant BacteriaActinobacterium Producing Antimicrobials Against Drug-Resistant Bacteria
Actinobacterium Producing Antimicrobials Against Drug-Resistant Bacteria
Abdulmajid Almasabi
Data and Computing Infrastructure for the Life Sciences
Data and Computing Infrastructure for the Life SciencesData and Computing Infrastructure for the Life Sciences
Data and Computing Infrastructure for the Life Sciences
Chris Dwan
MUTATION AND GENETIC DRIFT &NATURAL SELECTION
MUTATION AND GENETIC DRIFT &NATURAL SELECTIONMUTATION AND GENETIC DRIFT &NATURAL SELECTION
MUTATION AND GENETIC DRIFT &NATURAL SELECTION
nilahefx
20250402 ACMJ Diagrams Set 6 Revision 3.pdf
20250402 ACMJ Diagrams Set 6 Revision 3.pdf20250402 ACMJ Diagrams Set 6 Revision 3.pdf
20250402 ACMJ Diagrams Set 6 Revision 3.pdf
Sharon Liu
Structure and Significance of Weberian Ossicles .pptx
Structure and Significance of Weberian Ossicles .pptxStructure and Significance of Weberian Ossicles .pptx
Structure and Significance of Weberian Ossicles .pptx
Dr Showkat Ahmad Wani
Isotopes-Chemistry-Presentation-in-a-Fun-Colorful-Style.pptx
Isotopes-Chemistry-Presentation-in-a-Fun-Colorful-Style.pptxIsotopes-Chemistry-Presentation-in-a-Fun-Colorful-Style.pptx
Isotopes-Chemistry-Presentation-in-a-Fun-Colorful-Style.pptx
NarcisoJimenezlll
natural producghfhhgfhffft 4sem ppt.pptx
natural producghfhhgfhffft 4sem ppt.pptxnatural producghfhhgfhffft 4sem ppt.pptx
natural producghfhhgfhffft 4sem ppt.pptx
rohitverma43215
IMMUNOMODULATORS: IMMUNOSTIMULATION AND IMMUNOSUPPRESSION .pptx
IMMUNOMODULATORS: IMMUNOSTIMULATION AND IMMUNOSUPPRESSION .pptxIMMUNOMODULATORS: IMMUNOSTIMULATION AND IMMUNOSUPPRESSION .pptx
IMMUNOMODULATORS: IMMUNOSTIMULATION AND IMMUNOSUPPRESSION .pptx
karishmaduhijod1
Unit II_Classical methods of Analysis_PPT.pdf
Unit II_Classical methods of Analysis_PPT.pdfUnit II_Classical methods of Analysis_PPT.pdf
Unit II_Classical methods of Analysis_PPT.pdf
daya667887
GNU Linux - Introduction and Administration.
GNU Linux - Introduction and Administration.GNU Linux - Introduction and Administration.
GNU Linux - Introduction and Administration.
Xavier de Pedro
INVESTIGATING TARDIGRADES RESISTANCE AS A MODEL FOR LIFE IN EXTREME SPACE ENV...
INVESTIGATING TARDIGRADES RESISTANCE AS A MODEL FOR LIFE IN EXTREME SPACE ENV...INVESTIGATING TARDIGRADES RESISTANCE AS A MODEL FOR LIFE IN EXTREME SPACE ENV...
INVESTIGATING TARDIGRADES RESISTANCE AS A MODEL FOR LIFE IN EXTREME SPACE ENV...
S辿rgio Sacani
Unit IV_Chromatography_Theory_KRavi.pptx
Unit IV_Chromatography_Theory_KRavi.pptxUnit IV_Chromatography_Theory_KRavi.pptx
Unit IV_Chromatography_Theory_KRavi.pptx
daya667887
Mutation and its types (Point, Silent, Mis sense and Non sense mutations)
Mutation and its types (Point, Silent, Mis sense and Non sense mutations)Mutation and its types (Point, Silent, Mis sense and Non sense mutations)
Mutation and its types (Point, Silent, Mis sense and Non sense mutations)
Anoja Kurian
FULL LECTURE ON BODY FLUIDS BY DR DANIEL.ppt
FULL LECTURE ON BODY FLUIDS BY DR DANIEL.pptFULL LECTURE ON BODY FLUIDS BY DR DANIEL.ppt
FULL LECTURE ON BODY FLUIDS BY DR DANIEL.ppt
baffourprince2016
Responsible Use of Research Metrics Module Launch
Responsible Use of Research Metrics Module LaunchResponsible Use of Research Metrics Module Launch
Responsible Use of Research Metrics Module Launch
dri_ireland
EDIC Old Exames Q 3.pdfs fefeegh5uyttbtrr
EDIC Old Exames Q 3.pdfs fefeegh5uyttbtrrEDIC Old Exames Q 3.pdfs fefeegh5uyttbtrr
EDIC Old Exames Q 3.pdfs fefeegh5uyttbtrr
EmanEssa14
Fading Light, Fierce Winds: JWST Snapshot of a Sub-Eddington Quasar at Cosmic...
Fading Light, Fierce Winds: JWST Snapshot of a Sub-Eddington Quasar at Cosmic...Fading Light, Fierce Winds: JWST Snapshot of a Sub-Eddington Quasar at Cosmic...
Fading Light, Fierce Winds: JWST Snapshot of a Sub-Eddington Quasar at Cosmic...
S辿rgio Sacani
Play whole.in children and adults..en.pdf
Play whole.in children and adults..en.pdfPlay whole.in children and adults..en.pdf
Play whole.in children and adults..en.pdf
mhmahmodian
Aerospace_Quiz_Complete.pptx tehbuagiegige
Aerospace_Quiz_Complete.pptx  tehbuagiegigeAerospace_Quiz_Complete.pptx  tehbuagiegige
Aerospace_Quiz_Complete.pptx tehbuagiegige
amuthesh6
Climate change consequences and preventives measure.pptx
Climate change consequences and preventives measure.pptxClimate change consequences and preventives measure.pptx
Climate change consequences and preventives measure.pptx
AwmaPachuau
Actinobacterium Producing Antimicrobials Against Drug-Resistant Bacteria
Actinobacterium Producing Antimicrobials Against Drug-Resistant BacteriaActinobacterium Producing Antimicrobials Against Drug-Resistant Bacteria
Actinobacterium Producing Antimicrobials Against Drug-Resistant Bacteria
Abdulmajid Almasabi
Data and Computing Infrastructure for the Life Sciences
Data and Computing Infrastructure for the Life SciencesData and Computing Infrastructure for the Life Sciences
Data and Computing Infrastructure for the Life Sciences
Chris Dwan

Obop 210 lecture 2 python documentation

  • 1. NDATA SCHOOL OF CLIMATE AND EARTH SCIENCES EARTH SCIENCES DEPARTMENT Geo-Information Science Section Object Oriented Programming: OBOP 210 Python Prepared By Emmanuel Chinkaka echinkaka@must.ac.mw
  • 2. Introduction to Python Python is a high-level programming language Open source and community driven Batteries Included a standard distribution includes many modules Dynamic typed Source can be compiled or run just-in-time Similar to perl, tcl, ruby
  • 3. Why Python? Unlike AML and Avenue, there is a considerable base of developers already using the language Tried and true language that has been in development since 1991 Can interface with the Component Object Model (COM) used by Windows Can interface with Open Source GIS toolsets
  • 4. Why not Visual Basic? Visual Basic is still the method of configuring and customizing ArcMap If you have a button on the toolbar, its VB Python scripts can be placed in ArcToolbox Python can be run from the command line without ArcMap or ArcCatalog being open Using just the GIS Engine, lower overhead Rapid prototyping, ease of authoring, etc.
  • 5. Python Interfaces IDLE a cross-platform Python development environment PythonWin a Windows only interface to Python Python Shell running 'python' from the Command Line opens this interactive shell For the exercises, we'll use IDLE, but you can try them all and pick a favorite
  • 6. IDLE Development Environment IDLE helps you program in Python by: color-coding your program code debugging auto-indent interactive shell
  • 7. Example Python Hello World print hello world Prints hello world to standard out Open IDLE and try it out yourself Follow along using IDLE
  • 8. Additional Python Resources Python Homepage http://www.python.org/ Dive Into Python http://www.diveintopython.org/ Learning Python, 3rd Edition http://www.oreilly.com/catalog/9780596513 986/ Getting Started Writing Geoprocessing Scripts Available on ESRI's support page