4.7 Article

The open source RFortran library for accessing R from Fortran, with applications in environmental modelling

Journal

ENVIRONMENTAL MODELLING & SOFTWARE
Volume 26, Issue 2, Pages 219-234

Publisher

ELSEVIER SCI LTD
DOI: 10.1016/j.envsoft.2010.05.007

Keywords

R; Fortran; Open Source Software; COM

Ask authors/readers for more resources

The open source RFortran library is introduced as a convenient tool for accessing the functionality and packages of the R programming language from Fortran programs. It significantly enhances Fortran programming by providing a set of easy-to-use functions that enable access to R's very rapidly growing statistical, numerical and visualization capabilities, and support a richer and more interactive model development, debugging and analysis setup. RFortran differs from current approaches that require calling Fortran Dynamic link libraries (DLL) from R, and instead enables the Fortran program to transfer data to/from R and invoke R-based procedures via the R command interpreter. More generally, RFortran obviates the need to re-organize Fortran code into DLLs callable from R. or to re-write existing R packages in Fortran, or to jointly compile their Fortran code with the R language itself. Code snippets illustrate the basic transfer of data and commmands to and from R using RFortran, while two case studies discuss its advantages and limitations in realistic environmental modelling applications. These case studies include the generation of automated and interactive inference diagnostics in hydrological model calibration, and the integration of R statistical packages into a Fortran-based numerical quadrature code for joint probability analysis of coastal flooding using numerical hydraulic models. Currently, RFortran uses the Component Object Model (COM) interface for data/command transfer and is supported on the Microsoft Windows operating system and the Intel and Compaq Visual Fortran compilers. Extending its support to other operating systems and compilers is planned for the future. We hope that RFortran expedites method and software development for scientists and engineers with primary programming expertise in Fortran, but who wish to take advantage of R's extensive statistical, mathematical and visualization packages by calling them from their Fortran code. Further information can be found at www.rfortran.org. (C) 2010 Published by Elsevier Ltd.

Authors

I am an author on this paper
Click your name to claim this paper and add it to your profile.

Reviews

Primary Rating

4.7
Not enough ratings

Secondary Ratings

Novelty
-
Significance
-
Scientific rigor
-
Rate this paper

Recommended

Article Engineering, Civil

A robust approach for calibrating a daily rainfall-runoff model to monthly streamflow data

Julien Lerat, Mark Thyer, David McInerney, Dmitri Kavetski, Fitsum Woldemeskel, Christopher Pickett-Heaps, Daeyhok Shin, Paul Feikema

JOURNAL OF HYDROLOGY (2020)

Article Environmental Sciences

Multi-temporal Hydrological Residual Error Modeling for Seamless Subseasonal Streamflow Forecasting

David McInerney, Mark Thyer, Dmitri Kavetski, Richard Laugesen, Narendra Tuteja, George Kuczera

WATER RESOURCES RESEARCH (2020)

Article Environmental Sciences

A Rating Curve Model Accounting for Cyclic Stage-Discharge Shifts due to Seasonal Aquatic Vegetation

E. Perret, B. Renard, J. Le Coz

Summary: A model accounting for transient changes due to vegetation was developed to manage stage-discharge relations at hydrometric stations affected by seasonal aquatic vegetation. The model estimates parameters and uncertainty through Bayesian inference and allows the use of qualitative observations on the plant growth state for validation. The case study showed significant improvements in predicting water discharge compared to a standard model with no vegetation module.

WATER RESOURCES RESEARCH (2021)

Article Multidisciplinary Sciences

Globally observed trends in mean and extreme river flow attributed to climate change

Lukas Gudmundsson, Julien Boulange, Hong X. Do, Simon N. Gosling, Manolis G. Grillakis, Aristeidis G. Koutroulis, Michael Leonard, Junguo Liu, Hannes Muller Schmied, Lamprini Papadimitriou, Yadu Pokhrel, Sonia Seneviratne, Yusuke Satoh, Wim Thiery, Seth Westra, Xuebin Zhang, Fang Zhao

Summary: The study analyzed global river flow data from 7250 observatories and found that anthropogenic climate change has an impact on river flow. The research showed that some regions are consistently experiencing drying trends, while others are consistently experiencing wetting trends.

SCIENCE (2021)

Article Water Resources

Estimating the uncertainty of video-based flow velocity and discharge measurements due to the conversion of field to image coordinates

