Learn R Programming

⚠️There's a newer version (1.4.6) of this package.Take me there.

hyfo

Installation

Released version from CRAN, for beginners and normal users:

install.packages("hyfo")

Development version from github, for experienced users and those who are interested in investigating:

install.packages("devtools")
# You can ignore the line above, if you have already installed devtools
devtools::install_github("Yuanchao-Xu/hyfo")

Official Website is 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.

This package mainly focuses on data process and visulization in hydrology and climate forecasting. Main function includes NetCDF file processing, data extraction, data downscaling, data resampling, gap filler of precipitation, bias correction of forecasting data, flexible time series plot, and spatial map generation. It is a good pre-processing and post-processing tool for hydrological and hydraulic modellers.

If you feel hyfo is of a little help, please cite it as following:

Xu, Yuanchao(2020). hyfo: Hydrology and Climate Forecasting R Package for Data Analysis and Visualization. Retrieved from http://yuanchao-xu.github.io/hyfo/

Copy Link

Version

Install

install.packages('hyfo')

Monthly Downloads

286

Version

1.4.3

License

GPL-2

Maintainer

Yuanchao Xu

Last Published

August 28th, 2020

Functions in hyfo (1.4.3)

collectData_excel_anarbe

Collect data from different excel files
biasFactor.hyfo-class

An S4 class, representing the biasFactor of hyfo file.
biasFactor-class

An S4 class, representing the biasFactor of single time series biasCorrection.
collectData_csv_anarbe

Collect data from csv for Anarbe case.
collectData_txt_anarbe

collect data from different txt.
checkBind

Check data for bind function.
coord2cell

Change lon lat coordinates to cell coordinates
applyBiasFactor

Apply bias factor to different forecasts for multi/operational/real time bias correction.
collectData

Collect data from different csv files.
biasCorrect

Biascorrect the input timeseries or hyfo dataset
getAnnual_dataframe

Get annual rainfall of the input time series.
getBiasFactor

Get bias factor for multi/operational/real time bias correction.
getAnnual

Get annual rainfall of different rainfall time series
fillGap

Fill gaps in the rainfall time series.
downscaleNcdf

Downscale NetCDF file
extractPeriod

Extract period from list or dataframe.
getPreciBar_comb

Combine bars together
getSpatialMap

Get spatial map of the input dataset.
getMoment

get moment analysis of the input distribution
getMeanPreci

Get mean rainfall data.
writeNcdf

Write to NetCDF file using hyfo list file
getEnsem_comb

Combine ensembles together
getSpatialMap_comb

Combine maps together
getSpatialMap_mat

Replot raster matrix
getFrcEnsem

Extract time series from forecasting data.
testCat

testCat
shp2cat

Get a catchment object from selected shape file.
resample

Resample your time series or ncdf files.
plotTS_comb

Combine time seires plot together
getNcdfVar

Get variable name of the NetCDF file.
getHisEnsem

Get ensemble forecast from historical data.
getLMom

get L moment analysis of the input distribution
loadNcdf

Load NetCDF file
plotTS

plot time series, with marks on missing value.
monthlyPreci

Get monthly rainfall
list2Dataframe

Convert a list to a dataframe.
tgridData

tgridData
getPreciBar

get mean rainfall bar plot of the input dataset or time series.
testdl

testdl