SlideShare une entreprise Scribd logo
1  sur  1
Télécharger pour lire hors ligne
Using R for Global Optimization of a Fully-distributed
Using R for Global Optimization of a Fully-distributed
Hydrological Model at Continental Scale
Hydrological Model at Continental Scale
Mauricio Zambrano-Bigiarini, Zuzanna Zajac and Peter Salamon
Mauricio Zambrano-Bigiarini, Zuzanna Zajac and Peter Salamon

1) Motivation

Joint
Research
Centre
AGU 2013-1804792
Identifier: H51R-06
Dec 13th, 2013

6) Calibration results + post-processing

The spatially-distributed LISFLOOD hydrological model is
used for flood forecasting at Pan-European scale, within
the European Flood Awareness System (EFAS).
Several model parameters need to be estimated through
calibration for ca. 700 subcatchments.
Calibrating all the individual catchment for the whole
Europe is a very time consuming and prone-to-error task.

2) Aim
To describe and illustrate how the free software R has been
used as a single environment to pre-process
hydro-meteorological data, carry out global optimization,
and to post-process calibration results at European scale.

3) Why using R for massive
hydrological analysis?
●

●

●

●

●

●

●

●

●
●

Fig 03. Evolution of the global optimum (Nash-Sutcliffe efficiency) and the normalized
swarm radius (δnorm) along the number of iterations.

Base functions allow efficient data manipulation and
storage (spatial data and time series).
Support for almost every vectorial and raster spatial
format (rgdal, raster and sp packages).
R is both a scientific software and a programming
language (types, objects, functions, extensions).
Scripting capabilities allow explicit documentation and
reproducible research.
Fully-customizable and high-quality graphical functions
for exploratory data analysis and visualization.
Highly extensible (4000+ packages with state-of-the art
contributions in several fields of knowledge).
Easy integration with other languages (C/C++, Fortran,
Python, etc), e.g., for intensive computations.
Easy parallelization (multi-core machines or network
clusters).
Multi-platform (GNU/Linux, Mac/OS X, Windows)
Free and open-source.

Fig 01. Shaded boxes represent the seven major calibration areas used for splitting up the
pan-European spatial domain. Colored dots represent discharge stations coming from two
different data sources, which were analyzed to select ca. 700 stations for calibration.

5) Model Calibration

NSE
Fig 06. Figure automatically generated for assessing the quality of the calibration results of each single
catchment. The upper panel shows a comparison of the observed and simulated hydrographs during the
verification period; the lower left panel shows a comparison of the flow duration curves thereof, while the
lower right panel shows numerical statistics for comparing observations with their simulated counterparts.

7) Concluding Remarks
Fig 04. Nash-Sutcliffe efficiency (NSE) response surface projected onto the parameter
space (pseudo 3D-dotty plots) for selected parameters, to highlight equifinality issues.

4) Pre-processing
●

●

●

●

●

Historical daily data for
national providers).

