Skip to content

Instantly share code, notes, and snippets.

View goergen95's full-sized avatar

Darius Görgen goergen95

View GitHub Profile
@goergen95
goergen95 / solar-eclipse-2024.R
Created April 8, 2024 08:42
Solar Eclipse 2024 visualisation based on {cesium}
if (!requireNamespace("cesium", quietly = TRUE)) {
remotes::install_github("goergen95/cesium")
}
library(sf)
library(cesium)
# download zip with shapefiles from NASA
url <- "https://svs.gsfc.nasa.gov/vis/a000000/a005000/a005073/2024eclipse_shapefiles.zip"
dsn <- tempfile(fileext = ".zip")
@goergen95
goergen95 / Dockerfile
Last active January 19, 2024 18:43
GDAL Docker
FROM rocker/verse:4.3.2
COPY install_geospatial.sh /rocker_scripts/install_geospatial.sh
ARG PROJ_VERSION=latest
ARG GEOS_VERSION=latest
ARG GDAL_VERSION=latest
ARG NCPUS=-1
RUN bash /rocker_scripts/install_geospatial.sh -proj $PROJ_VERSION -geos $GEOS_VERSION -gdal $GDAL_VERSION -ncpus $NCPUS
@goergen95
goergen95 / cesium-iceland-earthquakes.R
Created November 14, 2023 12:48
Using {cesium} and {jardskjalftar} to animate earthqaukes around the 2010 Eyjafjallajökull eruptions
# install.packages("remotes")
# remotes::install_github("bgautijonsson/jardskjalftar")
# remotes::install_github("goergen95/cesium")
library(sf)
library(cesium)
library(jardskjalftar)
start_time <- clock::date_time_build(
year = 2010,
month = 1,
@goergen95
goergen95 / docker-compose.yaml
Last active June 29, 2023 09:14
Using GDAL to read/write geospatial data from minio S3
services:
minio:
image: quay.io/minio/minio
container_name: minio
environment:
MINIO_ROOT_USER: miniouser
MINIO_ROOT_PASSWORD: miniopass
ports:
- 9000:9000
- 9090:9090