-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8692f4
commit 8c7ae5e
Showing
17 changed files
with
311 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Package: knmiR | ||
Type: Package | ||
Title: Import KNMI Data | ||
Version: 0.1.5.5 | ||
Version: 0.1.5.6 | ||
Authors@R: person("Martin", "Roth", email = "[email protected]", | ||
role = c("aut", "cre")) | ||
Description: Import KNMI data into R. | ||
|
@@ -31,4 +31,5 @@ Roxygen: list(markdown = FALSE) | |
SystemRequirements: netcdf library version 4.1 or later | ||
Suggests: | ||
testthat, | ||
rgeos | ||
rgeos, | ||
raster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#' knmiR: A package to import and KNMI data | ||
#' | ||
#' The package provides an R interface to some data sources of KNMI. | ||
#' | ||
#' Available data sources: | ||
#' | ||
#' Earthquake catalog via the function Earthquakes() | ||
#' | ||
#' KIS data base via the function KIS() (internally only) | ||
#' | ||
#' | ||
# #' @section eobsR functions: | ||
# #' Do the following | ||
#' | ||
#' @docType package | ||
#' @name knmiR | ||
NULL |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
context("EOBS") | ||
|
||
library(knmiR) | ||
adm0 <- raster::getData('GADM', country='NL', level=0) | ||
context("Input testing:") | ||
|
||
expect_error(EOBS("foo"), "Variable foo not known.") | ||
expect_error(EOBS('tg', 'A', "foo"), "Period should be either Numeric, timeBased or ISO-8601 style.") | ||
expect_error(EOBS('tg', '2014', "foo"), "Area should be of class SpatialPolygons or SpatialPolygonsDataFrame.") | ||
expect_error(EOBS('tg', '2014', adm0, "foo"), "Grid should be specified correctly.") | ||
|
||
context("Output testing:") | ||
expect_equal_to_reference(EOBS('tg', '2014', adm0, '0.50reg'), file="EOBSreference/output.rds") | ||
expect_equal_to_reference(EOBS('rr', '2014', adm0, '0.50reg'), file="EOBSreference/output_rr.rds") | ||
expect_equal_to_reference(EOBS("tg", "2015-06-01", adm0, grid = "0.50reg"), | ||
file = "EOBSreference/output_one_timestep.rds") | ||
expect_equal_to_reference(LocalImportEOBS("tg", "tg_0.50deg_reg_v12.0_plus_2015_ANN_avg.nc", | ||
"2000/2015", adm0), | ||
file = "EOBSreference/output_local.rds") |
Binary file not shown.