Skip to content

This is a quick exercise in curve fitting, based on a chart that shows the relationship between CWI and SAAR, extracted from an old book on hydrology

Notifications You must be signed in to change notification settings

Patryk-Obermajer/CWI-vs-SAAR---Polynomial-Interpolation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

CWI vs SAAR - Polynomial Interpolation

Overview

This repository contains Python script in Jupiter Notebook and data files used in an analysis of Catchment Wetness Index (CWI) and Standard Average Annual Rainfall (SAAR) data, based on the NERC (1975) Flood Studies Report (FSR) - Plot of catchment wetness index, CWI, against mean annual rainfall, SAAR - Figure I.6.62.

The main goal of this project was to create a model that can predict the CWI value from a given SAAR value. To achieve this, we used polynomial fitting to find best fits a given set of data points.

Here's the chart in quetsion:

image

Of course, for the majority of applications—particularly considering the resolution of the figure from which we extracted the data—this polynomial interpolation technique might be excessive. A simpler and potentially more efficient approach could be to employ linear interpolation between data points.

Contents

Inside this repository, you'll find:

  • Python scripts in a Jupiter Notebook.
  • The SAAR_CWI.csv file containing our dataset extracted from the FSR.
  • Images of the graph we were aiming to reproduce and the graph resulting from our model.

Results

We found that a 16-degree polynomial model fits our data. We achieved a very reliable R-squared score of 0.9999 and a low RMSE of 0.1926, indicating a high level of prediction accuracy. Moreover, our model exhibited consistent performance across the entire SAAR value range.

About

This is a quick exercise in curve fitting, based on a chart that shows the relationship between CWI and SAAR, extracted from an old book on hydrology

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published