Skip to content

quarcs-lab/pysal-spatialapi20

 
 

Repository files navigation

pysal-spatialapi20

Binder

PySAL Workshop at SpatialAPI20

Instructors

  • Serge Rey - University of California, Riverside
  • Elijah Knaap - University of California, Riverside

Schedule

  1. Part I

    1. Geoprocessing

      • spatial data input-output
      • spatial feature engineering
    2. Geovisualization

      • choropleth mapping
      • interactive geovisualization
  2. Part II

    1. Hot and cold spot detection

      • global spatial autocorrelation
      • local indicators of spatial autocorrelation
    2. Regionalization

      • agglomerative spatial clustering
      • max-p

Obtaining Workshop Materials

To get started immediately without installing or downloading anything, click the "Launch Binder" button at the top of this page


If you are familiar with GitHub, you should clone or fork this GitHub repository to a specific directory. Cloning can be done by:

git clone https://github.com/sjsrey/pysal-spatialapi20.git

If you are not using git, you can grab the workshop materials as a zip file by pointing your browser to (https://github.com/sjsrey/pysal-spatialapi20.git) and clicking on the green Clone or download button in the upper right.

download

Extract the downloaded zip file to a working directory.

Installation

We will be using a number of Python packages for geospatial analysis.

An easy way to install all of these packages is to use a Python distribution such as Anaconda. In this workshop we will use anaconda to build an environment for Python 3.6. It does not matter which version of anaconda is downloaded. We recommend installing Anaconda 3.7.

anaconda

On windows, all our work will begin from an anaconda prompt, which you can start as follows:

anacondaprompt

Start a terminal and navigate to the directory of the downloaded/ cloned materials. For example, if the materials now live in the directory /Users/sjsrey/Downloads/pysal-spatialapi20 , you need to navigate to that directory from the terminal (using command cd ):

directory

Once we have done that, run:

conda-env create -f environment.yml

This will build a conda python 3.7environment that sandboxes the installation of the required packages for this workshop so we don't break anything in your computer's system Python (if it has one).

This may take 10-15 minutes to complete depending on the speed of your network connection.

Once this completes, you can activate the workshop environment with:

conda activate pysal-spatialapi20

You're now all setup for the tutorial!

Troubleshooting

If you encounter the following error when starting jupyterlab:

FileNotFoundError: [WinError 2] The system cannot find the file specified

A solution is to issue the following command in the anaconda prompt:

 python -m ipykernel install --user

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 96.6%
  • Makefile 3.4%