Python in Jupyter Notebooks Exercises
These exercises can be used to get started with Python for GIS in a Jupyter Notebook environment, starting from introductory Python, and progressing through Numpy, Pandas, geopandas and arcpy geoprocessing, with both open-source and Esri-based methods.
Download the exercise html pages here: https://sfsu.box.com/v/SFSUGIScPythonTutorials.
A pdf version with code results:https://gis.sfsu.edu/sites/default/files/documents/PythonExercises_resu…
Data folder: https://sfsu.box.com/s/s8f4c1gw9lohi1k0211w9025yj5dd1ha
Python Script Geoprocessing Tools
By Jerry Davis, SFSU Institute for GIScience.
Instructions:
- Download and extract the zip file.
- Add the toolbox to ArcToolbox in ArcMap or ArcCatalog.
- Optionally, test with sample data in the ToolData Folder.
![Line Slope View](/sites/default/files/styles/sf_state_250x250/public/images/lineslopeView_0.jpg?h=c0321f10&itok=8cA-6BOv)
LineSlope Tool
Creates line segments with line slopes from existing polylines.
![3D Lines](/sites/default/files/styles/sf_state_250x250/public/images/3DLines.gif?h=b6004a59&itok=qH8FrKF2)
Survey Tools
Converts surveyed XYZM and NEZM points into 3D polylines and 3D points.
![Stratified Unaligned Sample Points](/sites/default/files/styles/sf_state_250x250/public/images/map_1.jpg?h=03b74769&itok=2cgypAqy)
Systematic Stratified Unaligned Sample Tool
Creates a systematic stratified unaligned sample of points for polygons.
![Surface model that represents ruggedness of terrain](/sites/default/files/styles/sf_state_250x250/public/images/ruggedness_1.gif?h=f5523f32&itok=5opYMQkV)
Ruggedness Tool
Creates a surface from an elevation raster representing ruggedness of terrain. Works with all ArcGIS friendly raster formats except Personal Geodatabase.
![Model Builder](/sites/default/files/styles/sf_state_250x250/public/images/GetDEMunitsInModel_0.gif?h=6431315f&itok=G63-4LKX)
Get DEM Units Tool
To create polylines coded with their linear slope, from 3D polylines.
![Maximum Flow created using Hypsometry Tool](/sites/default/files/styles/sf_state_250x250/public/images/MaxFlow_1.jpg?h=115b2c34&itok=pb8Ravid)
Hypsometry Tool
Converts surveyed XYZM and NEZM points into 3D polylines and 3D points.