SlideShare una empresa de Scribd logo
1 de 1
Descargar para leer sin conexión
R: A statistical environment for hydrological analysis
                                     R: A statistical environment for hydrological analysis
                                                                                                                Zambrano-Bigiarini, Mauricio and Bellin, Alberto
                                                                                                                Zambrano-Bigiarini, Mauricio and Bellin, Alberto
                                                                                  Dep. of Civil and Environmental Engineering, Faculty of Engineering, Università degli Studi di Trento, Trento, Italy
                                                                                  Dep. of Civil and Environmental Engineering, Faculty of Engineering, Università degli Studi di Trento, Trento, Italy
Abstract:EGU2010-13008
Session: HS4.22/EOS13                                                                                                                                                    e-mail: mauricio.zambrano@ing.unitn.it
                                                                                                                                                                         e-mail: mauricio.zambrano@ing.unitn.it
     May 05th , 2010



   1) Introduction                                                                                                                                                                                                                                                          4) Packages by thematic area:
                                                                                                                                                                                                                                                                            ●
                                                                                                                                                                                                                                                                                Hydrology: RHydro, HydroMe, hydrogeo, hydrosanity,
   The free software environment for statistical computing
                                                                                                                                                                                                                                                                                topmodel, wasim, hydroTSM, hydroGOF
   and graphics “R” has been developed and it is
   maintained by statistical programmers, with the
                                                                                                                                                                                                                                                                            ●
                                                                                                                                                                                                                                                                                Geostatistics: gstat, automap, geoR, fields, RandomFields
   support of an increasing community of users with many
                                                                                                                                                                                                                                                                            ●
                                                                                                                                                                                                                                                                                GIS: spgrass6, RSAGA, rgdal, mapproj, sp, maptools RpyGeo,
   different backgrounds, which allows access to both                                                                                                                                                                                                                           RGoogleMaps, RArcInfo
   well-established and experimental techniques.                                                                                                                                                                                                                            ●
                                                                                                                                                                                                                                                                                Flood frequency: POT, evd, nsRFA, extremes, lmomco
                                                                                                                                                                                                                                                                            ●
                                                                                                                                                                                                                                                                                Programming language interfaces: C, Fortran, Python, Perl,
   Hydrological modelling practitioners spent large                                                                                                                                                                                                                             Java (JRI, JGR,...)
   amount of time in pre- and post-processing data and                                                                                                                                                                                                                      ●
                                                                                                                                                                                                                                                                                Wavelets: wavelets; wavethresh, wmtsa, Rwave
   results with traditional instruments. In this work “R” and                                                                                                                                                                                                               ●
                                                                                                                                                                                                                                                                                High Performance Computing:snowfall, multicore, jit, nws,
   some of its packages are presented as powerful tools
                                                                                                                                                                                                                                                                                Rmpi, snow, taskPR
   to explore and extract patterns from raw information, to
   pre-process input data of hydrological models, and
                                                                                                                                                                                                                                                                            ●
                                                                                                                                                                                                                                                                                Optimization: DEoptim, optim
   post-processing its results. In particular, examples are
                                                                                                                                                                                                                                                                            ●
                                                                                                                                                                                                                                                                                Spreadsheets & DB: RPostgreSQL, RMySQL, RSQLite,
   taken from analyzing 30-years of daily data for a basin                                                                                                                                                                                                                      RNetCDF, RexcelInstaller, xlsReadWrite
   of 85000 km2, saving a large amount of time that could                                                                                # Figure 2: hydroTSM::hydroplot; hydroTSM::sname2plot;               ## Plotting the streamflows at station "Q093"                 ●
                                                                                                                                                                                                                                                                                Other statistical software ( e.g, S, SAS, SPSS, Stata, Systat,
                                                                                                                                         data(EbroQts) # Loading the streamflow dataset                       sname2plot(EbroQts, sname="Q093", dates=1, var.type="Flow")
   be better spent in doing analysis.                                                                                                                                                                                                                                           Minitab): foreign
                                                                 # Figure 1: hydroTSM::matrixplot
                                                                                                                                                                                                                                                                            ●
                                                                                                                                                                                                                                                                                Bayesian statistics: BAS, BLR, ensembleBMA, evdbayes,
                                                                 # Matrix with the days with information per year in selected stations
                                                                                                                                                                                                                                                                                LearnBayes, ramps, spBayes,...
                                                                 info <- dwi(EbroQts[,61:110], out.unit="years", dates=EbroQts[,1])                                                                                                                                         ●
                                                                                                                                                                                                                                                                                Latex: xtable,pgfSweave
                                                                 # Plotting the previous matrix, with custom title
                                                                 matrixplot(info, main="Nº of Days with Information (1961-1990) n in
                                                                                                                                                                                                                                                                            ●
                                                                                                                                                                                                                                                                                Data Mining: Rweka, rattle, party, RandomForest, ...
   2) Why an hydrologist should                                  the Selected Streamgauges")



   invest time in trying R ?                                                                                                                                                                                                                                                5) At the end...              :




     ●
         Many ready-to-use algorithms.                                                                                                                                                                                                                                       "R" is a valuable environment to support undergraduate and
     ●
         Existing functions, graphics and packages can be                                                                                                                                                                                                                   graduate education in hydrology, since it is helpful to capture the
         easily adapted to particular needs.                                                                                                                                                                                                                                main features of large amount of data; it is a flexible and fully
     ●
         Write once, use many times.                                                                                                                                                                                                                                        functional programming language, able to be interfaced to
     ●
         Large and active user community.                                                                                                                                                                                                                                   existing Fortran and C code and well suited to the ever growing
     ●
         Documentation is available in several languages.                                                                                                                                                                                                                   demands of hydrological analysis; and finally because it is a
     ●
         Multi-platform (GNU/Linux, MacOS, Windows).                                                                                                                                                                                                                        promising environment for tackling most of the practical problems
     ●
         Open Source.                                                                                                                                                                                                                                                       that reality poses to the hydrological modeller.
     ●
         Free :)

                                                                                                                                                                                                                                                                                6) Where to Start ?
                                                                                                                                                                                                                                                                            ●
                                                                                                                                                                                                                                                                              Hydrology in R (wiki)
                                                                                                                                                                                                                                                                            ●
                                                                                                                                                                                                                                                                              R reference card
  3) hydroTSM and hydroGOF                                       # Figure 3: hydroTSM::hydropairs
                                                                 hydropairs(EbroQts[,21:24], main="Correlations among Selected
                                                                                                                                                                                                                                                                            ●
                                                                                                                                                                                                                                                                              Graphics: http://addictedtor.free.fr/graphiques/
                                                                 Daily Streamflow Stations")                                             # Figure 4: hydroTSM::hydrokrige and hydroTSM::mspplot
                                                                                                                                                                                                                                                                            ●
                                                                                                                                                                                                                                                                              Quick R: http://www.statmethods.net/index.html
  hydroTSM is an R package with S3 functions devoted
                                                                                                                                                                                                                                                                            ●
                                                                                                                                                                                                                                                                              R-Spatial: http://r-spatial.sourceforge.net/gallery/
  to management, analysis, interpolation and plot of
                                                                                                                                                                                                                                                                            ●
                                                                                                                                                                                                                                                                              CSRL: http://casoilresource.lawr.ucdavis.edu/drupal/node/100
  hydrological time series, mainly oriented to provide
                                                                                                                                                                                                                                                                            ●
                                                                                                                                                                                                                                                                              Manuals: http://cran.r-project.org/manuals.html
  support to hydrological modelling tasks.
                                                                                                                                                                                                                                                                            ●
                                                                                                                                                                                                                                                                              Packages: http://cran.r-project.org/web/packages/
                                                                                                                                                                                                                                                                            ●
                                                                                                                                                                                                                                                                              Search engine: http://www.rseek.org/, R Site search
  hydroGOF is an R package with S3 functions
  providing both, numerical and graphical goodness-of-fit
   measures between observed and simulated time
                                                                                                                                                                                                                                                                            7) References             :




  series.                                                                                                                                                                                                                                                                   ●
                                                                                                                                                                                                                                                                                Jones, O., R. Maillardet, A., Robinson. (2009). Introduction to Scientific
                                                                                                                                                                                                                                                                                Programming and Simulation Using R. 472pp. Chapman & Hall/CRC.
                                                                                                                                                                                                                                                                                Boca Raton, FL.
  Both packages will be soon available on the R website.                                                                                                                                                                                                                    ●
                                                                                                                                                                                                                                                                                Spector, P. 2008. Data Manipulation with R. 154pp. Springer-Verlag,
  Contributions are particularly welcome.                                                                                                                                                                                                                                       Carey, NC. ISBN 978-0-387-74730-9.
                                                                                                                                                                                                                                                                            ●
                                                                                                                                                                                                                                                                                Applied Spatial Data Analysis with R. Series: Use R. Bivand, Roger S.,
                                                                                                                                                                                                                                                                                Pebesma, Edzer J., Gomez-Rubio, Virgilio. 2008. ISBN: 978-0-387-
                                                                # Fig 5: hydroGOF:plotbands                                                                     # Fig 6: hydroGOF:ggof
                                                                                                                                                                                                                                                                                78170-9