4062 stream gages (from

●

hydroTSM, sp and raster packages were used to
select ~700 stations with enough temporal data and
good spatial distribution across Europe.
Nine parameters were selected for calibration based on
previous expert knowledge.
The pan-European spatial extent was split up into 7
main calibration areas, in order to speed up the model
computation time.
Customized R scripts were used to extract observed
time series for each catchment and to prepare the input
files required for individual calibrations (i.e.,
ParamRanges.txt, ParamFiles.txt, obs.tss,
and hydroPSO-subbXXX.R files along with a masking
area map defining the drainage area of individual
catchments).

www.jrc.europa.eu

●

●

●

●

Fig 02. Flow chart of the calibration of a single catchment. Files ParamRanges.txt  and
ParamFiles.txt  defines which parameters are to be calibrated and where they have to be
modified, respectively. Settings.xml defines location of model input files and the value of model
parameters. Light-blue shaded boxes indicate some user intervention, while light-yellow shaded
boxes represent static input files (not modified during optimization).
obs.tss : file with observed discharges.
●
dis.tss
: file with simulated discharges.
●
read_tss(): user-defined R function for
reading .tss files
●

●

Fig 05. Dotty plots showing the model performance (NSE) versus parameter values, for
three selected parameters. Vertical red line indicates the “optimum” parameter value.

●
●

●

2011 (hydroPSO package).

Mauricio Zambrano-Bigiarini*, Zuzanna Zajac and Peter Salamon
European Commission • Joint Research Centre • Institute for Environment and Sustainability
*Currently at: EULA-Chile Centre, University of Concepción (Chile) • Email: mauricio.zambrano@udec.cl

data analysis at continental scale.
The use of a single environment for pre-processing, calibrating and
post-processing of results made easier further changes to any step of the
workflow.
Results in hundreds of catchments with different hydro-climatological regimes
showed that hydroPSO is an effective and efficient R package for finding
near-optimal parameter sets at a low computation cost.
Notwithstanding this case study is related only to the calibration of a hydrological
model written in Ptyhon+PCRaster, we believe that a similar approach can be
applied to a wide class of environmental models requiring some form of
parameter optimization, from micro to global scale.

References:

NSE() : R function for computing the Nash-Sutcliffe

efficiency (hydroGOF package)
● SPSO-2011 : Standard Particle Swarm Optimization

The use of the 'parallel' option available in the hydroPSO, allowed a
substantial reduction of the total calibration time (ca. 50% with 6 cores).
R proved to be an efficient environment to facilitate modeling, visualization and

●

●

EFAS (2013), “European Flood Awareness System”, http://www.efas.eu/. [Online. Last accessed 05-Dec-2013]
van Der Knijff, J. M., J. Younis, and A. P. J. De Roo (2010), LISFLOOD: a GIS-based distributed model for river basin scale water
balance and flood simulation, International Journal of Geographical Information Science, 24(2), 189–212,
doi:10.1080/13658810802549154.
Zambrano-Bigiarini, M.; R. Rojas (2013), A model-independent Particle Swarm Optimisation software for model calibration, Environmental
Modelling & Software, 43, 5-25, doi:10.1016/j.envsoft.2013.01.004.
Zambrano-Bigiarini, M. (2013). hydroTSM: Time series management, analysis and interpolation for hydrological modelling. R package
version 0.4-1. http://CRAN.R-project.org/package=hydroTSM
Zambrano-Bigiarini, M. (2013). hydroGOF: Goodness-of-fit functions for comparison of simulated and observed hydrological time series. R
package version 0.3-7. http://CRAN.R-project.org/package=hydroGOF

Contenu connexe

Dernier

Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfSanaAli374401
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 

Dernier (20)

Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 

En vedette

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 

En vedette (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

Using R for Global Optimization of a Fully-distributed Hydrological Model at Continental Scale (AGU 2013)

  • 1. Using R for Global Optimization of a Fully-distributed Using R for Global Optimization of a Fully-distributed Hydrological Model at Continental Scale Hydrological Model at Continental Scale Mauricio Zambrano-Bigiarini, Zuzanna Zajac and Peter Salamon Mauricio Zambrano-Bigiarini, Zuzanna Zajac and Peter Salamon 1) Motivation Joint Research Centre AGU 2013-1804792 Identifier: H51R-06 Dec 13th, 2013 6) Calibration results + post-processing The spatially-distributed LISFLOOD hydrological model is used for flood forecasting at Pan-European scale, within the European Flood Awareness System (EFAS). Several model parameters need to be estimated through calibration for ca. 700 subcatchments. Calibrating all the individual catchment for the whole Europe is a very time consuming and prone-to-error task. 2) Aim To describe and illustrate how the free software R has been used as a single environment to pre-process hydro-meteorological data, carry out global optimization, and to post-process calibration results at European scale. 3) Why using R for massive hydrological analysis? ● ● ● ● ● ● ● ● ● ● Fig 03. Evolution of the global optimum (Nash-Sutcliffe efficiency) and the normalized swarm radius (δnorm) along the number of iterations. Base functions allow efficient data manipulation and storage (spatial data and time series). Support for almost every vectorial and raster spatial format (rgdal, raster and sp packages). R is both a scientific software and a programming language (types, objects, functions, extensions). Scripting capabilities allow explicit documentation and reproducible research. Fully-customizable and high-quality graphical functions for exploratory data analysis and visualization. Highly extensible (4000+ packages with state-of-the art contributions in several fields of knowledge). Easy integration with other languages (C/C++, Fortran, Python, etc), e.g., for intensive computations. Easy parallelization (multi-core machines or network clusters). Multi-platform (GNU/Linux, Mac/OS X, Windows) Free and open-source. Fig 01. Shaded boxes represent the seven major calibration areas used for splitting up the pan-European spatial domain. Colored dots represent discharge stations coming from two different data sources, which were analyzed to select ca. 700 stations for calibration. 5) Model Calibration NSE Fig 06. Figure automatically generated for assessing the quality of the calibration results of each single catchment. The upper panel shows a comparison of the observed and simulated hydrographs during the verification period; the lower left panel shows a comparison of the flow duration curves thereof, while the lower right panel shows numerical statistics for comparing observations with their simulated counterparts. 7) Concluding Remarks Fig 04. Nash-Sutcliffe efficiency (NSE) response surface projected onto the parameter space (pseudo 3D-dotty plots) for selected parameters, to highlight equifinality issues. 4) Pre-processing ● ● ● ● ● Historical daily data for national providers). 4062 stream gages (from ● hydroTSM, sp and raster packages were used to select ~700 stations with enough temporal data and good spatial distribution across Europe. Nine parameters were selected for calibration based on previous expert knowledge. The pan-European spatial extent was split up into 7 main calibration areas, in order to speed up the model computation time. Customized R scripts were used to extract observed time series for each catchment and to prepare the input files required for individual calibrations (i.e., ParamRanges.txt, ParamFiles.txt, obs.tss, and hydroPSO-subbXXX.R files along with a masking area map defining the drainage area of individual catchments). www.jrc.europa.eu ● ● ● ● Fig 02. Flow chart of the calibration of a single catchment. Files ParamRanges.txt  and ParamFiles.txt  defines which parameters are to be calibrated and where they have to be modified, respectively. Settings.xml defines location of model input files and the value of model parameters. Light-blue shaded boxes indicate some user intervention, while light-yellow shaded boxes represent static input files (not modified during optimization). obs.tss : file with observed discharges. ● dis.tss : file with simulated discharges. ● read_tss(): user-defined R function for reading .tss files ● ● Fig 05. Dotty plots showing the model performance (NSE) versus parameter values, for three selected parameters. Vertical red line indicates the “optimum” parameter value. ● ● ● 2011 (hydroPSO package). Mauricio Zambrano-Bigiarini*, Zuzanna Zajac and Peter Salamon European Commission • Joint Research Centre • Institute for Environment and Sustainability *Currently at: EULA-Chile Centre, University of Concepción (Chile) • Email: mauricio.zambrano@udec.cl data analysis at continental scale. The use of a single environment for pre-processing, calibrating and post-processing of results made easier further changes to any step of the workflow. Results in hundreds of catchments with different hydro-climatological regimes showed that hydroPSO is an effective and efficient R package for finding near-optimal parameter sets at a low computation cost. Notwithstanding this case study is related only to the calibration of a hydrological model written in Ptyhon+PCRaster, we believe that a similar approach can be applied to a wide class of environmental models requiring some form of parameter optimization, from micro to global scale. References: NSE() : R function for computing the Nash-Sutcliffe efficiency (hydroGOF package) ● SPSO-2011 : Standard Particle Swarm Optimization The use of the 'parallel' option available in the hydroPSO, allowed a substantial reduction of the total calibration time (ca. 50% with 6 cores). R proved to be an efficient environment to facilitate modeling, visualization and ● ● EFAS (2013), “European Flood Awareness System”, http://www.efas.eu/. [Online. Last accessed 05-Dec-2013] van Der Knijff, J. M., J. Younis, and A. P. J. De Roo (2010), LISFLOOD: a GIS-based distributed model for river basin scale water balance and flood simulation, International Journal of Geographical Information Science, 24(2), 189–212, doi:10.1080/13658810802549154. Zambrano-Bigiarini, M.; R. Rojas (2013), A model-independent Particle Swarm Optimisation software for model calibration, Environmental Modelling & Software, 43, 5-25, doi:10.1016/j.envsoft.2013.01.004. Zambrano-Bigiarini, M. (2013). hydroTSM: Time series management, analysis and interpolation for hydrological modelling. R package version 0.4-1. http://CRAN.R-project.org/package=hydroTSM Zambrano-Bigiarini, M. (2013). hydroGOF: Goodness-of-fit functions for comparison of simulated and observed hydrological time series. R package version 0.3-7. http://CRAN.R-project.org/package=hydroGOF