Yandell's Geospatial Workshops Play Area
This is now a library. Note that all needed packages are listed as Depends except basemapR
. You can install as follows without cloning the library:
devtools::install_github('Chrisjb/basemapR')
devtools::install_github('byandell/geospatial')
There is a draft shiny app for the redline
example at this point, which will mature. Try
library(geospatial)
redlineApp()
See slide deck for ESIIL Geospatial R Package.
-
Online Comparisons of Some Spatial Packages
-
- Free online accounts, with new features added over time
Packages to Create Data Cube Layers
- gdalcubes
- https://r-spatial.org/
- https://rspatial.org/
- tidyterra
- https://dieghernan.github.io/tidyterra/
- Extension of the 'tidyverse' for 'SpatRaster' and 'SpatVector' objects of the 'terra' package
Packages to Access Data
- rstac: Access, search and download from SpatioTemporal Asset Catalog (STAC)
- osmdata: Download and import of 'OpenStreetMap' ('OSM') data
- geos: R API to the Open Source Geometry Engine ('GEOS')
- landsat: Processing of Landsat and other multispectral satellite imagery
Previous package rgdal
is now obsolete. Unsure about status of raster
package.
- https://data-library.esiil.org
- See list on menu of https://cu-esiil.github.io/hackathon2023_datacube/code_for_building_cube/Pull_flood_data/
These have been compiled in datasets.csv.
Data are stored in different coordinating systems, which makes it important to transform between them. Some common ones:
- EPSG:4326: WGS84 = World Geodetic System 1984
- EPSG:32618: WGS84 for UTM zone 18N (North America)
- EPSG:32730: WGS84 for UTM zone 20S (South America)
ESIIL_Art_Data_Cube.Rmd: Yandell edit of Ty Tuff's The Art of Making a Datacube
Geospatial.Rmd: Rmarkdown from Workshop
The data have been organized in The Carpentries nicely in FigShare as workshop data from carpentries site. See also the https://datacarpentry.org/geospatial-workshop/ page section on Data and more information at https://datacarpentry.org/geospatial-workshop/data.html. The data seem to come from NEON Raster Intro page NEON Raster 00: Intro to Raster Data in R, via Download Dataset. The data are from two field sites:
- Harvard Forest (HARV)
- San Joaquin Experimental Range (SJER)
The key raster data are the following "geotif" files:
- HARV_dsmCrop.tif
- HARV_dsmCrop.tif
- HARV_DSMhill.tif
It should be possible using some of the commands in the The art of making a data cube to elegantly download needed data on the fly.