Learn R Programming

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

346

Version

1.4.6

License

GPL-2

Maintainer

Yuanchao Xu

Last Published

August 16th, 2023

Functions in hyfo (1.4.6)

getEnsem_comb

Combine ensembles together
getAnnual

Get annual rainfall of different rainfall time series
getFrcEnsem

Extract time series from forecasting data.
fillGap

Fill gaps in the rainfall time series.
getHisEnsem

Get ensemble forecast from historical data.
extractPeriod

Extract period from list or dataframe.
getLMom

get L moment analysis of the input distribution
downscaleNcdf

Downscale NetCDF file
getAnnual_dataframe

Get annual rainfall of the input time series.
getBiasFactor

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

Combine bars together
loadNcdf

Load NetCDF file
getMeanPreci

Get mean rainfall data.
getSpatialMap

Get spatial map of the input dataset.
list2Dataframe

Convert a list to a dataframe.
getMoment

get moment analysis of the input distribution
getSpatialMap_comb

Combine maps together
getSpatialMap_mat

Replot raster matrix
getPreciBar

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

Get variable name of the NetCDF file.
tgridData

tgridData
shp2cat

Get a catchment object from selected shape file.
testCat

testCat
testdl

testdl
plotTS

plot time series, with marks on missing value.
monthlyPreci

Get monthly rainfall
plotTS_comb

Combine time seires plot together
resample

Resample your time series or ncdf files.
writeNcdf

Write to NetCDF file using hyfo list file
collectData_txt_anarbe

collect data from different txt.
checkBind

Check data for bind function.
applyBiasFactor

Apply bias factor to different forecasts for multi/operational/real time bias correction.
biasFactor.hyfo-class

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

Collect data from csv for Anarbe case.
biasFactor-class

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

Biascorrect the input timeseries or hyfo dataset
collectData_excel_anarbe

Collect data from different excel files
collectData

Collect data from different csv files.
coord2cell

Change lon lat coordinates to cell coordinates