/rain_data_analysis

Using R to analyze Rain Data from Bocas Del Toro Field Station in Panama

Primary LanguageR

rain_data_analysis

Using R to analyze Rain Data from Bocas Del Toro Field Station in Panama (9º 21' 02.96'' N, 82º 15' 28.27'' W)

Andrew Yale

Thanks to: Yuyang Dong for parsing the file into a usable date format

#Description

This program was made to analyze rain data provided by the Bocas Del Toro Field Station in Panama. This was used to help EWB-RPI (Engineers Without Borders - Rensselaer Polytechnic Institute) with their alternatives analysis. More specifically to decide whether the community of approx 300 people in Bocas Del Toro could use rain water as a sustainable source of drinking water.

#Motivation/Background

I started this project last semester (Fall 2012) as I was becoming familiar R and now am returning to it for 2 reasons. One the code I had then was a disaster and now that I know more about R I plan to fix it. Also this is to handle new data going from 2002 to 2013 rather then the 2005 to 2010 data that was used previously. I hope to make the code as reusable as possible so that if we get updated data we can quickly re analyze next time.

#Ouputs of Program:

Plots: Boxplot of Rainfall by Month
Plot of gaps between Rain
Time Series Plot of Rain Means by Month
Confidence Interval for Mean Rainfall by Month
Scatter plot of Rain rle values lagged by 1 and Rain rle lengths

Data: Max days without rain
Mean days without rain
Mean daily rainfall by month
Mean daily rainfall by month (unified years)

#Notable Events:

  • Nov 30 2012 Flood
  • Dec 1 2008 Flood