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 http://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(2015). hyfo: Hydrology and Climate Forecasting R Package for Data Analysis and Visualization. Retrieved from http://yuanchao-xu.github.io/hyfo/

Author in this corner

Copy Link

Version

Install

install.packages('hyfo')

Monthly Downloads

331

Version

1.3.6

License

GPL-2

Maintainer

Yuanchao Xu

Last Published

January 13th, 2016

Functions in hyfo (1.3.6)

biasFactor-class

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

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

Write to NetCDF file using hyfo list file
loadNcdf

Load NetCDF file
collectData

Collect data from different csv files.
getAnnual_dataframe

Get annual rainfall of the input time series.
getEnsem_comb

Combine ensembles together
getSpatialMap_mat

Replot raster matrix
getMeanPreci

Get mean rainfall data.
tgridData

tgridData
coord2cell

Change lon lat coordinates to cell coordinates
collectData_csv_anarbe

Collect data from csv for Anarbe case.
downscaleNcdf

Downscale NetCDF file
biasCorrect

Biascorrect the input timeseries or hyfo dataset
getLMom

get L moment analysis of the input distribution
biasFactor.hyfo-class

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

get moment analysis of the input distribution
checkBind

Check data for bind function.
getNcdfVar

Get variable name of the NetCDF file.
plotTS

plot time series, with marks on missing value.
testCat

testCat
getAnnual

Get annual rainfall of different rainfall time series
collectData_excel_anarbe

Collect data from different excel files
getSpatialMap

Get spatial map of the input dataset.
list2Dataframe

Convert a list to a dataframe.
testdl

testdl
plotTS_comb

Combine time seires plot together
extractPeriod

Extract period from list or dataframe.
getPreciBar_comb

Combine bars together
getHisEnsem

Get ensemble forecast from historical data.
getBiasFactor

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

Extract time series from forecasting data.
getSpatialMap_comb

Combine maps together
applyBiasFactor

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

Fill gaps in the rainfall time series.
collectData_txt_anarbe

collect data from different txt.
monthlyPreci

Get monthly rainfall
resample

Resample your time series or ncdf files.
shp2cat

Get a catchment object from selected shape file.