Publications by Beni Stocker
Document
Data library(dplyr) library(tidyr) library(ggplot2) library(rsofun) library(here) library(lubridate) library(FluxDataKit) # if(!require(devtools)){install.packages(devtools)} # devtools::install_github("geco-bern/rsofun") library(rsofun) Read nice file from FluxDataKit. This contains meteorological data, remotely sensed LAI and fAPAR, and observat...
728 sym R (5911 sym/11 pcs) 4 img
Publish Document
It is sometimes stated that “global carbon and water cycles have shifted from a CO2-dominated era into a VPD-dominated one”. The VPD and CO2 effects on photosynthesis are interactive. Therefore, is this statement a good description of the nature of this interaction? Let’s look at this by comparing the CO2 effect on GPP under ambient and eleva...
1520 sym R (2723 sym/11 pcs) 2 img
Document
library(terra) ## terra 1.7.78 library(stringr) aggregate_byfile <- function(filename_vegheight, raster_target, outdir){ # Load the two raster files r1 <- rast(filename_vegheight) # obtained from https://libdrive.ethz.ch/index.php/s/cO8or7iOe5dT2Rt?path=%2F # Aggregate r1 to match r2's resolution # The factor is determined by the rati...
53 sym R (2215 sym/8 pcs) 2 img
Document
Generate time series With autocorrelation 22 ensemble members 1000 time steps (e.g., years) library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.4 ✔ readr 2.1.5 ## ✔ forcats 1.0.0 ✔ stringr 1.5.1 ## ...
410 sym R (4390 sym/13 pcs) 4 img
Document
## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union ## [1] "processing site ARG_MAZ (1 of 194)" ## [1] "processing site ARG_TRE (2 of 194)" ## [1] "processing site AUS_BRI_BRI (3 of 1...
8 sym Python (9899 sym/4 pcs) 1 tbl
Document
library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union library(fuzzyjoin) library(FluxDataKit) # install.packages('sapfluxnetr') library(sapfluxnetr) # get sapfluxnet dat...
15 sym R (11801 sym/11 pcs) 1 tbl
Document
# some general libraries library(dplyr) library(tidyr) library(ggplot2) library(here) library(visdat) library(lubridate) Aim Simulations with the P-model, implemented in {rsofun}, rely on forcing data in the form of time series of all input variables, provided at the time scale of the model time step (daily). The model output is at the same time ...
3557 sym R (2334 sym/13 pcs) 3 img
Document
Load example data: FluxDataKit. library(dplyr) library(ggplot2) library(sf) library(rnaturalearth) library(FluxDataKit) Show sites on a map coast <- rnaturalearth::ne_coastline( scale = 110, returnclass = "sf" ) FluxDataKit::fdk_site_info |> ggplot() + geom_hex( aes(x = lon, y = lat), bins = c(75, 60) ) + geom_sf( data = ...
58 sym R (463 sym/2 pcs) 1 img
Publish Document
Data library(dplyr) library(tidyr) library(ggplot2) library(rsofun) library(here) library(lubridate) library(FluxDataKit) Read nice file from FluxDataKit. This contains meteorological data, remotely sensed LAI and fAPAR, and observations-based GPP from an extended set of FLUXNET sites. path_forcingfile <- "~/data/FluxDataKit/v3/rsofun_driver_data_v...
1623 sym R (8059 sym/23 pcs) 6 img
Document
Data library(dplyr) library(tidyr) library(ggplot2) library(rsofun) library(here) library(lubridate) Read nice file from FluxDataKit. This contains meteorological data, remotely sensed LAI and fAPAR, and observations-based GPP from an extended set of FLUXNET sites. path_forcingfile <- "~/data/FluxDataKit/rsofun_driver_data_clean.rds" driver <- read...
1237 sym R (5498 sym/15 pcs) 5 img