Más contenido relacionado

Último

Millenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptxMillenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptxJanEmmanBrigoli
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxTEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxruthvilladarez
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
EMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxEMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxElton John Embodo
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataBabyAnnMotar
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 

Último (20)

LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Millenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptxMillenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptx
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxTEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
EMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxEMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docx
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped data
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 

Destacado

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
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
 

Destacado (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
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
 

R: A Statistical Environment for doing Hydrological Analysis and Modelling (EGU 2010)

  • 1. R: A statistical environment for hydrological analysis R: A statistical environment for hydrological analysis Zambrano-Bigiarini, Mauricio and Bellin, Alberto Zambrano-Bigiarini, Mauricio and Bellin, Alberto Dep. of Civil and Environmental Engineering, Faculty of Engineering, Università degli Studi di Trento, Trento, Italy Dep. of Civil and Environmental Engineering, Faculty of Engineering, Università degli Studi di Trento, Trento, Italy Abstract:EGU2010-13008 Session: HS4.22/EOS13 e-mail: mauricio.zambrano@ing.unitn.it e-mail: mauricio.zambrano@ing.unitn.it May 05th , 2010 1) Introduction 4) Packages by thematic area: ● Hydrology: RHydro, HydroMe, hydrogeo, hydrosanity, The free software environment for statistical computing topmodel, wasim, hydroTSM, hydroGOF and graphics “R” has been developed and it is maintained by statistical programmers, with the ● Geostatistics: gstat, automap, geoR, fields, RandomFields support of an increasing community of users with many ● GIS: spgrass6, RSAGA, rgdal, mapproj, sp, maptools RpyGeo, different backgrounds, which allows access to both RGoogleMaps, RArcInfo well-established and experimental techniques. ● Flood frequency: POT, evd, nsRFA, extremes, lmomco ● Programming language interfaces: C, Fortran, Python, Perl, Hydrological modelling practitioners spent large Java (JRI, JGR,...) amount of time in pre- and post-processing data and ● Wavelets: wavelets; wavethresh, wmtsa, Rwave results with traditional instruments. In this work “R” and ● High Performance Computing:snowfall, multicore, jit, nws, some of its packages are presented as powerful tools Rmpi, snow, taskPR to explore and extract patterns from raw information, to pre-process input data of hydrological models, and ● Optimization: DEoptim, optim post-processing its results. In particular, examples are ● Spreadsheets & DB: RPostgreSQL, RMySQL, RSQLite, taken from analyzing 30-years of daily data for a basin RNetCDF, RexcelInstaller, xlsReadWrite of 85000 km2, saving a large amount of time that could # Figure 2: hydroTSM::hydroplot; hydroTSM::sname2plot; ## Plotting the streamflows at station "Q093" ● Other statistical software ( e.g, S, SAS, SPSS, Stata, Systat, data(EbroQts) # Loading the streamflow dataset sname2plot(EbroQts, sname="Q093", dates=1, var.type="Flow") be better spent in doing analysis. Minitab): foreign # Figure 1: hydroTSM::matrixplot ● Bayesian statistics: BAS, BLR, ensembleBMA, evdbayes, # Matrix with the days with information per year in selected stations LearnBayes, ramps, spBayes,... info <- dwi(EbroQts[,61:110], out.unit="years", dates=EbroQts[,1]) ● Latex: xtable,pgfSweave # Plotting the previous matrix, with custom title matrixplot(info, main="Nº of Days with Information (1961-1990) n in ● Data Mining: Rweka, rattle, party, RandomForest, ... 2) Why an hydrologist should the Selected Streamgauges") invest time in trying R ? 5) At the end... : ● Many ready-to-use algorithms. "R" is a valuable environment to support undergraduate and ● Existing functions, graphics and packages can be graduate education in hydrology, since it is helpful to capture the easily adapted to particular needs. main features of large amount of data; it is a flexible and fully ● Write once, use many times. functional programming language, able to be interfaced to ● Large and active user community. existing Fortran and C code and well suited to the ever growing ● Documentation is available in several languages. demands of hydrological analysis; and finally because it is a ● Multi-platform (GNU/Linux, MacOS, Windows). promising environment for tackling most of the practical problems ● Open Source. that reality poses to the hydrological modeller. ● Free :) 6) Where to Start ? ● Hydrology in R (wiki) ● R reference card 3) hydroTSM and hydroGOF # Figure 3: hydroTSM::hydropairs hydropairs(EbroQts[,21:24], main="Correlations among Selected ● Graphics: http://addictedtor.free.fr/graphiques/ Daily Streamflow Stations") # Figure 4: hydroTSM::hydrokrige and hydroTSM::mspplot ● Quick R: http://www.statmethods.net/index.html hydroTSM is an R package with S3 functions devoted ● R-Spatial: http://r-spatial.sourceforge.net/gallery/ to management, analysis, interpolation and plot of ● CSRL: http://casoilresource.lawr.ucdavis.edu/drupal/node/100 hydrological time series, mainly oriented to provide ● Manuals: http://cran.r-project.org/manuals.html support to hydrological modelling tasks. ● Packages: http://cran.r-project.org/web/packages/ ● Search engine: http://www.rseek.org/, R Site search hydroGOF is an R package with S3 functions providing both, numerical and graphical goodness-of-fit measures between observed and simulated time 7) References : series. ● Jones, O., R. Maillardet, A., Robinson. (2009). Introduction to Scientific Programming and Simulation Using R. 472pp. Chapman & Hall/CRC. Boca Raton, FL. Both packages will be soon available on the R website. ● Spector, P. 2008. Data Manipulation with R. 154pp. Springer-Verlag, Contributions are particularly welcome. Carey, NC. ISBN 978-0-387-74730-9. ● Applied Spatial Data Analysis with R. Series: Use R. Bivand, Roger S., Pebesma, Edzer J., Gomez-Rubio, Virgilio. 2008. ISBN: 978-0-387- # Fig 5: hydroGOF:plotbands # Fig 6: hydroGOF:ggof 78170-9