Jerome Le Coz, Benjamin Renard, Vincent Vansuyt, Magali Jodeau, Alexandre Hauet

Summary: The development of video-based hydrometry requires orthorectification of images to ensure each pixel has the same physical size. Implicit and explicit calibration methods are commonly used to compute the coefficients of the transformation, which are beneficial in obtaining precise estimates.

HYDROLOGICAL PROCESSES (2021)

Article Environmental Sciences

Detection of Stage-Discharge Rating Shifts Using Gaugings: A Recursive Segmentation Procedure Accounting for Observational and Model Uncertainties

M. Darienzo, B. Renard, J. Le Coz, M. Lang

Summary: The method proposed in the study utilizes a Bayesian framework and recursive segmentation to estimate shift times in stage-discharge rating curves, effectively separating observational changes from rating curve uncertainties.

WATER RESOURCES RESEARCH (2021)

Article Environmental Sciences

Improving the Reliability of Sub-Seasonal Forecasts of High and Low Flows by Using a Flow-Dependent Nonparametric Model

David McInerney, Mark Thyer, Dmitri Kavetski, Richard Laugesen, Fitsum Woldemeskel, Narendra Tuteja, George Kuczera

Summary: Sub-seasonal streamflow forecasts are crucial for water resource management, especially in predicting high and low flows. The study reveals that stratifying forecasts into high/low flow ranges can highlight significant under/over-estimations of forecast uncertainty. By introducing a flow-dependent component, the MuTHRE-FD model significantly improves the reliability of sub-seasonal forecasts for both high and low flows.

WATER RESOURCES RESEARCH (2021)

Article Water Resources

Streamflow uncertainty due to the limited sensitivity of controls at hydrometric stations

Ivan Horner, Jerome Le Coz, Benjamin Renard, Flora Branger, Mickael Lagouy

Summary: Streamflow data measured at hydrometric stations are influenced by uncertainty in water level measurements, which increases as the sensitivity of the stage-discharge controls decreases. The study demonstrates the importance of control sensitivity in reducing the uncertainty of streamflow, especially for low flows. Quantifying this uncertainty component is crucial for optimizing hydrometric station design.

HYDROLOGICAL PROCESSES (2022)

Article Engineering, Civil

Optimising the design and real-time operation of systems of distributed stormwater storages to reduce urban flooding at the catchment scale

Ruijie Liang, Mark A. Thyer, Holger R. Maier, Graeme C. Dandy, Michael Di Matteo

Summary: This study introduces a two-step method to minimize peak flows by optimizing the layout of distributed storages and their RTC strategies, showing that optimized layouts can achieve higher peak flow reductions than traditional end-of-system storage. The addition of optimized RTC can further reduce peak flows, with more significant effects on smaller storage volumes. Analysis of flood hydrographs indicates that peak flow reductions are achieved through attenuation at individual storages and delaying hydrographs to reduce coincidence at catchment confluences.

JOURNAL OF HYDROLOGY (2021)

Article Engineering, Civil

Achieving high-quality probabilistic predictions from hydrological models calibrated with a wide range of objective functions

Jason Hunter, Mark Thyer, David McInerney, Dmitri Kavetski

Summary: This study demonstrates that using inconsistent objective functions in hydrological modeling can lead to poor-quality probabilistic predictions, while an enhanced error model can overcome this issue and achieve high-quality probabilistic predictions.

JOURNAL OF HYDROLOGY (2021)

Article Environmental Sciences

A Hidden Climate Indices Modeling Framework for Multivariable Space-Time Data

B. Renard, M. Thyer, D. McInerney, D. Kavetski, M. Leonard, S. Westra

Summary: This paper presents a Bayesian hierarchical framework for risk assessment of climate-sensitive systems. It models the joint distribution of multiple spatially distributed variables and their temporal variability by using hidden climate indices (HCIs) and Gaussian processes. The flexibility of the framework is demonstrated in a case study in Southeast Australia, which accurately reproduces intervariable and intersite dependencies.

WATER RESOURCES RESEARCH (2022)

Article Engineering, Civil

Uncertainties in Models Predicting Critical Bed Shear Stress of Cohesionless Particles

Emeline Perret, Benoit Camenen, Celine Berni, Kamal El Kadi Abderrezzak, Benjamin Renard

