Skip to content

Commit

Permalink
mv to hymet
Browse files Browse the repository at this point in the history
  • Loading branch information
dimfalk committed May 28, 2024
1 parent 6a5312e commit eaa7128
Show file tree
Hide file tree
Showing 11 changed files with 45 additions and 332 deletions.
8 changes: 3 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: kostra2020
Title: R Interface for KOSTRA-DWD-2020 Dataset
Version: 1.4.2
Date: 2024-04-03
Version: 1.5.0
Date: 2024-05-28
Authors@R:
person("Dimitri", "Falk", , "[email protected]", role = c("aut", "cre"))
Description: Extract cell-specific precipitation statistics from KOSTRA-DWD-2020.
Expand All @@ -24,9 +24,7 @@ Imports:
tidygeocoder,
tidyr,
units,
webshot,
xts,
zoo
webshot
Suggests:
covr,
testthat (>= 3.0.0)
Expand Down
2 changes: 0 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

export(as_depth)
export(as_yield)
export(calc_designstorm)
export(get_centroid)
export(get_depth)
export(get_idx)
Expand All @@ -15,5 +14,4 @@ export(idx_exists)
export(plot_idf)
export(view_spatial)
export(write_stats)
import(sf)
import(webshot)
6 changes: 1 addition & 5 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# version 1.4.2
# version 1.5.0

## features

Expand Down Expand Up @@ -26,9 +26,7 @@
## features

- `get_pdepth()` now allows to determine statistical precipitation depths
- `calc_pen()` now allows extrapolation of statistical precipitation based on PEN-LAWA (Verworn & Kummer 2006, Verworn & Draschoff 2008)
- `get_centroid()` now allows determination of coordinates based on municipality names and postal codes
- `calc_designstorm()` now allows generation of modelled rainfall from statistical precipitation
- `get_returnp()` now allows interpolation of return periods with `interpolate = TRUE`


Expand All @@ -47,5 +45,3 @@
## bug fixes

- `get_returnp()` now returns consistent output for tn < 1 and tn > 100
- `calc_designstorm()` now accepts `d = 5` as argument
- `get_returnp()` now also works on tibbles returned by `calc_pen()`
191 changes: 0 additions & 191 deletions R/calc_designstorm.R

This file was deleted.

4 changes: 2 additions & 2 deletions R/idx_build.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#' Build "INDEX_RC" identifier based on given row and column information
#'
#' @param row integer. Row number, one pick from set {0:299}.
#' @param col integer. Column number, one pick from set {0:299}.
#' @param row integer. Row number, one pick from set \{0:299\}.
#' @param col integer. Column number, one pick from set \{0:299\}.
#'
#' @return character. Unique representation of the relevant "INDEX_RC" field.
#' @export
Expand Down
13 changes: 1 addition & 12 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -196,17 +196,6 @@ Although it may be somewhat questionable from a scientific perspective, you migh
get_returnp(stats, hn = 86.2, d = 1440, interpolate = TRUE)
```

### Design storm generation

Furthermore, statistical precipitation depths can be used to create design storm time series data. Currently, Euler Type I + II are implemented.

```{r, warning = FALSE}
# Euler Type II design storm with a duration of 60 minutes and a return period of 100 a.
xts <- calc_designstorm(stats, d = 60, tn = 100, type = "EulerII")
xts
```

### Further utilization

Data can now additionally be visualized as intensity-duration-frequency curves using `plot_idf()`, underpinned by `{ggplot2}` ...
Expand All @@ -215,7 +204,7 @@ Data can now additionally be visualized as intensity-duration-frequency curves u
plot_idf(stats, log10 = TRUE)
```

.. or exported to disk using `write_stats()` based on `write.table()`.
... or exported to disk using `write_stats()` based on `write.table()`.

## Contributing

Expand Down
Loading

0 comments on commit eaa7128

Please sign in to comment.