Earth Data Analytics, Mapping Packages, and Data Cubes
2026-06-18
Run the following commands in the terminal to set up Miniconda:
# Create target directory
mkdir -p ~/miniconda3
# Download Apple Silicon installer
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh -o ~/miniconda3/miniconda.sh
# Run bash installation script
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
# Clean up installer script
rm ~/miniconda3/miniconda.shSee further setup steps in Git, Conda & Bash Setup.
Securely connect your local terminal to GitHub using SSH authentication:
Open your terminal and run the key-generator:
Press enter to accept the default storage location: ~/.ssh/id_ed25519
Note
For troubleshooting, see GitHub’s guide on Generating SSH Keys.
osmdata package: Access and download features (pois, polygons, highways) directly inside R.R Plotting Workflow
tmap package: Thematic map rendering with static/interactive modes.make-valid function from sf package to solve multipolygon rendering errors.Note
For automated shapefile processing, see Automating maps with GeoPandas and Matplotlib.
Google Maps layers are accessible in R via the ggmap package, but require strict authentication:
Register the key inside your R script:
Stack Overflow Tips
See threads like stack geotiff with stars along to handle complex band + time dimensions.
For advanced geospatial processing, combine R scripts with desktop GIS interfaces:
gdalcubes: Form Earth observation data cubes from satellite image collections (e.g. MODIS).sf: Modern vector processing (replacing sp).stars: Spatiotemporal arrays, raster data cubes.terra: Modern raster & vector processing (replacing legacy raster package).tidyterra: Extends standard tidyverse methods (like ggplot, filter, mutate) to terra raster and vector objects.[!WARNING] The legacy geospatial package
rgdalis now obsolete and has been retired. Developers should transition all workflows tosfandterra.
rstac: Search and download satellite data via SpatioTemporal Asset Catalog (STAC) API.osmdata: Retrieve OpenStreetMap coordinates.geos: R API wrapper for the GEOS geometry engine.landsat: Process Landsat multispectral imagery.Geospatial data use different Coordinate Reference Systems (CRS). Coordinate transformation is crucial:
Geospatial workshop datasets focus on two primary field sites: - Harvard Forest (HARV): - HARV_dsmCrop.tif (surface model). - HARV_DSMhill.tif (hillshade model). - San Joaquin Range (SJER).
Note
Data is hosted on FigShare. See the NEON Raster Introduction for raster tutorials in R.
Interactive worksheets and hackathons are excellent starting points for hands-on learning:
Environmental Systems & Geospatial References