Skip to content

Commit e6965db

Browse files
authored
Merge pull request #4 from moritzshore/dev
SWAT+ meteo code
2 parents 0ee5b69 + 989358f commit e6965db

8 files changed

+693
-19
lines changed

DESCRIPTION

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: miljotools
33
Title: An R package hosting a variety of useful functions for environmental data handling and anaylsis
4-
Version: 0.2.1
4+
Version: 0.3.0
55
Author: Moritz Shore
66
Maintainer: Moritz Shore <[email protected]>
77
Description: A few useful functions for environemental data processing and analysis.
@@ -13,6 +13,7 @@ Depends:
1313
R (>= 4.0)
1414
Imports:
1515
abind,
16+
crayon,
1617
dplyr,
1718
ggplot2,
1819
ggtern,
@@ -26,8 +27,10 @@ Imports:
2627
readxl,
2728
sf,
2829
stringr,
30+
SWATprepR,
2931
utils,
3032
writexl
33+
Remotes: github::biopsichas/SWATprepR
3134
Suggests:
3235
devtools,
3336
knitr,

NAMESPACE

+20
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,32 @@
22

33
export(classify_soil)
44
export(get_metno_reanalysis3)
5+
export(reanalysis3_daily)
6+
export(reanalysis3_swatinput)
7+
export(swat_weather_input_chain)
58
importFrom(RColorBrewer,brewer.pal)
9+
importFrom(SWATprepR,add_weather)
10+
importFrom(SWATprepR,load_template)
11+
importFrom(SWATprepR,prepare_climate)
12+
importFrom(SWATprepR,prepare_wgn)
613
importFrom(abind,abind)
14+
importFrom(crayon,blue)
15+
importFrom(crayon,green)
16+
importFrom(crayon,italic)
17+
importFrom(crayon,underline)
718
importFrom(dplyr,"%>%")
19+
importFrom(dplyr,across)
20+
importFrom(dplyr,all_of)
21+
importFrom(dplyr,group_by)
22+
importFrom(dplyr,last)
823
importFrom(dplyr,mutate)
924
importFrom(dplyr,nth)
25+
importFrom(dplyr,rename)
26+
importFrom(dplyr,summarise)
1027
importFrom(ggplot2,aes)
1128
importFrom(ggtern,ggtern)
1229
importFrom(grDevices,colorRampPalette)
30+
importFrom(lubridate,date)
1331
importFrom(lubridate,day)
1432
importFrom(lubridate,hour)
1533
importFrom(lubridate,month)
@@ -21,6 +39,7 @@ importFrom(ncdf4,ncvar_get)
2139
importFrom(plotly,layout)
2240
importFrom(plotly,plot_ly)
2341
importFrom(purrr,map)
42+
importFrom(readr,read_csv)
2443
importFrom(readr,write_csv)
2544
importFrom(readxl,read_excel)
2645
importFrom(sf,read_sf)
@@ -33,6 +52,7 @@ importFrom(sf,st_intersects)
3352
importFrom(sf,st_transform)
3453
importFrom(sf,st_zm)
3554
importFrom(stringr,str_pad)
55+
importFrom(stringr,str_remove)
3656
importFrom(stringr,str_replace_all)
3757
importFrom(stringr,str_split)
3858
importFrom(utils,read.table)

R/globals.R

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# bandaid
2+
utils::globalVariables(c("daily", "air_temperature_2m"))

0 commit comments

Comments
 (0)