Summary: Our data indicates significant variation in the critical Shields stress values for initial sediment motion. The dispersal is mainly caused by differences in the methodological procedures for determining the onset of movement and the estimation of bed shear stress. The threshold for sediment motion is influenced by factors such as grain size, bed composition, arrangement, and slope. New models are proposed to estimate the critical Shields number, incorporating grain size, bed slope, or both. The best results are obtained with a four-parameter model based on grain size and bed slope, but there is still considerable model uncertainty, suggesting the need for additional input parameters.

JOURNAL OF HYDRAULIC ENGINEERING (2023)

Article Water Resources

Evaluation des incertitudes et de l'homogeneite de longues series de debits de crue sur le Rhin a Bale (1225-2017) et Maxau (1815-2018)

Michel Lang, Matteo Darienzo, Jerome Le Coz, Benjamin Renard

Summary: A diagnosis of the safety of dikes from floods along the River Rhine downstream of Strasbourg was conducted by INRAE on behalf of DREAL Grand-Est. The flood discharge uncertainties of two long series in Basel and Maxau were analyzed using the BaRatin model. Statistical tests revealed heterogeneities in both series, which were partly caused by hydraulic developments on the Rhine in the past two centuries. The corrected series showed better quality, but there was still a step-change around 1966-1976 in Basel and Maxau, possibly due to a change in the climate circulation regime in Central Europe since the 1970s.

LHB-HYDROSCIENCE JOURNAL (2022)

Article Computer Science, Interdisciplinary Applications

Incorporating physically-based water temperature predictions into the National water model framework

Jeffrey Wade, Christa Kelleher, Barret L. Kurylyk

Summary: This study developed a physically-based water temperature model coupled with the National Water Model (NWM) to assess the potential for water temperature prediction to be incorporated into the NWM at the continental scale. By evaluating different model configurations of increasing complexity, the study successfully simulated hourly water temperatures in the forested headwaters of H.J. Andrews Experimental Forest in Oregon, USA, providing a basis for integrating water temperature simulation with predictions from the NWM.

ENVIRONMENTAL MODELLING & SOFTWARE (2024)

Article Computer Science, Interdisciplinary Applications

Improving the statistical reliability of river model predictions via simple state adjustments

Shaun SH. Kim, Lucy A. Marshall, Justin D. Hughes, Lynn Seo, Julien Lerat, Ashish Sharma, Jai Vaze

Summary: A major challenge in hydrologic modelling is producing reliable uncertainty estimates outside of calibration periods. This research addresses the challenge by improving model structures and error models to more reliably estimate uncertainty. The combination of the RBS model and SPUE produces statistically reliable predictions and shows better matching performance in tests.

ENVIRONMENTAL MODELLING & SOFTWARE (2024)

Article Computer Science, Interdisciplinary Applications

Class3Dp: A supervised classifier of vegetation species from point clouds

Juan Pedro Carbonell-Rivera, Javier Estornell, Luis Angel Ruiz, Pablo Crespo-Peremarch, Jaime Almonacid-Caballer

Summary: This study presents Class3Dp, a software for classifying vegetation species in colored point clouds. The software utilizes geometric, spectral, and neighborhood features along with machine learning methods to classify the point cloud, allowing for the recognition of species composition in an ecosystem.

ENVIRONMENTAL MODELLING & SOFTWARE (2024)

Article Computer Science, Interdisciplinary Applications

A comparison of numerical schemes for the GPU-accelerated simulation of variably-saturated groundwater flow

Zhi Li, Daniel Caviedes-Voullieme, Ilhan Oezgen-Xian, Simin Jiang, Na Zheng

Summary: The optimal strategy for solving the Richards equation numerically depends on the specific problem, particularly when using GPUs. This study investigates the parallel performance of four numerical schemes on both CPUs and GPUs. The results show that the scaling of Richards solvers on GPUs is influenced by various factors. Compared to CPUs, parallel simulations on GPUs exhibit significant variation in scaling across different code sections, with poorly-scaled components potentially impacting overall performance. Nonetheless, using GPUs can greatly enhance computational speed, especially for large-scale problems.

ENVIRONMENTAL MODELLING & SOFTWARE (2024)

Article Computer Science, Interdisciplinary Applications

ANDROMEDE - A software platform for optical surface velocity measurements

