NOVEMBER 23, 2022, 10:00 - 11:00 PST
Dianne Bencito and Fritz Andal
Using Python for Geospatial Data
�I. Introduction to Python�II. Introduction to GIS�III. Introduction to Python GIS� A. Jupyter� B. GeoPandas�IV.Activity�V. Closing
Topic Outline
Hi, I’m Dianne! :)
Hi, I’m Fritz! :)
Introduction to Python
It was created by Guido van Rossum in 1991 and further developed by the Python Software Foundation���It is also called general-purpose programming language as it is used in almost every domain we can think of such as web development, software development, data analytics, etc.
Why Python?
��Open source and large active community base ��Easy to read, learn and write��Extensive support libraries (NumPy for numerical calculations, Pandas for data analytics, etc.)
Introduction to GIS
�
GIS (Geographical Information Systems)
store, analyze, and visualize data for geographic positions on Earth’s surface.
Information
System
G I S
Geography
the study of places and the relationships
between people and their environments
Details of the features
Technology and methods for storing and analyzing data using the information.
2 TYPES OF GIS DATA
Vector
provides a way to represent real world features within the GIS environment. It consists of points, lines, and polygons.
Raster
made up of pixels, and each pixel has a value and also known as grid data.
Introduction to Python GIS
�
Variables
Exercise #1
We have a variable named distance_km below with the value 4135 - indicating the straight-line distance between San Francisco and New York in Kilometers. Create another variable called distance_mi and store the distance value in miles.
�
Data Structures
Exercise #2
From the dictionary below, how do you access the latitude and longitude values? print the latitude and longitude of new york city by extracting it from the dictionary below.
�
String Operations
�
Loops and Conditionals
Exercise #4
Write a program that prints the numbers from 1 to 50 and for multiples of 3 print "SOTM" instead of the number and for the multiples of 7 print "PNM". If it is divisible by both, print "PNM_SOTM_2022".
UP Resilience Institute, Magsaysay Ave., cor. Apacible St., University of the Philippines
Diliman, Quezon City
(+632) 924 2904 Loc 2770
resilience.institute@up.edu.ph
resilience.up.edu.ph
UPResilienceInstitute
@UPResilience
UP Resilience Institute
Thank you! Maraming Salamat!