Environmental Systems References
These references were gathered while learning about environmental systems and data analytics while attending the CU Boulder EarthLab course on Earth Data Analytics. To help me understand and organize code and ideas, I developed the landmapy package. See also Python Strategy.
- Environmental Systems & Geospatial References (Quarto Slideshow)
- Earth Data Analytics
- Open Street Map
- Google Maps Platform Access
- EDA Workbook on Python
- GitHub & Codespaces
byandell.github.io/Documentation
Earth Data Analytics
- Fundamentals of Earth Data Analytics (EDA)
- Introduction to Earth Data Science (EarthLab)
- Mapping Inequality
- Geospatial Resources
Home Computer Visual Studio Code & GitBash
Lesson 2. Setup Git, Bash, and Conda on Your Computer Setup earth analytics environment
- Visual Studio Code
- git
gitis already installed if using it withinRstudio.- Install
git, maybegit-gui. - Start
git-guifrom shell.
- miniconda
- Install
bash, notpkg. - Miniconda3 macOS Apple M1 64-bit bash
- Install
Command line entries to install miniconda via bash:
mkdir -p ~/miniconda3
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh -o ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm ~/miniconda3/miniconda.sh
Set up SSH key in GitHub account
Generating a new SSH key and adding it to the ssh-agent
ssh-keygen -t ed25519 -C "byandell@wisc.edu"
Default storage is in ~/.ssh/id_ed25519.
Can use pbcopy to copy public key to clipboard for subsequent paste to GitHub SSH key generation (2 ways).
cat ~/.ssh/id_ed25519.pub | pbcopy
pbcopy < ~/.ssh/id_ed25519.pub
Open Street Map
OpenStreetMap (OSM). Data can be accessed via osmdata. Static maps are plotted using ggplot2 with sf bridging via geom_sf for polygon and point layers. OSM base map layer is added with annotation_map_tile from ggspatial package. Interactive maps can be produces with package tmap.
OSM is a free resource with maps and features (but should be cited). Most people seem to use Python to work with such maps, but there are some tools in R.
- OSM Wiki
- Making Maps with R
- Quantitative Analysis with R by Brian Wood
- Automating Map generation from Multi-polygon shapefiles using Python with GeoPandas and Matplotlib
osmdata package
ggspatial package
tmap package
- Quickstart Guide - Shapefiles and R(tmap)
- tmap: thematic maps in R
- tmap interactive maps
- tmap book
- tmap: using make-valid for multipolygons
Google Maps Platform Access
Google maps can be used via ggmap but require a Google Map Key, which requires CC and payment.