Skip to content

Instantly share code, notes, and snippets.

View petermllrr's full-sized avatar
🐣
ᕙ(`▿´)ᕗ

Peter Müller petermllrr

🐣
ᕙ(`▿´)ᕗ
View GitHub Profile
@petermllrr
petermllrr / index.r
Created June 9, 2020 21:14
GeoTiff R
# Libraries ===================
library("raster")
library("rgdal")
# Load data ===================
# all_files <- list.files(path = "./data", pattern='.tif$', all.files=TRUE, full.names=FALSE)
# Process data ================
raster_data <- raster("./data/LC08_L1TP_196025_20150821_20170406_01_T1_°C_corr.tif")
shape_data <- readOGR("./data", layer = "Cologne", stringsAsFactors = FALSE)
@petermllrr
petermllrr / app.tsx
Last active October 18, 2019 13:29
FramerX: change views in code not via links
export function App(props) {
const [view, setView] = React.useState("homepage")
if (view == "homepage") {
return (
<div>
<HomepageContent width={"100%"} height={720} top={92} />
<Header state={"login"} setView={setView} />
<Menu state={"closed"} setView={setView} view={view} />
</div>