Skip to content

Commit 4c50901

Browse files
authored
Merge pull request #83 from ErikKusch/master
Release v.0.9.0
2 parents c926f9f + 999ad9e commit 4c50901

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2430
-1588
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ packrat/
1515
.Trashes
1616
ehthumbs.db
1717
Thumbs.db
18+
packrat/lib*/
19+
.lintr

DESCRIPTION

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
Package: KrigR
22
Type: Package
33
Title: Downloading, Aggregating, and Kriging of ECMWF CDS-Data
4-
Version: 0.3.0
4+
Version: 0.9.0
55
Authors@R: as.person(c(
66
"Erik Kusch <erik@i-solution.de> [aut, cre]",
77
"Richard Davy <Richard.Davy@nersc.no> [aut]"
88
))
99
Description: An R Package for downloading, preprocessing, and statistical downscaling of data provided by the European Centre for Medium‐Range Weather Forecasts (ECMWF).
1010
KrigR contains functions for:
1111
- Downloading ECMWF data directly from within R
12-
- Downloading USGS GMTED 2010 elevation data - Working towards also implementing support for HWSD data
12+
- Downloading USGS GMTED 2010 and HWSD elevation data
1313
- Preparing covariate data for Kriging
1414
- Kriging spatial input to desired output using user-specified covariates
1515
License: MIT + file LICENSE
1616
Encoding: UTF-8
1717
LazyData: true
18-
RoxygenNote: 7.3.1
18+
RoxygenNote: 7.3.2
1919
Imports:
2020
ecmwfr,
2121
httr,
@@ -29,5 +29,9 @@ Imports:
2929
tools,
3030
progress,
3131
doSNOW,
32-
pbapply
32+
pbapply,
33+
tidyr,
34+
ggplot2,
35+
viridis,
36+
cowplot
3337
Depends: R (>= 4.0.0)

LICENSE

Lines changed: 0 additions & 2 deletions
This file was deleted.

NAMESPACE

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,48 @@ export(Meta.List)
1515
export(Meta.QuickFacts)
1616
export(Meta.Read)
1717
export(Meta.Variables)
18-
export(SummarizeRaster)
19-
export(buffer_Points)
18+
export(Plot.BioClim)
19+
export(Plot.Covariates)
20+
export(Plot.Kriged)
21+
export(Plot.SpatRast)
2022
export(download_DEM)
2123
export(download_ERA)
2224
export(krigR)
23-
export(mask_Shape)
2425
importFrom(automap,autoKrige)
26+
importFrom(cowplot,plot_grid)
2527
importFrom(doSNOW,registerDoSNOW)
28+
importFrom(ecmwfr,wf_delete)
2629
importFrom(ecmwfr,wf_get_key)
2730
importFrom(ecmwfr,wf_request)
2831
importFrom(ecmwfr,wf_set_key)
2932
importFrom(ecmwfr,wf_transfer)
3033
importFrom(foreach,"%dopar%")
3134
importFrom(foreach,foreach)
35+
importFrom(ggplot2,aes)
36+
importFrom(ggplot2,facet_wrap)
37+
importFrom(ggplot2,geom_raster)
38+
importFrom(ggplot2,geom_sf)
39+
importFrom(ggplot2,ggplot)
40+
importFrom(ggplot2,labs)
41+
importFrom(ggplot2,scale_fill_gradientn)
42+
importFrom(ggplot2,theme)
43+
importFrom(ggplot2,theme_bw)
44+
importFrom(ggplot2,unit)
3245
importFrom(httr,DELETE)
3346
importFrom(httr,GET)
3447
importFrom(httr,add_headers)
3548
importFrom(httr,authenticate)
3649
importFrom(httr,progress)
3750
importFrom(httr,write_disk)
51+
importFrom(lubridate,date)
3852
importFrom(lubridate,days_in_month)
53+
importFrom(lubridate,year)
3954
importFrom(methods,getClass)
4055
importFrom(ncdf4,nc_close)
4156
importFrom(ncdf4,nc_open)
4257
importFrom(ncdf4,ncatt_get)
4358
importFrom(ncdf4,ncatt_put)
59+
importFrom(parallel,detectCores)
4460
importFrom(parallel,makeCluster)
4561
importFrom(parallel,stopCluster)
4662
importFrom(pbapply,pblapply)
@@ -59,11 +75,13 @@ importFrom(terra,crop)
5975
importFrom(terra,crs)
6076
importFrom(terra,ext)
6177
importFrom(terra,mask)
78+
importFrom(terra,mean)
6279
importFrom(terra,metags)
6380
importFrom(terra,nlyr)
6481
importFrom(terra,rast)
6582
importFrom(terra,res)
6683
importFrom(terra,resample)
84+
importFrom(terra,sources)
6785
importFrom(terra,subset)
6886
importFrom(terra,tapp)
6987
importFrom(terra,time)
@@ -72,4 +90,9 @@ importFrom(terra,values)
7290
importFrom(terra,varnames)
7391
importFrom(terra,writeCDF)
7492
importFrom(terra,writeRaster)
93+
importFrom(tidyr,gather)
7594
importFrom(tools,file_path_sans_ext)
95+
importFrom(viridis,cividis)
96+
importFrom(viridis,inferno)
97+
importFrom(viridis,mako)
98+
importFrom(viridis,viridis)

R/BioClim.R

Lines changed: 369 additions & 263 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)