Skip to content

Commit

Permalink
tiny changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuanchao-Xu committed Aug 27, 2020
1 parent df01308 commit 12c7207
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 20 deletions.
38 changes: 19 additions & 19 deletions .Rhistory
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
# return 1:length(sim)
if (length(higherIndex) > 0) {
maxHindcast <- max(hindcast, na.rm = TRUE)
dif <- maxHindcast - max(obs, na.rm = TRUE)
frc[higherIndex] <- frc[higherIndex] - dif
}
if (length(lowerIndex) > 0) {
minHindcast <- min(hindcast, na.rm = TRUE)
dif <- minHindcast - min(obs, nna.rm = TRUE)
frc[lowerIndex] <- frc[lowerIndex] - dif
}
frc[non_extrapolateIndex] <- quantile(obs, probs = ecdfHindcast(frc[non_extrapolateIndex]),
na.rm = TRUE, type = 4)
} else {
frc <- quantile(obs, probs = ecdfHindcast(frc), na.rm = TRUE, type = 4)
}
return(frc)
}
biasCorrect_core_eqm_preci <- function(frc, hindcast, obs, minHindcastPreci, extrapolate,
prThreshold) {
# Most of time this condition seems useless because minHindcastPreci comes from hindcast, so there will be
# always hindcast > minHindcastPreci exists.
Expand Down Expand Up @@ -510,3 +491,22 @@ cat
a
a == cat
identical(a, cat)
devtools::build()
devtools::check()
file <- system.file("extdata", "testCat.shp", package = "hyfo")
cat <- shp2cat(file)
library(hyfo)
file <- system.file("extdata", "testCat.shp", package = "hyfo")
cat <- shp2cat(file)
file <- system.file("extdata", "testCat.rda", package = "hyfo")
cat <- shp2cat(file)
file <- system.file("extdata", "testCat.shp", package = "hyfo")
cat <- shp2cat(file)
devtools::check()
devtools::check(cran = T)
devtools::build()
devtools::document()
devtools::check(cran = T)
devtools::built()
devtools::build()
devtools::build()
3 changes: 3 additions & 0 deletions R/ncdf.R
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,10 @@ downscaleNcdf <- function(gridData, year = NULL, month = NULL, lon = NULL, lat =
#'
#' # Then write to your work directory
#'
#' \dontrun{
#' writeNcdf(nc, 'test.nc')
#' }
#'
#'
#' # More examples can be found in the user manual on https://yuanchao-xu.github.io/hyfo/
#'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ install.packages("devtools")
devtools::install_github("Yuanchao-Xu/hyfo")
```

**Official Website is [https://yuanchao-xu.github.io/hyfo](http:https://yuanchao-xu.github.io/hyfo)**
**Official Website is [https://yuanchao-xu.github.io/hyfo/](http:https://yuanchao-xu.github.io/hyfo/)**

hyfo is an R package, initially designed for the European Project EUPORIAS, and cooperated with DHI Denmark, which was then extended to other uses in hydrology, hydraulics and climate.

Expand Down
Binary file modified data/testCat.rda
Binary file not shown.
3 changes: 3 additions & 0 deletions man/writeNcdf.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 12c7207

Please sign in to comment.