Ludovic Cassan, Leo Pujol, Paul Lonca, Romain Guibert, Helene Roux, Olivier Mercier, Dominique Courret, Sylvain Richard, Pierre Horgue

Summary: Methods and algorithms for measuring stream surface velocities have been continuously developed over the past five years to adapt to specific flow typologies. The free software ANDROMEDE allows easy use and comparison of these methods with image processing capabilities designed for measurements in natural environments and with unmanned aerial vehicles. The validation of the integrated algorithms is presented on three case studies that represent the targeted applications: the study of currents for eco-hydraulics, the measurement of low water flows and the diagnosis of hydraulic structures. The field measurements are in very good agreement with the optical measurements and demonstrate the usefulness of the tool for rapid flow diagnosis for all the intended applications.

ENVIRONMENTAL MODELLING & SOFTWARE (2024)

Article Computer Science, Interdisciplinary Applications

Uncovering heterogeneous effects in computational models for sustainable decision-making

Mariia Kozlova, Robert J. Moss, Julian Scott Yeomans, Jef Caers

Summary: This paper introduces a framework for quantitative sensitivity analysis using the SimDec visualization method, and tests its effectiveness on decision-making problems. The framework captures critical information in the presence of heterogeneous effects, and enhances its practicality by introducing a formal definition and classification of heterogeneous effects.

ENVIRONMENTAL MODELLING & SOFTWARE (2024)

Article Computer Science, Interdisciplinary Applications

Inclusive simulation game development to enhance Florida research and management: Cedar Key oyster fishery

Chad R. Palmer, Denis Valle, Edward V. Camp, Wendy-Lin Bartels, Martha C. Monroe

Summary: Simulation games have been used in natural resource management for education and communication purposes, but not for data collection. This research introduces a new design process which involves stakeholders and emphasizes usability, relevance, and credibility testing criteria. The result is a finalized simulation game for future research.

ENVIRONMENTAL MODELLING & SOFTWARE (2024)

Article Computer Science, Interdisciplinary Applications

Numerical analysis of the abiotic formation and distribution of the iron curtain in subterranean estuaries

Tao Wang, Chenming Zhang, Ye Ma, Harald Hofmann, Congrui Li, Zicheng Zhao

Summary: This study used numerical modeling to investigate the formation process of iron curtains under different freshwater and seawater conditions. It was found that Fe(OH)3 accumulates on the freshwater side, while the precipitation is inhibited on the seaward side due to high H+ concentrations. These findings enhance our understanding of iron transformation and distribution in subterranean estuaries.

ENVIRONMENTAL MODELLING & SOFTWARE (2024)

Article Computer Science, Interdisciplinary Applications

Wildland fire mid-story: A generative modeling approach for representative fuels

Grant Hutchings, James Gattiker, Braden Scherting, Rodman R. Linn

Summary: Computational models for understanding and predicting fire in wildland and managed lands are becoming increasingly impactful. This paper addresses the characterization and population of mid-story fuels, which are not easily observable through traditional survey or remote sensing. The authors present a methodology to populate the mid-story using a generative model for fuel placement, which can be calibrated based on limited observation datasets or expert guidance. The connection of terrestrial LiDAR as the observations used to calibrate the generative model is emphasized. Code for the methods in this paper is provided.

ENVIRONMENTAL MODELLING & SOFTWARE (2024)

Article Computer Science, Interdisciplinary Applications

IMDLIB: An open-source library for retrieval, processing and spatiotemporal exploratory assessments of gridded meteorological observation datasets over India

Saswata Nandi, Pratiman Patel, Sabyasachi Swain

Summary: IMDLIB is an open-source Python library that simplifies the retrieval and processing of gridded meteorological data from IMD, enhancing data accessibility and facilitating hydro-climatic research and analysis.

ENVIRONMENTAL MODELLING & SOFTWARE (2024)

Article Computer Science, Interdisciplinary Applications

Multiple equidistant belt technique for width function estimation through a two-segmented-distance strategy

Pengfei Wu, Jintao Liu, Meiyan Feng, Hu Liu

Summary: In this paper, a new flow distance algorithm called D infinity-TLI is proposed, which accurately estimates flow distance and width function using a two-segment-distance strategy and triangulation with linear interpolation method. The evaluation results show that D infinity-TLI outperforms existing algorithms and has a low mean absolute relative error.

ENVIRONMENTAL MODELLING & SOFTWARE (2024)