# WQM
 Wavelet-based Quantile Mapping

## Requirements
<pre>
Dependencies:
  ifultools, wmtsa, splus2R, MBC, ggplot2, WaveletComp

Suggest:
    dplyr, tidyr,
    matrixStats, data.table
</pre>

``` r
# some package can only be install from source
path_ifultools <- "https://cran.r-project.org/src/contrib/Archive/ifultools/ifultools_2.0-26.tar.gz"
if(!require("ifultools")) install.packages(path_ifultools, depen=T, repos = NULL, type = "source")
path_wmtsa <- "https://cran.r-project.org/src/contrib/Archive/wmtsa/wmtsa_2.0-3.tar.gz"
if(!require("wmtsa")) install.packages(path_wmtsa, depen=T, repos = NULL, type = "source")
```

## Installation

You can install the package via devtools from [GitHub](https://github.com/) with:

``` r
devtools::install_github("zejiang-unsw/WQM", dependencies = TRUE)
```

## Citation
Jiang, Z., & Johnson, F. (2023). A New Method for Postprocessing Numerical Weather Predictions Using Quantile Mapping in the Frequency Domain. Monthly weather review, 151(8), 1909-1925. doi:10.1175/mwr-d-22-0217.1