Skip to content

Commit 9e8bd39

Browse files
committed
Fix RecordArgs + crop CHELSA mask layer
1 parent e0bc60f commit 9e8bd39

File tree

12 files changed

+274
-400
lines changed

12 files changed

+274
-400
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Package: IASDT.R
33
Title: Modelling the distribution of invasive alien plant species in
44
Europe
55
Version: 0.1.03
6-
Date: 2025-03-11
6+
Date: 2025-03-12
77
Authors@R:
88
person("Ahmed", "El-Gabbas", , "ahmed.el-gabbas@ufz.de", role = c("aut", "cre"),
99
comment = c(ORCID = "0000-0003-2225-088X"))

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ export(sf_add_coords)
156156
export(sort_)
157157
importFrom(Rcpp,sourceCpp)
158158
importFrom(magrittr,"%>%")
159+
importFrom(rlang,"%||%")
159160
importFrom(rlang,":=")
160161
importFrom(rlang,.data)
161162
useDynLib(IASDT.R, .registration = TRUE)

R/DWF_CHELSA_Project.R

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,18 @@ CHELSA_Project <- function(
7878

7979
# Land mask ------
8080

81-
# Extent to crop the maps prior to processing.
82-
# This ensures that the object reads from the memory. See below
81+
# The land mask layer was sourced from the CHELSA-W5E5 v1.0 dataset, provided
82+
# as a NetCDF file. It was cropped to an extent encompassing the study area to
83+
# reduce file size. The resulting land mask layer is exported as LandMask.nc
84+
# and included as a data file within the package.
85+
#
86+
# source: CHELSA-W5E5 v1.0: W5E5 v1.0 downscaled with CHELSA v2.0
87+
# https://data.isimip.org/10.48364/ISIMIP.836809.3 Version: 1.0.3
88+
89+
# Extent to crop the maps prior to processing. This ensures that the object
90+
# reads from the memory. See below
8391
CropExtent <- terra::ext(-26, 37.5, 34, 72)
8492

85-
# source: CHELSA-W5E5 v1.0: W5E5 v1.0 downscaled with CHELSA v2.0
86-
# https://data.isimip.org/10.48364/ISIMIP.836809.3
87-
# Version: 1.0.3
88-
# This file was copied to the package data to make it easier to use it
8993
LandMaskL <- system.file(
9094
"extdata", "LandMask.nc", package = "IASDT.R", mustWork = TRUE) %>%
9195
terra::rast() %>%

0 commit comments

Comments
 (0)