Skip to contents

Pre-processing

Functions supporting the pre-processing of data for hydrological modelling in RS Minerve.

convert2HYY()
Converts monthly hydro-meteorological time-series data to hydrological year values.
doQuantileMapping()
Performs a quantile mapping bias correction
gen_HRU_Climate_CSV_RSMinerve()
Extract hydrological response unit HRU specific climate time series from nc-files.
gen_basinElevationBands()
Generate basin elevation bands from DEM
loadTabularData()
Load Tabular Hydro-Meteorological Data
plotNormDevHYY()
Helper function to plot value deviations from norms for entire hydrological years and cold and warm seasons.

Post-processing

Functions supporting the post-processing of data from hydrological modelling in RS Minerve

assess_fc_qual()
Assesses the quality of decadal or monthly forecasts as done in Central Asian Hydrometeorological Agencies.
computeAnnualFlowDurationCurve()
Computes the annual flow duration curve of a river discharge data set.
plotAnnualFlowDurationCurve()
plot the annual flow duration curve of a river discharge data set.

RSMinerveIO

Functions facilitating reading and writing of text files from RS Minerve

getChunkSize()
Calculate the number of time steps to read from DST file for each model component.
load_minerve_input_csv()
Reads climate and discharge data into a tibble.
readDBCSV()
Reads a RSMinerve data base csv into a tibble.
readForcingCSV()
Reads climate and discharge data into a tibble.
readForcingSTR()
Reads climate and discharge data from a character string into a tibble.
readRSMParameters()
Reads parameters from RSMinerve parameter file
readResultCSV()
Reads RS Minerve result file and returns data.
readResultDST()
Reading RSMinerve result file
readSelectionCHK()
Reads a chk file containing the variables selected for printing
translateCSVtoDST()
Translate csv to dst
writeRSMParameters()
Write parameters to RS Minerve parameter file
writeSelectionCHK()
Writes a chk file containing the variables selected for printing

Glacier functions

Functions for modeling glacier discharge in R

ErazovsGlacierFunction()
Estimates glacier surface area and glacier volume.
glacierAreaVolume_Aizen()
Estimates glacier surface area and glacier volume.
glacierArea_Erasov()
Calculates glacier area from glacier volume
glacierArea_RGIF()
Calculates glacier area based on glacier volume
glacierMelt_TI()
Glacier melt computed with a temperature index model
glacierVolume_Erasov()
Calculates glacier volume from glacier area.
glacierVolume_RGIF()
Calculates glacier volume based on glacier area

Helper functions

Functions for date handling and aggregation

aggregate_to_monthly()
Aggregates the sub-monthly data in a riversCentralAsia data set to monthly data.
cutRaster2Basin()
Cutting raster file to basin shape with reprojection
decadeMaker()
Creates a vector of decadal (10 days) dates
generateSeqDates()
POSIXct date sequence generator
hyear()
Calculates the hydrological year for a given date
monDateSeq()
Create a monthly sequence date vector with end of month day dates
%>%
Pipe graphics
posixct2rsminerveChar()
Function to convert POSIXCT-dates to a character representation as required by RSminerve

Demo data sets

Data for use with the package

ChirchikRiverBasin
Discharge, precipitation and temperature in the Chirchik river basin, Uzbekistan.